Danil, see below
Danil V. Gerun wrote:
SB> Im wondering if someone has done a spam 'move' with an SQL command
SB> before?.. e.g., move all mail with subject begining with '***SPAM***' to
SB> a Junk folder?
SB> I know you can do this with a delivery command...
Here's my config for Exim:
transport dbmail_deliver:
dbmail_deliver:
driver = pipe
command = /usr/local/sbin/dbmail-smtp -d ${local_part} "${if
def:h_x-spam-flag:{-mSpam}{} }"
user = dbmail
It seems to be working =))
I'm using Exiscan and SpamAssassin.
Yesterday I set up the new configuration of DBMail, SpamAssassin on
the production server, which I was testing for a month or so ;)
BTW, at first I certainly tried "-m Spam", but the IMAP folder
" Spam" was created, so I had to remove the space :)
I'm using FreeBSD in case this 'bug or feature' depends on it.
Not quite... :) What i was after is to do this within the mysql client
on the command line. e.g.:
select * where bla bla..;
I was thinking of offering a 'Clear Spam from Inbox' command within our
webmail package.
Regards,
Simon