procmail
[Top] [All Lists]

Re: Sorting with Plus Addressing

1998-05-17 14:51:58
"Philip" == Philip Guenther <guenther(_at_)gac(_dot_)edu> writes:

    Philip> "M.A. Powe" <looie(_at_)teleport(_dot_)com> writes:

    >>>>>>> "David" == David W Tamkin <dattier(_at_)wwa(_dot_)com> writes:

    David> Is procmail your LDA or are you calling it from ~/.forward?
    David> Procmail will know that something is $1 only if it is

    >>  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

    Philip> Well, this is definition of the procmail mailer, not the
    Philip> local mailer.  Furthermore, there's more to
    Philip> plus-addressing support than the definition of the local
    Philip> mailer.  Ruleset 0 or 5 needs to be set up to move
    Philip> everything after the + into the 'host' variable ($h).

Oops.

Well, here's what that looks like.  I did look into the part about
Ruleset 5 while trying it on originally.  But all I could do was make
sure that the plus-addressing section was there.  I believe that I
found mention of this also in one of the filtering faqs, so I checked
that the rules matched what was in the faq.

###########################################################################
###   Ruleset 5 -- special rewriting after aliases have been expanded
###
###########################################################################

S5

# deal with plussed users so aliases work nicely
R$+ + *                 $#local $@ $&h $: $1
R$+ + $*                $#local $@ $2 $: $1 + *

##################################################
###   Local and Program Mailer specification   ###
##################################################

#####  @(#)local.m4     8.23 (Berkeley) 5/31/96  #####

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30,
R=20/40,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u
Mprog,          P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,
                T=X-Unix,
                A=sh -c $u

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 ///////////////////


"Mathematics, rightly viewed, posesses not only truth, but supreme
beauty -- a beauty cold and austere, like that of sculpture."
-- Bertrand Russell