Re: Opening mailboxes from the command line



Hi Konrad,

On 10/22/2011 02:05:41 AM Sat, Konrad Hinsen wrote:
Peter,

The change in '-o' behavior stems from around commit 6412f6aa5ddaf3e9ea598c98fa1e7d0ff3fef3e5
...

Thanks for looking into this!

You're welcome!

We added some code to ensure that the mailbox that's selected when Balsa closes is reselected when Balsa is restarted; that wasn't previously the case: all open mailboxes were remembered and reopened, but the mailbox that was selected on reopening was usually not the one that was selected on closing.

So what exactly does "opening" a mailbox mean? I thought it was the same as selecting it. I don't see operations for opening or closing mailboxes, just adding/removing and selecting.

Opening a mailbox means getting information about its messages from the mail-store (disk, IMAP server, whatever), and Balsa generally defers that until the first time you select it (for a faster startup).  Once it's open, Balsa keeps the info, so it can switch to it faster if you select another mailbox and then reselect the first one.  There's also a pref checkbox Startup: Remember open mailboxes, which makes Balsa save the list of mailboxes that are open when you quit, and reopen them at next startup; that makes for a slower startup, but faster switching when you select one of them.

If opening and selecting are distinct operations, one solution would be to introduce a command line option for selecting rather than opening a specific mailbox.

Well, perhaps it should have been -s for 'select' instead of -o for 'open'...but -s is already taken, for 'stats', so it couldn't be that...so it'll probably always be -o now.  BTW, an undocumented option is a semicolon-separated list of mailboxes after -o.  Probably best to have the first in the list showing when they've all been opened?

Best,

Peter

Attachment: pgpdWq2mBnTCO.pgp
Description: PGP signature



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