[imapfilter-devel] formail -a style message manipulation

Joe MacDonald joe at deserted.net
Thu Jun 18 16:05:44 EEST 2009


Hey all,

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.

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.

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?

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.

-- 
Joe MacDonald
:wq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20090618/4cbd2472/attachment.htm>


More information about the Imapfilter-devel mailing list