procmail
[Top] [All Lists]

Re: [PROCMAIL] Re: Sorting with Plus Addressing

1998-05-17 11:40:28
"David" == David W Tamkin <dattier(_at_)wwa(_dot_)com> writes:

Michael Powe wrote, 
| I can't seem to get this to work.  

| I can send myself a test mail to looie+list(_at_)teleport(_dot_)com & it 
comes 
| through fine.  
 
| Then I put this in .procmailrc: this is from Jari's pm-tips & also is 
| shown in one of the filtering faqs: 
 
| ARG = $1 
| :0: 
| * ARG ?? list 
| test/.  
 
| But it doesn't get sorted.  It just goes into the inbox.  The plus 
| address still shows in the To: line.

    David> Is procmail your LDA or are you calling it from ~/.forward?
    David> Procmail will know that something is $1 only if it is
    David> called with the -m or -a option (plus the proper arguments
    David> to that option).  What exactly is the command line when
    David> procmail is invoked?

Procmail is my LDA and is set up in what seems to be the standard
manner in sendmail.cf:  at least, this follows the example in the
procmail manpage: 

#####  @(#)procmail.m4  8.5 (Berkeley) 12/28/95  #####

Mprocmail,      P=/usr/bin/procmail, F=DFMmShu, S=11/31, R=21/31, \
T=DNS/RFC822/X-Unix,
                A=procmail -m $h $f $u

##########

 | I also tried just a plain old 
 | :0: 
 | * ^TOlooie+list(_at_)teleport(_dot_)com 
 | test/.   
 | But, that did not work, either.

    David> That one is very easily explained.  Use this:

    David>   * ^TOlooie\+list(_at_)teleport\(_dot_)com

    David> Escaping the period is not so critical, but an unescaped
    David> plus sign means "one or more of the preceding" (in this
    David> case, one or more e's) and will not match a literal plus
    David> sign.

Duh!  Thanks.  Another "I shoulda thoughta that!"

mp

 ///////////////////////////////////////////////////////////////////////
 // "We are the music makers; and we are the dreamers of the dreams." //
 //  Michael Powe                                 looie(_at_)teleport(_dot_)com 
 //
 /////////////// pgpk -a finger://teleport.com/looie ///////////////////

"Politics are now nothing more than a means of rising in the world."
 -- Samuel Johnson

<Prev in Thread] Current Thread [Next in Thread>