procmail
[Top] [All Lists]

Re: Messing with E-mail Headers

1996-08-13 12:58:16

If you show me the recipe file, I can help you with it.  At this point,
I can only imagine what it looks like, unless it *really* is as simple
as you indicate at the bottom of the included e-mail.

It actually is as simple as the one that is included at the bottom of the 
message... :)


Since the "^To: [0-9]" condition failed, then its recipe action is not
performed.  The next recipe is then examined.  If there are no more
recipes, then procmail tries to deliver the e-mail to the default
mailbox for the current user.  If there is no current mailbox for the
current user (an e-mail list), then procmail *bounces* the e-mail.

That is what I thought procmail was supposed to do, but I couldn't seem 
to get it to work (that is it would not write to an existing user's 
mailbox). The problem, I discovered, actually had nothing to do with 
procmail, it had to do with my FX/etc/passwd %[^:] line in my sendmail.cf 
and the rule that I had added to deal with $~X users - the problem was 
that the currently installed sendmail had not compiled in the SCANF 
option when it was created. :(



By the way, the recipe condition, as it stands, is not very flexible.
What about the case where there is more (or less) than exactly one space
between the color and the first number?  Ie:

    To:      1234(_at_)foo(_dot_)bar(_dot_)com
    Subject: Problems


Is there a way to make the recipie handle such an issue? I cannot see any 
way to make it so that it would handle an arbitrary number of spaces... 
do you?

Micah



    > 
    > the mail I get returned to me is like this:
    > 
    > >From MAILER-DAEMON(_at_)seoultel(_dot_)co(_dot_)krTue Aug 13 12:09:01 
1996
    > Date: Wed, 14 Aug 1996 04:05:47 +0900
    > From: Mail Delivery Subsystem 
<MAILER-DAEMON(_at_)seoultel(_dot_)co(_dot_)kr>
    > To: micah(_at_)smmedia(_dot_)com
    > Subject: Returned mail: Can't create output: Error 0
    > 
    > The original message was received at Wed, 14 Aug 1996 04:05:46 +0900
    > from root(_at_)smmedia(_dot_)com [207.66.144.3]
    > 
    >    ----- The following addresses had delivery problems -----
    > <smmi(_at_)seoultel(_dot_)co(_dot_)kr>  (unrecoverable error)
    > 
    >    ----- Transcript of session follows -----
    > procmail: [27639] Wed Aug 14 04:05:47 1996
    > procmail: Assigning "PMDIR=/var/log/procmail"
    > procmail: Assigning "LOGFILE=/var/log/procmail/log"
    > procmail: Opening "/var/log/procmail/log"
    > 550 <smmi(_at_)seoultel(_dot_)co(_dot_)kr>... Can't create output: 
Error 0
    > 
    >    ----- Original message follows -----
    > 
    >   [ Part 2: "Included Message" ]
    > 
    > Date: Tue, 13 Aug 1996 12:00:02 -0700 (PDT)
    > From: Micah Anderson <micah(_at_)smmedia(_dot_)com>
    > To: smmi(_at_)seoultel(_dot_)co(_dot_)kr
    > 
    > test
    > 
    > 
    > Any ideas?! Can't create output is very strange...
    > 
    > Thanks for all your help,
    > micah
    > 
    > On Fri, 9 Aug 1996, Micah Anderson wrote:
    > 
    > > 
    > > 
    > > Thank you for your help and explainations... I actually was able to 
    > > accomplish the correct output by just doing the following:
    > > 
    > > :0
    > > * ^To: [0-9]
    > > {
    > >       :0
    > > |/usr/local/bin/junclient
    > > }
    > > 
    > > :0
    > > {
    > > }
    > > 
    > > And the From is created correctly... I think the problem was that I 
was 
    > > trying to send it through the MTA when procmail already does that.
    > > 
    > > Micah
    > > 
    > > 
    > > 
_______________________________________________________________________________
    > > Micah Johan Eckman Anderson                           
micah(_at_)smmedia(_dot_)com
    > > Sr. Systems Administrator                             1-888-614-3709
    > > Schmidt Mead Media, Inc.                              
pagemicah(_at_)smmedia(_dot_)com        
    > > 
-------------------------------------------------------------------------------
    > > 
    > > 



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