procmail
[Top] [All Lists]

Re: recipe help

2003-11-03 16:09:41
On Mon, Nov 03, 2003 at 02:24:20PM -0600, Christopher L. Barnard wrote:

Seeing this post reminds me that I should ask about a problem that
happens very rarely.  The auto-unfolding of headers sometimes causes
"Out of the Office" to appear on multiple lines and therefore not be
caught by my oot recipe.  Is there a way to tell procmail *not* to
unfold a particular header?

I don't understand how something on one line could be made to appear
on multiple lines by UNfolding; but to answer your question, I don't
think there is a way to tell procmail not to unfold header lines. The
manpage states:

       To make `egrepping' of headers more  consistent,  procmail
       concatenates  all continued header fields; but only inter-
       nally.  When delivering the mail, line breaks will  appear
       as before.

So my guess is that you can't do it without going to a shell (e.g.,
sed or perl). You might be able to look for the multiple spaces or
tabs that might be part of the header otherwise.

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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