Hi,
I've been running anomy for over 2 years, and maybe once every 6 months I
get a corrupted mail folder. My environment is anomy 1.35 with procmail and
imap/dmail. Anomy is installed as per the web instructions:
ANOMY=/path/to/anomy/
:0 fw
|/path/to/anomy/bin/sanitizer.pl
I know the mail folder is corrupt because there are lines that start with
"^rom" instead of "From" (the caret ^ means start of line, it's not actually
in the file) and imap stops receiving new mail in the folder.
The corruption seems to be triggered by anomy failing to handle a message
and procmail trying to "rescue" the data. I've attached the log file that
demonstrates this. (BTW, no other mail was coming in while this happened so
I assume it's not a locking related problem).
Thanks,
Brien
procmail log start --------------------
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
[ score: 1 ]
325208 Rewrote HTML tag:
_script language="JavaScript"_
as _DEFANGED_script language="JavaScript"_
[ score: 2 ]
325209 Rewrote HTML tag:
_body bgcolor="#eeeeee" marginwidth="0" marginheight="0"
link="#000000" alink="#666666" vlink="#000000" leftmargin="0" right
margin="0" topmargin="0" bottommargin="0"
onload="javascript:window.scroll(0,0)" _
as _body bgcolor="#eeeeee" marginwidth="0" marginheight="0"
link="#000000" alink="#666666" vlink="#000000" leftmargin="0" right
margin="0" topmargin="0" bottommargin="0"
DEFANGED_Onload="DEFANGED_javascript:window.scroll(0,0)" _
[... cut ... lots more of these ... ]
[ score: 139 ]
04207 Rewrote HTML tag:
_input type="button" value="Save Changes"
onclick="javascript:confirmSave()"_
as _input type="button" value="Save Changes"
DEFANGED_Onclick="DEFANGED_javascript:confirmSave()"_
[ score: 140 ]
04208 Rewrote HTML tag:
_a href="javascript:submitForm('validate','')"_
as _a href="DEFANGED_javascript:submitForm('validate','')"_
[ score: 141 ]
04209 Rewrote HTML tag:
_a href="javascript:confirmReload()"_
as _a href="DEFANGED_javascript:confirmReload()"_
procmail: Program failure (1) of "/usr/local/anomy//bin/sanitizer.pl"
procmail: Rescue of unfiltered data succeeded
Subject: Can't set heartbeat interval on connection template - result erro
r a
Folder: /var/spool/mail/someuser
procmail log end --------------------