"Mark Smith" <[email protected]> writes: >> >> > I am trying to prevent mutt from opening a connection to my imap >> >> > spoolfolder on startup. >> >> >> >> Comment out the imap entry in muttrc and change to the imap folders >> >> manually? >> >> >> > Unfortunately, that won't work. I still want to access my cached >> > messages. So when I start mutt, it should show me my cached inbox >> > without connecting automatically... >> >> Are these messages cached on the IMAP server? >> >> If not, how about "mutt -f ~/cached-inbox" and then connecting at will? >> > I am using the directives: > > set header_cache = ~/.mutt/cache/headers > set message_cachedir = ~/.mutt/cache/bodies > > so setting for example "mutt -f > .mutt/cache/bodies/imaps\:user\@fastmail.fm\@mail.messagingengine.com\:993/INBOX/" > won't work as it tells me "... is not a mailbox".
Ah, I see. Perhaps you can use offlineimap to synchronize you emails with the IMAP server and use mutt without connecting directly at all. > I wonder if I just have to give up on this. Can't believe I am the only > one having this issue. Maybe I should put a request in to have this > implemented or report a bug that imap_passive is not working as > described? The description of imap_passive says: ,---- | When set, mutt will not open new IMAP connections to check for new mail. | Mutt will only check for new mail over existing IMAP connections. This is | useful if you don't want to be prompted to user/password pairs on mutt | invocation, or if opening the connection is slow. `---- So imap_passive is about the checking for *new* mail. I guess you can have a setup in which you have email stored locally, while newly incoming emails are found on IMAP servers. With such a setup, you could use imap_passive as described above, since mutt could work with the email stored locally. When you have mutt set up to access email on an IMAP server, what other choice does it have than to open the connection to let you access your email --- unless there was some sort of offline mode? However, I haven´t tried it, so someone else probably knows better. When you make a feature request for an IMAP offline mode, you´ll probably be told to use offlineimap instead.
