Hmmm - well, depending on your script, you could attach the message as a mime attachment to a new message with a "X-OutCapture" (my own invention - X headers are non-standard) - then when scanning messages in future you can skip this message (which will also appear in the archivedir) OR if the mailbox is local to your server you could simply MOVE the file to the "new" folder under the Maildir - making sure the ownership and permissions are correct... Haven't tested this but think it might work and avoids reprocessing the message as mentioned before.
re-injecting would be by the script though - which would send the message as any script (don't want to mention specific technologies - could bew anything - PERL, PHP, C) and would happen as any normal message send (which is why you have to add a header to prevent filtering your filtered messages again). m/ -----Original Message----- From: Thomas von Hassel [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:33 AM To: Mitch (WebCob) Cc: Courier Users; Carey Jung Subject: Re: [courier-users] filtering outgoing mail On mandag, jul 28, 2003, at 18:07 Europe/Copenhagen, Mitch (WebCob) wrote: > That's half the solution though - the other part is to grep through the > archive directory and process the messages to determine which ones > need to > be forwarded and to who - AND to skip ones that are a reforward of an > original message. A cron job and a bit of script should be able to do > that > for you. How would you go about re-injecting the msg into courier ? /thomas > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Anand > Buddhdev > Sent: Monday, July 28, 2003 7:58 AM > To: Carey Jung > Cc: Courier Users > Subject: Re: [courier-users] filtering outgoing mail > > > On Mon, Jul 28, 2003 at 08:56:54AM -0500, Carey Jung wrote: > >> Hi, >> >> I have a customer with a corporate requirement to copy all incoming >> and >> outgoing mail to an archive email address that corporate provides. >> For >> incoming mail, I can just create a maildroprc filter to do the cc, >> but how >> can I do the same for outgoing mail from this customer? I have them >> set > up >> with virtual mail accounts. > > Check out the "archivedir" option in /etc/courier/courierd > > -- > Anand Buddhdev > http://anand.org > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/ > direct;at.aspnet_072303_01/01 > _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/ > direct;at.aspnet_072303_01/01 > _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > /thomas -- Dignity and an empty sack is worth the sack. -Ferengi Rule of Acquisition No. 109 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
