procmail
[Top] [All Lists]

Re: A header question

1997-01-20 09:45:21
tbac(_at_)mail(_dot_)idt(_dot_)net writes:
I have a question about header "types".
I read me mail my via Pegasus, and I have an option to see the
"normal" header or the extended header.   I have procmail change the
header for mailing, described  below. The "non-standard' header fields
like "Motto" and  "Our_Fearless_Leader" only show up when I have the
"show extended header" option checked. My question is, IS there a way
for procmail to have these fields show up as a standard header instead
of as an extended header, or is an extended header something software
specific to Pegasus?

* ^TO.fh[^a-z]
* !^FROM_DAEMON
* !^X-Loop: fh(_at_)fmydom
* $? fgrep "$from" $PMDIR/f.approved
|(/opt/local/bin/formail -I"Organization: The ..."\
-I"Our_Fearless_Leader: Reverend Brucifer"\
-I"Motto: ... making Britannia kinder, gentler place to live"\
-A "X-Loop: fh(_at_)mydom(_dot_)com";)| $SENDMAIL `cat $PMDIR/f.sendto`

Well, if that is exactly what the recipe looks like, then you have a
problem: you didn't put spaces before the backslashes at the end of the
lines.  When procmail undoes the line wrapping you get:

|(/opt/local/bin/formail -I"Organization: The ..."-I"Our_Fearless_Leader: 
Reverend Brucifer"-I"Motto: ... making Britannia kinder, gentler place to 
live"-A "X-Loop: fh(_at_)mydom(_dot_)com";)| $SENDMAIL `cat $PMDIR/f.sendto`

Note the lack of spaces between the -I's.  This results in formail inserting
a single header, Organization:, whose value is:

        The ...-IOur_Fearless_Leader: Reverend Brucifer-IMotto: ... making 
Britannia kinder, gentler place to live-A

and then formail probably complains on the trailing "X-Loop: 
fh(_at_)mydom(_dot_)com"
as it doesn't look like a proper argument.  Have you looked at the logfile?

Anyway, fixing that (assuming it really is broken and you didn't just
make a typo when copying the recipe into your email) won't solve the
overall question of how to make everyone see those headers.  There is
no way to force that, as some mail readers (including Eudora I think)
only show the main headers (To:, Cc:, Subject:, From:, Date:, etc) and
only show others if requested.  Since you can't do the requesting,
there's nothing you can do.

Philip Guenther

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