my $MAGIC_TO_REGEX = '^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To)';
my $MAGIC_TO_TOKEN = ' TO';
+# List of SPAM message numbers, scanned at the end so the user can
+# check for false positives.
+my @SPAM;
+
=head1 OPTIONS
=over 4
# fails. While it is slow, it is not safe to store multiple
# messages and then have a failure before marking some (or
# all).
- if ($mhfolder ne 'SPAM') {
+ if ($mhfolder eq 'SPAM') {
+ push(@SPAM, $msgnum);
+ } else {
$status = system('mark', "+$mhfolder", "$msgnum", '-sequence',
'unseen', '-add');
if (not WIFEXITED($status)) {
}
}
}
+
+ return $msgnum;
}
# Parse a message file into a structure describing the headers. The