[Mailmunge] Add Header based on condition in filter_recipient{}

Dianne Skoll dianne at skollsoft.com
Thu Aug 1 17:35:23 EDT 2024


Hi,

Also, I was wrong about something.

Mailmunge does indeed create the temporary working directory as soon
as it receives a valid MAIL From: command; it's just that directory
might not be named after the queue ID.  If the queue ID is not available,
Mailmunge generates its own ID.

So you can save the results of tests in filter_recipient in a file
in the current working directory (start its name with a lower-case letter
to avoid conflicts with Mailmunge's files.)  And you can then retrieve
the results later on from filter_message by reading the file.  You could,
for example, use Storable to save/restore data structures.

You don't need to clean up that file.  Mailmunge will delete the entire
directory when it's done.

Regards,

Dianne.


More information about the Mailmunge mailing list