I'm trying dbmail-filters as suggested in the wiki. Don't know yet the
results.
On May 2, 2014 12:46 AM, "Reindl Harald" <[email protected]> wrote:
> > require ["fileinto", "mailbox"];
>
> require ["fileinto"];
> is enough for dbmail
>
> > fileinto :create "Junk";
>
> fileinto "Junk";
> is enough on dbmail, missing folders are always created
>
> not sure about the current state but i remember
> that some require statements in the past leaded
> to problems while rules for them worked
>
> > or if dbmail runs global sieve scripts
>
> no, the underlying table has a fixed owner-id from
> dbmail_users, a scriptname, the script itself and
> the active flag while sieve defines only one
> script per user can be active at the same time
>
> MariaDB [dbmail]> show fields from dbmail_sievescripts;
> +------------+---------------------+------+-----+---------+-------+
> | Field | Type | Null | Key | Default | Extra |
> +------------+---------------------+------+-----+---------+-------+
> | owner_idnr | bigint(20) unsigned | NO | PRI | 0 | |
> | name | varchar(255) | NO | PRI | NULL | |
> | script | text | YES | | NULL | |
> | active | tinyint(1) | NO | | 0 | |
> +------------+---------------------+------+-----+---------+-------+
> 4 rows in set (0.00 sec)
>
>
> Am 01.05.2014 18:37, schrieb Mark Winslow:
> > This is a standard Sieve script for putting spam marked mail into a Junk
> folder. I'm not sure if it will work on
> > dbmail or if dbmail runs global sieve scripts. The :create flag tells
> it to create the folder if it doesn't exist.
> >
> > require ["fileinto", "mailbox"];
> > if header :contains "X-Spam-Flag" "YES" {
> > fileinto :create "Junk";
> > }
> >
> > On 4/30/2014 5:12 PM, Andrea Brancatelli wrote:
> >> I'm a bit confused after googling around: has "global sieve" (read, a
> default sieve for all the user) been
> >> implemented in dbmail?
> >>
> >> I would like to send mail marked as Spam by Spamassassin into a sub
> folder for each user called Spam. Do any of
> >> you do this? How? My best shot would be a sieve script that moves all
> the messages with ****SPAM**** in the
> >> subject into a specific folder. But then again what happens if sieve
> runs and there no "Spam" folder (yet)? Can
> >> it automatically create it on his own?
> >>
> >> How do you deal with spam on dbmail?
>
>
> _______________________________________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
>
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail