Re: OT: procmail recipe for two actions for a message?

2001-12-10 Thread David Champion

On 2001.12.09, in <[EMAIL PROTECTED]>,
"Matej Cepl" <[EMAIL PROTECTED]> wrote:
> 
> However, emails in this list have mungled Reply-To: directing to
> the list. Could it be possible to ask procmail (or how to ask
> procmail) that before moving the message to the listy folder, it
> would run a message through grep -v '^Reply-To:'? And, BTW I do
> not want just
> 
>   :0:
>   * ^TOcstex
>   | grep -v '^Reply-To:' >> $MAILDIR/listy
> 
> because I would like to make it to work even when I would change
> my mind and switched to maildir format. Therefore, I would
> prefer, if the actual delivery would be done by procmail.

Maybe you've already decided on another approach, but I'd do it this
way. I use essentially the same formula for some list-munging of my own.

## No ":" needed, since there's no file to lock here
:0
* ^TOcstex
{
## First rewrite the reply-to using a known, safe mail-munging
## tool. Rename (don't remove) the header so there's a record of
## this event.
:0 f
| formail -R Reply-To Old-Reply-To

## Next append to the mail folder, with locking.
:0 :
listy
}

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Matej Cepl

On Sun, Dec 09, 2001 at 09:40:04PM +0100, Nicolas Rachinsky wrote:
> I haven't done this before and didn't test it, but something like
> :0 hf:
> * ^TOcstex
> | grep -v '^Reply-To:'
> 
> should do what you want. Look in "man procmailrc" for filter. You need
> of course a second recipe to deliver the mail.

Thanks

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 




Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Baurjan Ismagulov

Hello,

On Mon, Dec 10, 2001 at 12:22:00AM +0100, Benjamin Michotte wrote:
> Is it possible to set something like
> 
> :0:
> * ^(To|Cc).*linux@lists\.linuxbe\.org
> * ^(To|Cc).*linux@lists\.unixtech\.be
> linux

Seems that this will match only messages sent to both lists, which is
probably not what you want. What about

:0
* ^(To|Cc).*linux@lists\.(linuxbe\.org|unixtech\.be)
linux

I'm new to procmail, so please test.

Hope this helps,
Baurjan.



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Nicolas Rachinsky

On Mon, Dec 10, 2001 at 12:22:00AM +0100, Benjamin Michotte <[EMAIL PROTECTED]> 
wrote:
> hello,
> 
> On Sun, Dec 09, 2001 at 02:56:05PM, Matej Cepl wrote:
> > Hi,
> I benefit of this off-topic to ask a little question too.
> Actually, I have this
> 
> :0:
> * ^(To|Cc).*linux@lists\.linuxbe\.org
> linux
> 
> :0:
> * ^(To|Cc).*linux@lists\.unixtech\.be
> linux
> 
> Is it possible to set something like
> 
> :0:
> * ^(To|Cc).*linux@lists\.linuxbe\.org
> * ^(To|Cc).*linux@lists\.unixtech\.be
> linux

The two regex are combined with "and", so both of them must match, and
I don't think that would be what you want ;-)

I would try:
:0:
* ^(To|Cc).*linux@lists\.(linuxbe\.org|unixtech\.be)
linux

> which is shortest ;)

I use something similar.

Nicolas



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Benjamin Michotte

hello,

On Sun, Dec 09, 2001 at 02:56:05PM, Matej Cepl wrote:
> Hi,
I benefit of this off-topic to ask a little question too.
Actually, I have this

:0:
* ^(To|Cc).*linux@lists\.linuxbe\.org
linux

:0:
* ^(To|Cc).*linux@lists\.unixtech\.be
linux

Is it possible to set something like

:0:
* ^(To|Cc).*linux@lists\.linuxbe\.org
* ^(To|Cc).*linux@lists\.unixtech\.be
linux

which is shortest ;)

>
---end quoted text---

cu,
binny

-- 

"I'm trying to install the game on my new PC running Windows 2000 
Professional"
"You must have installed windows 2000 by mistake. to reinstall linux just 
insert your distribution cd, reboot the system"
   -- lu sur loki.games.civ-ctp

°v°  Benjamin Michotte<[EMAIL PROTECTED]>
_o_  web  : http://www.baby-linux.net



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Johan Andersson

Ok.  Just after I sent that mail I somehow got the feeling I had made
a fool out of myself.  And yes, I re-read the procmailrc man page and
found out what the 'h' flag is for.  Well, that's me, always trying to
be smart.  At least this time I learned something :)


-- 
Johan Andersson <[EMAIL PROTECTED]>, GnuPG public key id: 0x6415B9F7



msg21414/pgp0.pgp
Description: PGP signature


Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Johan Andersson

