Re: Balsa question



Hi Jack:

On 08/06/2009 07:08:14 PM Thu, Jack Ostroff wrote:
Out of curiosity, how does balsa number messages in a maildir mailbox? In an mbox file, they are numbered by message order within the file. I mostly use mbox, but I have one maildir mailbox set up, and for some reason, the message numbers caught my eye, and I can't figure them out. #1 is the newest message and the highest number happens to be the oldest, but I can't see any other pattern.

Thanks for any response or even which fine manual I should read.

Balsa uses g_dir_read_name() in a loop to find all the message files, and assigns message numbers in that order. So it's determined by the way the file system manages the directory and glib reads it--I would guess that if you start with an empty folder and only ever add messages, it's the order in which you add them, but I'm not sure that's guaranteed. If you expunge a message, does the next one to be added take the empty slot?

Best,

Peter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]