imapfilter icon indicating copy to clipboard operation
imapfilter copied to clipboard

Add/remove/update header fields

Open bviefhues opened this issue 1 year ago • 1 comments

Add functionality for adding, removing and updating header fields, with updating the headers in the messages on the IMAP server.

Currently, the only means to persist state from Lua processing is via custom flags/keywords, however that is not guaranteed to be supported by all MTAs, I think. (New keywords are "MAY" in RFC 3501.)

bviefhues avatar Oct 09 '23 06:10 bviefhues

Would it work to fetch the whole message, modify it locally using Lua, then re-upload it?

There's an example at:

https://github.com/lefcha/imapfilter/blob/9e6661278572009a92a8e125c9b339232a9735a1/samples/extend.lua#L103-L118

lefcha avatar Dec 26 '23 19:12 lefcha