Displaying 1 result from an estimated 1 matches for "delete_messag".
Did you mean:
delete_message
2007 Oct 09
1
SpamAssassin and Public Namespace
...if ($debug) { $salearn = `/usr/bin/sa-learn -D --no-sync --showdots
--spam /tmp/salearn`; }
# else
{ $salearn = `/usr/bin/sa-learn --no-sync --showdots --spam /tmp/salearn`; }
print "-------\nSpam: ",$salearn,"\n-------\n" if $debug;
# delete processed message
$imap->delete_message($msgs[$i]);
unlink("/tmp/salearn");
}
$imap->expunge();
$imap->close();
# Process the not-spam mailbox
*$imap->select('Filter/Non-spam');*
my @msgs = $imap->search("ALL");
for (my $i=0;$i <= $#msgs; $i++)
{
$imap->message_to_file("/tmp/salear...