8 messages in net.sourceforge.lists.courier-usersRE: [courier-users] filtering outgoin...
FromSent OnAttachments
Carey JungJul 28, 2003 6:57 am 
Sam VarshavchikJul 28, 2003 7:39 am 
Anand BuddhdevJul 28, 2003 7:58 am 
Mitch (WebCob)Jul 28, 2003 9:05 am 
Carey JungJul 28, 2003 9:56 am 
Mitch (WebCob)Jul 28, 2003 10:17 am 
Mitch (WebCob)Jul 28, 2003 10:18 am 
Thomas von HasselJul 28, 2003 9:27 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [courier-users] filtering outgoing mailActions...
From:Mitch (WebCob) (mit@webcob.com)
Date:Jul 28, 2003 10:18:00 am
List:net.sourceforge.lists.courier-users

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:tho@elements.dk] 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: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On 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

/thomas