Exactly.

You wrote correctly what I want.

The target that is how to deliver message for several users by external script.

I have less experience to write pattern match and make loop in /etc/maildroprc, 
so I use Maildrop supports exclamation mark, 
with "!" before list of users, it runs well.

Now, trouble is solved.


Thanks you very much.


Truong Tan Son.

----- Original Message ----- 
From: "Leandro Mendes" <[EMAIL PROTECTED]>
To: "Truong Tan Son" <[EMAIL PROTECTED]>
Sent: Saturday, December 22, 2007 3:33 AM
Subject: Re: [maildropl] How to extract $USER to embed to the loop in 
Maildropfilter ?


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.

Leandro.

On Dec 21, 2007 1:11 AM, Truong Tan Son <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2007 9:17 AM
> Subject: Re: [maildropl] How to extract $USER to embed to the loop in
> Maildropfilter ?
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
>
> --------------------------------------------------------------------------------
>
>
> _______________________________________________
> Courier-maildrop mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Courier-maildrop mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to