On Sun, 09 Dec 2001, Nicolas Rachinsky <[EMAIL PROTECTED]> wrote:
> I haven't done this before and didn't test it, but something like
> :0 hf:
> * ^TOcstex
> | grep -v '^Reply-To:'
> 
> should do what you want. Look in "man procmailrc" for filter. You need
> of course a second recipe to deliver the mail.

I would rather use formail than grep -v, just in case there should
ever be a non-header line beginning with "Reply-To:"

Something like

| formail -R Reply-To: Stupid-Reply-To:

feels slightly safer.

-- 
Johan Andersson <[EMAIL PROTECTED]>, GnuPG public key id: 0x6415B9F7



msg21413/pgp0.pgp
Description: PGP signature


Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Bruno Postle

On Sun 09-Dec-2001 at 02:56:05PM -0500, Matej Cepl wrote:
> 
> However, emails in this list have mungled Reply-To: directing to
> the list. Could it be possible to ask procmail (or how to ask
> procmail) that before moving the message to the listy folder, it
> would run a message through grep -v '^Reply-To:'?

You should investigate this magic mutt setting:

:set ignore_list_reply_to

-- 
Bruno



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Curt W. Zirzow

* Matej Cepl <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> sorry for OT question, but I think, for anybody really familiar
> with procmail it will be only mild distraction. I have this very
> simple recipe in my .procmailrc:
> 
>   :0:
>   * ^TOcstex
>   listy
> 
> However, emails in this list have mungled Reply-To: directing to
> the list. Could it be possible to ask procmail (or how to ask
> procmail) that before moving the message to the listy folder, it
> would run a message through grep -v '^Reply-To:'? And, BTW I do
> not want just
> 
>   :0:
>   * ^TOcstex
>   | grep -v '^Reply-To:' >> $MAILDIR/listy
> 

I'm not expert nor is this tested but something like:

:0
* ^TOcstex
{
  :0 fhw
  | grep -v '^Reply-To:'

  :0:
  $MAILDIR/listy
}



> because I would like to make it to work even when I would change
> my mind and switched to maildir format. Therefore, I would
> prefer, if the actual delivery would be done by procmail.
> 
>   Thanks
> 
>   Matej
> 
 

Curt
-- 
Any time things appear to be going better, you have overlooked
something.



Re: OT: procmail recipe for two actions for a message?

2001-12-09 Thread Nicolas Rachinsky

On Sun, Dec 09, 2001 at 02:56:05PM -0500, Matej Cepl <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> sorry for OT question, but I think, for anybody really familiar
> with procmail it will be only mild distraction. I have this very
> simple recipe in my .procmailrc:
> 
>   :0:
>   * ^TOcstex
>   listy
> 
> However, emails in this list have mungled Reply-To: directing to
> the list. Could it be possible to ask procmail (or how to ask
> procmail) that before moving the message to the listy folder, it
> would run a message through grep -v '^Reply-To:'? And, BTW I do
> not want just
> 
>   :0:
>   * ^TOcstex
>   | grep -v '^Reply-To:' >> $MAILDIR/listy
> 
> because I would like to make it to work even when I would change
> my mind and switched to maildir format. Therefore, I would
> prefer, if the actual delivery would be done by procmail.

I haven't done this before and didn't test it, but something like
:0 hf:
* ^TOcstex
| grep -v '^Reply-To:'

should do what you want. Look in "man procmailrc" for filter. You need
of course a second recipe to deliver the mail.

Try it out before you use it, I don't know if it works or if it would
destroy your mails.

Nicolas



OT: procmail recipe for two actions for a message?

2001-12-09 Thread Matej Cepl

Hi,

sorry for OT question, but I think, for anybody really familiar
with procmail it will be only mild distraction. I have this very
simple recipe in my .procmailrc:

:0:
* ^TOcstex
listy

However, emails in this list have mungled Reply-To: directing to
the list. Could it be possible to ask procmail (or how to ask
procmail) that before moving the message to the listy folder, it
would run a message through grep -v '^Reply-To:'? And, BTW I do
not want just

:0:
* ^TOcstex
| grep -v '^Reply-To:' >> $MAILDIR/listy

because I would like to make it to work even when I would change
my mind and switched to maildir format. Therefore, I would
prefer, if the actual delivery would be done by procmail.

Thanks

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
...every Man has a Property in his own Person. This no Body has
any Right to but himself. The Labour of his Body, and the Work
of his Hands, we may say, are properly his.  The great and
chief end therefore, of Mens uniting into Commonwealths, and
putting themselves under Government, is the Preservation of their
Property.
-- John Locke, "A Treatise Concerning Civil Government"