procmail
[Top] [All Lists]

Re: Procmail difficulty in using "raw" mode

1997-08-07 16:34:00
wwgrol(_at_)sparc01(_dot_)fw(_dot_)hac(_dot_)com (W. Wesley Groleau x4923) 
writes:
..... According to the man page, procmail will put a
'>' in from of "\nFrom " if -Y is specified _or_ if there is no 
content-length header. ....

To quote the procmail(1) manpage:

MISCELLANEOUS
     If there is an existing Content-Length: field in the  header
     of  the  mail  and  the -Y option is not specified, procmail
     will trim the field to report the  correct  size.   Procmail
     does not change the fieldwidth.

What if "there is an existing Content-Length: field" AND the -Y option IS
specified?  This is my situation, and procmail/formail are NOT escaping
the embedded From lines on either input or output.

To quote the next paragraph on the manpage:

     If there is no Content-Length: field or the - Y  option  has
     been  specified and procmail appends to regular mailfolders,
     any lines in the body of the message that  look  like  post-
     marks  are  prepended  with `>' (disarms bogus mailheaders).
     The regular expression that is  used  to  search  for  these
     postmarks is:
          `\nFrom '

Is it a regular mailfolder and not a directory or MH style folder?
Does the recipe have the 'r' flag, which also disables this?

As for formail, what arguments did you give it?


Philip Guenther