Re: Multiple email / folder problem
Hello, Ajeet!
Sounds like usage of unexistent folder.
My mutt (1.5.15) always seg-faults when i press 'c' (change-folder) and
type something like: =no_such_mbox<enter> (with IMAP accounts).
In your situation folder-hook references to current account $folder
('=') and you have to explicitly set $folder variable before.
My settings for two IMAP accounts looks about:
---------------------------------------------
account-hook . " \
unset imap_user; \
unset imap_pass; \
unset imap_check_subscribed \
"
account-hook imaps://user1@host1 " \
set imap_pass = pass1; \
set imap_check_subscribed = yes \
"
account-hook imaps://user2@host2 " \
set imap_pass = pass2; \
set imap_check_subscribed = yes \
"
folder-hook imaps://user1@host1.* " \
set folder = imaps://user1@host1/INBOX; \
set from = user1@host1; \
set postponed = =postponed; \
set record = =sent \
"
folder-hook imaps://user2@host2.* " \
set folder = imaps://user2@host2/INBOX; \
set from = user2@host2; \
set postponed = =postponed; \
set record = =sent \
"
---------------------------------------------
Note that 'set folder' is the first directive, other references to
current $folder as '='.
It works pretty well with subscribed folders too.
On Tue, Jun 26, 2007 at 12:55:22AM +0530, Ajeet wrote:
> Hi All,
>
> I have been using mutt for a while now and I really like it. I have just
> joined this mailing list, so I do not know if this is the right place to post
> this, as my mutt is patched with the sidebar patch.
>
> For my own weird reasons, I want the sidebar to display different sets of
> email folders (for multiple accounts say). For this, I have a folder hook
> like so
>
> folder-hook . unmailboxes *
> folder-hook . mailboxes =M1 = M2
>
> folder-hook M3 unmailboxes *
> folder-hook M3 mailboxes =M3
>
> So, the two mailboxes M1 and M2 form one group(say all my email from the
> gmail account), while M3 is kept separately (say from hotmail).
>
> However, the above causes mutt to seg-fault. Any idea why this is so? Is this
> a sidebar related thing or a mutt issue?
>
>
> Thanks for your help.
>
> --
> Regards,
> Ajeet
--
26.06.2007 11:27:03
Cheers,
Oleg A. Mamontov
mailto: oleg@xxxxxxxxxxxx
icq uin: 79-521-617
cell: +7-903-798-1352