Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Train Spamfilter Mailserver HowTo?

#1892

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.

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

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    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.

    December 19th, 2017 @ 10:22 AM

  2. matthias
    matthias

    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

    December 19th, 2017 @ 12:33 PM

  3. benny
    benny

    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.

    December 19th, 2017 @ 12:38 PM

  4. benny
  5. matthias
    matthias

    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

    December 20th, 2017 @ 08:01 AM

  6. matthias
    matthias

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

    December 20th, 2017 @ 11:35 AM

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.