[Mimedefang] How to Get Header info from $entity Object Passed to filter_end Routine

David F. Skoll dfs at roaringpenguin.com
Wed Apr 30 21:32:01 EDT 2003


On Wed, 30 Apr 2003, George Kuetemeyer wrote:

> And then get specific top level header info via:
>     my $from = $head->get('From);
>     my $to   = $head->get('To');

That doesn't work, because the "top-level" headers of the e-mail message
are treated differently from internal MIME headers.

However, there's a pretty simple solution:  All of the headers
are in the file ./HEADERS and are one-per-line (no line folding over
multiple lines.)  The original raw message is in ./INPUTMSG

You can open either of those files from Perl and manipulate them.

--
David.



More information about the MIMEDefang mailing list