procmail
[Top] [All Lists]

Re: recipe suddenly failing (long)

2008-08-22 10:31:03
On Mon, 18 Aug 2008, Professional Software Engineering wrote:

Well, uhm, the idea is to post that section of the logfile which pertains to the example message.

The request was for the log. I'm not trying to be a smart ass but I tend take things literally by reason of training and inclination.

Why can't you parse the logfile to just one message worth of events?

Of course I could have if that's what was requested.

procmail: [15909] Mon Aug 18 16:02:25 2008
procmail: Assigning "MAILDIR=/var/spool/mail/holtzm"
procmail: Couldn't chdir to "/var/spool/mail/holtzm"
procmail: Assigning "MAILDIR=."

Why do ya figure you can't chdir to /var/spool/mail/holtzm ? Does this not sound alarms for you?

It did the first time I saw it but, since all the mail was delivered to the correct lists I chose to ignore it.

procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)(plug-discuss(_at_)lists(_dot_)PLUG(_dot_)phoenix(_dot_)az(_dot_)us)"
procmail: No match on 
"TO(grepmail-users(_at_)lists(_dot_)sourceforge(_dot_)net)"

Er, looks like you have a syntax error there. Wanna bet you're missing a caret at the start?

You got me.


All this from 6 messages, Did you really want me to post the log file with 200+ messages?

Nah, I suspect he figured you could manage to cut and paste the parts associated with a single message. Or like, clear the log and INJECT a single message into the procmailrc.

As I said previously...training and inclination.

See the URL in my .sigfile and grab the procmail sandbox. You'd benefit from trying it out.

I like that. I've seen it referred to but never looked at it. I will now.

                      ................snip................

Uhm, whycome your backup is done last (excepting the SA, which is commented out, so doesn't count)? Backup won't back up a damn thing if mail is consistently delivered (and procmail terminates) BEFORE you ever get around to loading the rcfile.

I dug up the backup from my old RH7.3 box and found out that backup.rc was invoked first. I had played around with my .procmailrc file after I changed systems and for some reason got backup.rc last. Not intentional. Now it works just like it used to. Thanks for catching that.

(use $HOME in stead of /home/holtzm, and
set MAILDIR to $HOME/mail)

Reason?  MAILDIR=/var/spool/mail/holtzm has been working for years.
I'll consider it if you can supply a reason.

Portability. Reliability. If you rip your rules and put them on another account or another host, etc, $HOME will properly resolve to the home directory for whatever user you're invoking the script for. Less stuff for you to need to change to ensure things WORK.

I'm missing something. Any system I set up will have /var/spool/mail/holtzm and $HOME is equivalent to /home/holtzm which, again, will always exist on any system I use. This is a home use desktop to which no one else has access. I agree it's not the cleanest way to set it up and I may revisit it in the future.

Thanks.

--
Bob Holtzman
"If you think you're getting free lunch,
 check the price of the beer"
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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