#1892 new
matthias

Train Spamfilter Mailserver HowTo?

Reported by matthias | December 19th, 2017 @ 09:22 AM

Hello,
I'm looking for a howTo for a makro/script (I used MailActions with AppleMail to do that)
mark mail(s) as spam/no-spam
redirect these mails to a given mail-address (spam/no-spam)
trash the sent mails
trash the mails, if spam
thanks
Q

p.s. I'm also looking for some doku on the whole filter mechanism and the filter hierarchy and how to change that.

Comments and changes to this ticket

  • benny

    benny December 19th, 2017 @ 10:22 AM

    You should use the “Rules” pane in the mailbox editor to setup rules which identify spam and then uses rule actions to mark, redirect, and trash the spam emails.

    Trashing the sent emails is going to be more tricky I guess. It would be possible to setup a mailbox which matches emails that are related to emails marked as spam. This mailbox could then have a rule which deletes the emails. There's a bit of a race condition though since you are also deleting the redirected emails... Maybe postpone this part of the puzzle until the main parts are working.

    See more about smart mailboxes here.

  • matthias

    matthias December 19th, 2017 @ 12:33 PM

    As I want this on demand, because not every mail marked as spam by SpamSieve is spam, I'd need to setup for each account a subfolder with the action filter on it, which starts running as soon as a mail is dropped in.
    Is there another way to create a script - like with MailActOn or AppleScript?
    Maybe with your plugin api?
    Thanks
    Q

  • benny

    benny December 19th, 2017 @ 12:38 PM

    Hmm, if I understand correctly then you could instead create a tag for these emails, e.g., name it ActOnThis. You could then make a smart mailbox which matches all of these emails and add the rules to that mailbox. Does that make sense?

    And yes, a bundle could probably do anything you want, but it'll be much simpler if you can avoid it.

  • benny
  • matthias

    matthias December 20th, 2017 @ 08:01 AM

    Benny,
    thanks for the tips.
    So I followed you advice and all the mails, which I tagged like that are showing up in the smart folder, but the action is not applied.
    Here's what I did in the rules editor for that box:
    Under Mailboxes: Any of the following mailbox: Junk
    Conditions: All of the following are true: Tags is SendToServ
    Submailboxes: -
    Rules: 1 Rule: All of the following is True: To is not my@gmail.com
    Redirect junkmail@domain.tls
    Delete Permanently
    What am I missing?
    Thanks
    Q

  • matthias

    matthias December 20th, 2017 @ 11:35 AM

    I don't know how and why, but now it works :-)
    Thanks again
    Q
    p.s. I bought a license as well :-)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages