I get it! I managed to use mutt w/ my imap folders, with hooks and everything fine. This is not really hard, but :
- libsas-modules break the SSL certification (without any error message)
- mutt really lack of header cache for imap (there is a patch for Maildir but no for imap)
### IMAP ######################################## set imap_user="jkx" set spoolfile=imaps://mail.larsen-b.com/ set folder=imaps://mail.larsen-b.com/INBOX set record=imaps://mail.larsen-b.com/INBOX.Sent mailboxes imaps://mail.larsen-b.com/ ### Hooks ####################################### folder-hook INBOX.Sent 'set index_format="%4C %Z %{%b %d} %-20.20t (%41) %s"' folder-hook INBOX.JOB my_hdr From: XXXXX <XXXX@job.fr>
Perhaps i should try: isync: IMAP MailDir mailbox synchronize.. http://isync.sourceforge.net/ to avoid the lack of cache
Yeah, as much as I love mutt, I gave up because of the lack of IMAP cache. I hated having to wait for it to scan hundreds of messages everytime I opened a folder. Sigh.
Now I use Sylpheed-claws on Linux, Mail.app on the Mac, and Squirrelmail as a webmail. But perhaps the isync thing could work… :)
In fact, after a little google, mutt seems to support this. I found a flag in my freeBSD makefile, but as i don’t use freeBSD on all box (mainly use linux) i haven’t look foward.
I used sylpheed-vanilla (the claws was too buggy when tested) and it’s work fine. but i want something in console, because i move a lot and installing in on every host i impossible.
I gonna look at mutt source code.
You should take a look at offlineimap.
http://gopher.quux.org:70/devel/offlineimap/
It does a nice job of sync’ing imap folders to maildir format locally.
What is the difference w/ isync ? Do i need to do some extra sync ?
IMAP Header Caching is now included in the my header cache which was the maildir header cache. http://wwwcip.informatik.uni-erlangen.de/~sithglan/mutt/