[Mimedefang] Unique identifier

Kevin A. McGrail kmcgrail at pccc.com
Fri Feb 20 13:13:21 EST 2009

> In the filter, can anyone advise which var is most likely to give me a 
> unique ID that I can then use to track quarantine and bounced mails?
> I use action_quarantine in the filter but would like the warning to 
> include a unique ID that the end user can quote to allow me to identify 
> the message and deliver.
> Is it $messageID, $msgID, $QueueID ....

I've always used $QueueID as unique BUT I'm sure it has some possibility of 
not being random especially if you use more than one server.  For Quarantine 
messages, I believe get_quarantine_dir() will give you a 100% guaranteed 
unique dir for a single quarantine location though this assumes that MD has 
some code to handle collisions on the creation of these directories.  From 
checking it looks like it does it with a timestamp and a 1000 counter loop.


More information about the MIMEDefang mailing list