I have a filter in .procmailrc to organize mail in a folder. But I use dovecot as LDA, and it doesn't update until I quit the client. I read that I need to proceed mail through deliver as explain here : http://wiki.dovecot.org/procmail

So in .procmailrc, I replace my folder path in the filter rule: Dir$Some/$DestDir/

Where Dir$Some is a directory in ~/Mail and $Some a variable set according to some test as $DestDir

By:

 DELIVER="/usr/lib/dovecot/deliver"
 | $DELIVER -c deliver.conf -m Dir$Some/$DestDir
 Where deliver.conf have log, postmaster_address and mail_location = maildir:~/Mail:LAYOUT=fs:INDEX=/var/indexes/%u

I see no error in procmail or deliver log. It seem to work Procmail doing it and deliver too. But to see new mail, I need to quit the client (mutt) and open it again. I bounce mail to test this but new mail don't work either.

link|improve this question
To mark a question solved, please mark the correct answer as accepted. You need not edit the title of your question. – jscott Aug 19 '11 at 13:07
feedback

1 Answer

I don't think its either one of them but the client that does not refresh your mailbox. the client needs to refresh the mailbox in order to see changes, by default imap / pop3 servers do not push these updates.

link|improve this answer
I Launch the refresh and I got a "Mailbox unchanged". I think it was because file where put by procmail, so index in dovecot were not updated (That it 's why I put Deliver in the game, to let dovecot deal with the transfert and have the update). But it doesn't work. – Flash Koti Aug 4 '11 at 13:11
maybe this helps: dovecot.org/pipermail/dovecot/2007-March/020787.html – Goez Aug 4 '11 at 13:34
I use the 1.2.13-1 version of dovecot, It seems more recent than the patch (2007). In the wiki, they don't mention a patch. – Flash Koti Aug 4 '11 at 14:27
Maybe the mutt client config is wrong for a imap dovecot ? I have this : set folder = "imap://127.0.0.1:10992" set spoolfile = "+INBOX" – Flash Koti Aug 4 '11 at 15:02
Problem came from mutt client is config (Goez was right). All I have to do is to add a bind key to fetch imap (the refresh mailbox don't work): bind index ! imap-fetch-mail. the key binded is "!" but you can chose any key not already binded. To found the source of the problem, I use telnet to check the imap server. – Flash Koti Aug 16 '11 at 6:55
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.