[clamassassin-discuss] Clamassassin w/ Maildrop...

Juan Gonzalez juan at xdracco.net
Sat Jan 14 15:50:52 PST 2006


The reformatting tool for Maildrop is reformail. The arguments are nearly 
identical to that of formail. The only difference is with the -f option. The 
formail -f option is not available with reformail. However, I do not believe 
this to be an issue.

I have modified clamassassin's FORMAIL variable:

# Configure your full path to formail
# FORMAIL="/bin/formail -f"
FORMAIL="/usr/bin/reformail"

Since the Maildrop -f option is different and not required, I removed the 4 
instances of the -f option following ${FORMAIL}. The clamassassin script 
functions normally...

-------- SNIPPLET --------

shadow bin # echo "From:amoeba\nTo:dracco\nSubject:YO! \n\nHey dude.. " 
| /usr/bin/clamassassin
From:amoeba\nTo:dracco\nSubject:YO! \n\nHey dude..
X-Virus-Status: No
X-Virus-Checker-Version: clamassassin 1.2.2 with clamscan / ClamAV 
0.88/1241/Sat Jan 14 02:00:03 2006

-------- SNIPPLET --------

Is there any way to get Maildrop support implemented?

Here are all the options available for Maildrop, from man maildrop:

-------- MAN MAILDROP --------

-a'header: value' Append  a custom header to the message if this header does 
not already exist. If the header is either Message-ID: or Resent-Message-ID: 
and the value is empty, reformail generates a (hopefully) unique message ID 
for you.

-A'header: value'  Append a custom header to the message even if this header 
already exists. If the header  is  either  Message-ID:  or Resent-Message-ID: 
and the value is empty, reformail generates a (hopefully) unique message ID 
for you.

-c     Concatenate multi-line headers. Headers split on multiple lines are 
combined into a single line.

-dn    If  n  is  1,  each  line  will be terminated with CRLF.  If n is 0 
(default), each line will be terminated with LF. reformail reads a message 
with either line terminator, and will force the message to have the specified 
line  termination.

-f0    Remove the "From_" line from the message, if it's there.

-f1    Add  the  "From_"  line to the message, if it's not there.  reformail 
will attempt to generate the "From_" line from any Errors-To:, Return-Path:, 
or From: headers in the message.  "root" will be used if reformail is unable 
to determine the return address.

-i'header: value' Appends a custom header to the message. If this header 
already exists it is renamed by prepending "Old-" to the name of the header.

-I'header: value' Append a custom header to the message. If this header 
already exists in the message, the old  header  is  completely removed. If 
the value is empty, any existing header is completely removed, and nothing 
gets appended.

-k     After  generating  an  auto-reply  header  using the -r option, keep 
the contents of the message itself in the auto-reply.

-p'prefix' When both -r and -k options are used, the -p option can be used to 
change the quoting prefix for each line from  its default value of "> ".

-P'salutation' When  both  -r  and -k options are used, the -p option is used 
to specify the salutation that begins the contents of the message.  See 
AUTOREPLIES below.

-r     Generates headers for an auto-reply to this message. This option can be 
used to create replies to  both  E-mail  and Usenet  messages  (reformail  
created  both  the  In-Reply-To: and References: headers).  When generating 
replies to Usenet messages, you'll probably have to always use the -t option 
also.

-t     Use user-generated headers in order to determine the return address for 
the -r  option.  Otherwise,  reformail  uses machine generated headers.

-R oldheader: newheader: Rename the indicated header.

-u'header:' If this header occurs multiple times in the message, remove all 
occurrences except the first one.

-U'header:' If this header occurs multiple times in the message, remove all 
occurrences except the last one.

-------- MAN MAILDROP --------

-- 
_______________________________________________
Juan G.
www.xdracco.net


More information about the clamassassin-discuss mailing list