Check for attachment in maildrop recipe

Milan Obuch <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Hi,

I use pythonfiler framework for various tasks in email processing, and
currently I need to transform use of attachments filter to conditional
delivery instruction in maildrop recipe. Basically I need something like

if (attachment_name =~ /<some regexp>/)
 to '<foldername>'

The reason is attachment filter is global per server setting and I need
to apply this condition on an per mailbox basis.

Has anybody any idea how to accomplish this task? Alternatively, is
anybody using any python script in maildrop recipe? It should not be
too hard to transform filter from framework into standalone script
usable in maildrop recipe, but if there is an easier way to do this
and/or someone has already experience with using python in maildrop
recipe (and could share them to avoid some surprises) I would like to
know.

Thanks for any insight.

Regards,
Milan

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.