> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Alan > Fullmer > Sent: Wednesday, 17 September 2003 12:31 PM > To: [EMAIL PROTECTED] > Subject: Re: [SAtalk] help with master.cf and filter > > > alright, one more question is there any way i can remove the @domain.tld? > > so i just have the email prefix before the @? >
try using sed in your bash script.. sed 's/\(.*\)@.*/\1/' eg. to strip prefix from the recipient... email_prefix=$(echo $4 | sed 's/\(.*\)@.*/\1/') > ----- Original Message ----- > From: "Jim" <[EMAIL PROTECTED]> > To: "Alan Fullmer" <[EMAIL PROTECTED]> > Sent: Tuesday, September 16, 2003 8:14 PM > Subject: Re: [SAtalk] help with master.cf and filter > > > > On Tue, Sep 16, 2003 at 05:25:20PM -0600, Alan Fullmer wrote: > > > FROM master.cf: > > > spamfilter unix - n n - - pipe > > > flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f > ${sender} -- ${recipient} > > > > > > FROM spamfilter.sh: > > > #!/bin/bash > > > /usr/local/bin/spamc -u <want username variable here> | > /usr/sbin/sendmail -i "$@" > > > exit $? > > > > > > Judging by what you pasted above, it looks like you want to use "$4". > > > > $1 == -f > > $2 == sender > > $3 == -- > > $4 == recipient > > > > Note that you may have messages with multiple recipients.. see my recent > > post where I mentioned setting the transport to split such a mail out into > one-message-per-recipient. > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk