Ian, Are you sure you can't move these processing requirments into different stages of the delivery. i.e. if using postfix, header rewriting, mysql based transport/virtual maps? Or maybe a procmail script? I could be wrong completely misjudging your requirements but I dare say that the tools to do what you want already exist within your mta and mda (or whatever the acronyms are).
Ric ----- Original Message ----- From: "Ian McDonald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 12:57 PM Subject: Perl filtering before final delivery > Hi, > > I need to manipulate the headers on messages before final delivery. I was > going to use a .forward file which named a pipe to a Perl script, but I'm > not sure how such scripts would name a folder. > > The IMAP users won't have Unix logins on the server. This FAQ answer > suggests that putting the IMAP users in /etc/passwd is a prerequesite for > using .forward. Is it? > > Sieve isn't adequate for my mail filtering purposes. I want to (for example) > do database access, fiddle with the headers, *and* send it to the right > folder. > > The Perl modules Mail::Audit and Mail::Procmail only deliver to mbox and > Maildir formats, so I can't use them. > > So, when I have an amended mail message and a destination folder, what do I > do? Call /usr/cyrus/bin/deliver with my settings? > > Thanks, > > Ian > > -- > > >From the FAQ: > > Q: When I enabled Cyrus support in Sendmail, ~/.forward files stopped > working. > > A: Sendmail's Cyrus support comes with support for forward files disabled. > If you want .forward files to work, you'll need to add the `w' flag. (This > requires users to have accounts on the imap server.) > > Add a line define(`CYRUS_MAILER_FLAGS',`A5@w') before the MAILER(cyrus) > line. The w flag tells sendmail that users are all in /etc/passwd so it's > okay to read it and find ~/.forward. If users aren't in /etc/passwd, don't > do this. > > > >