HI.
> > > -----Original Message-----
> > > From: Yizhar Hurwitz
> > > So I would still like to know if/how I can
preserve this
> > > information in the quarantine directory, and
try to do it
> > > efficiently as well by minimizing system
calls from my custom filter.
>
> From: "Damrose, Mark" <mdamrose elgin.edu>
> Here's what I do.
> action_quarantine_entire_message("Spam Score:
$hits - rules matched:
> $namesnRelay: $RelayAddr");
> $qdir = get_quarantine_dir();
> md_syslog('info', "$MsgID: Quarantined in
$qdir");
> open ( EXTRA,
">$qdir/EXTRA_HEADERS");
> print EXTRA synthesize_received_header();
> if ( $MessageID eq "NOQUEUE" ) {
> print EXTRA gen_msgid_header();
> }
> close EXTRA;
>
> From: "David F. Skoll" <dfs roaringpenguin.com>
>
> MIMEDefang has a synthesize_received_header function
that returns
> a header quite similar to what Sendmail *would* have
added. Example
filter
> code:
>
> my $hdr = synthesize_received_header();
> my $qdir = get_quarantine_dir();
> # Now save $hdr somewhere in $qdir
Thank you both very much for the helpful answers.
David - would you consider adding something like that to the
built in
"quarantine_entire_message" procedure in
mimedefang.pl?
For example saving this text by default to a file named
HEADERS.0 (or
RECEIVED, or whatever) in the qdir?
A built in standard filename for this info can lead to
better sharing of
supporting tools and scripts that would work on different
implementations,
such as "un-quarantine" script/cgi-page,
quarantine management and
reporting tools, etc..
Thanks again
Yizhar
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in
the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org
a> and http://www.roaringpengu
in.com
MIMEDefang mailing list MIMEDefang lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mime
defang
|