Creating an email filter in Automator - HELP

Discussion in 'macOS' started by Sampadan, Mar 18, 2013.

  1. Sampadan macrumors newbie

    Sampadan

    Joined:
    May 23, 2008
    Location:
    London
    #1
    I've been trying to figure a way to send annoying spam to the trash folder by using automator.

    I've written a script and created a service that "bounces" unwanted emails, from a prewritten script I found on a search.

    However, what I'm really looking to do, is to be able to let mail delete emails containing specific content.

    I receive 3 spam emails per day (shock horror) and they always contain the exact same message, I thought I could probably write a script that looks for this sentence, then deletes the email.

    Can anyone help me with this!?

    Thanks
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    Any particular reason you don't want to use the spam filter built into mail?
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    A Mail rule like this would do exactly what you want.

    [​IMG]
     

Share This Page