10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] How to extract $USER ...
FromSent OnAttachments
Truong Tan SonDec 20, 2007 5:37 pm 
Sam VarshavchikDec 20, 2007 6:17 pm 
Truong Tan SonDec 20, 2007 7:10 pm 
Leandro MendesDec 21, 2007 12:33 pm 
moussDec 26, 2007 5:17 pm 
Truong Tan SonDec 26, 2007 6:26 pm 
moussDec 29, 2007 10:56 am 
Truong Tan SonDec 30, 2007 5:25 pm 
moussDec 31, 2007 3:35 am 
Truong Tan SonJan 1, 2008 6:35 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: [maildropl] How to extract $USER to embed to the loop in Maildropfilter ?Actions...
From:Leandro Mendes (thef@gmail.com)
Date:Dec 21, 2007 12:33:02 pm
List:net.sourceforge.lists.courier-maildrop

I believe that maildrop works with only one user per time. Probably with you want to deliver for several users, create a bash script. It will be easier.

Correct me if i wrong.

On Dec 21, 2007 1:11 AM, Truong Tan Son <son@fcv.fujitsu.com> wrote:

I understand Sam Varshavchik wrote.

But my target that is "How to extract user in a string=user1 user2 user3 ..." to embed to loop.

There is difficult to extract each of user with pattern match result and external script to embed.

Maildropfilter Document guide ( http://www.courier-mta.org/maildrop/maildropfilter.html):

to - deliver message to a mailbox

to expression

<-----snip----->

An expression that begins with an exclamation mark, "!" specifies a whitespace-delimited list of E-mail addresses to forward the message to. The program specified by the SENDMAIL variable is run as an external program, with the list of E-mail addresses provided as parameters to the program.

Now, solve this trouble with simple command in /etc/maildroprc:

to "!$string"

Maildrop is automatic to deliver message to all users that contains in string.

Regards,

--- Sam Varshavchik wrote:

The list of addresses in the To: or Cc: header has absolutely nothing to do with an individual message's message's recipients.

This mailing list message you are reading, was delivered to your mailbox yet your individual address appears nowhere in any of these headers.

Anytime anyone says they want to do something with the To: or Cc: headers, whatever they're trying to do it's always wrong. Whatever problem you are trying to solve, you have to find some other way to solve.

----- Original Message ----- From: "Sam Varshavchik" <mrs@courier-mta.com> To: <cour@lists.sourceforge.net> Sent: Friday, December 21, 2007 9:17 AM Subject: Re: [maildropl] How to extract $USER to embed to the loop in Maildropfilter ?