Hey all,<br><br>Sorry if this is a FAQ, I couldn't find any concrete answer in the mail archives or googling about, but I'm surprised if I'm the first person to run into this.<br><br>The last time I did any investigation into how mail works was in a POP3 world, so it's possible I'm just talking nonsense. I hope not, but if I am please let me know.<br>
<br>I want to leave my mail in INBOX, but I'd like to condition it a bit based on what's in it. I used to be able to do this with procmail and formail, where I could search on header fields or body contents and then add X-header: foo style header fields to a message in-place with 'formail -a'. I've been trying to find a way to do this with imapfilter but the best I've come up with so far is to match on whatever I want to match on, use pipe_into() to feed it into formail locally, delete the old message off the server and the put the new message back to the server again. Is this my only option?<br>
<br>I'm reluctant to do this because I found bad things would happen when I had imapfilter running as a daemon and shuffling messages into subfolders while mutt was open and looking at my mailbox. Either imapfilter or mutt (or both) would segfault and die on me if I was in the midst of replying to a message (that is, updating the message flags) in mutt when imapfilter woke up and processed my mailboxes.<br clear="all">
<br>-- <br>Joe MacDonald<br>:wq<br>