Obtaining the IMAP GUID from a sieve script

Ron Garret ron at flownet.com
Sun Jan 17 03:52:27 EET 2021


On Jan 16, 2021, at 4:21 PM, Joseph Tam <jtam.home at gmail.com> wrote:

> On Fri, 15 Jan 2021, Ron Garret wrote:
> 
>>> Why not simply use the message-id?
>> 
>> Because not every email has one.  RFC5322 doesn?t require them.
> 
> Doesn't your MTA then insert one if it's missing?

As it happens, it does.  But there’s another reason I want the Dovecot UID: I want to be able to find the file in a user’s maildir corresponding to a particular message that passed through sieve so I can do forensic analysis in the event that the spam filter isn’t doing the right thing.

rg



More information about the dovecot mailing list