procmail
[Top] [All Lists]

Re: Multiple cat's in formail pipe?

1999-09-29 07:46:02
[snip]

Sounds like you simply forgot to put in the backslash. But you could
avoid the temp file altogether.

I did check for a missing backslash (also unmatched " and / <-> \)
but couldn't find one.  I also tried varying the use of ; and space
before the \ -- are there any situations were this is important,
or is it simply a choice of convention (like spaces around brackets
in C)? I may well have overlooked something obvious, but I quit
before I got riled enough to bust yet another monitor :)


Some of the changes I made are more or less gratuitous, others are
important.

 * I hate autoresponders which zap the original Subject entirely.

I'd been working on that, too, but your solution is better than the
one I came up with, thanks!

 * You should always include Precedence: in automatically generated
   mail

Understood.

 * The X-Loop: header is useless if you don't also take care not to
   respond to mail with this header already in it

I'd dropped that from the example but it is in the actual recipe, along
with ! ^FROM_MAILER

 * I left in some of the echos just to show that you can put anything
   you like inside the parens. Presumably your autoack.txt would
   already contain everything (perhaps including some headers) and
   the whole thing should look more like

       :0c
       * (same conditions)
       | (formail etc etc ; cat $PMDIR/autoack.txt - ) | $SENDMAIL -oi -t

This looks much better.  Is there anything about the _content_ of
the autoack file I need to worry about [like (not )?terminating
with a blank line/CR/LF/combination]?

Hope this helps,


A lot!

Dave Stone