Tip: a rule to catch image spam in Mail.app

Discussion in 'OS X and OS X Apps' started by elbert, Oct 16, 2006.

  1. elbert

    elbert Active Member

    Joined:
    Apr 8, 2004
    Messages:
    13,923
    Likes Received:
    12
    Location:
    Manila
    I have a strong feeling that someone out there who hates me submitted my email address to the king of spammers. At any single day, I would receive an average of 30 unsolicited messages from various spammers (offering me stocks, viagra, penis enlargers and vibrating cock rings, although I actually inquired about he last one -- kidding!). It's gotten annoying, to say the least. The bad part is that Apple Mail.app's built-in junk filter doesn't catch them, thanks in part to the fact that spammers have been using image attachments to deliver their messages. I tried creating my own rule, but couldn't come up with one that could effectively segregate the illegitimate messages from my Inbox.

    A couple of months ago, I came across this entry in Hawk Wings, which suggested a rule to catch image spam. It's fairly simple. As the page states "The only tricky thing here is selecting the “Edit Header List…” from the list of conditions and then entering “Content-Type” in the next window. “Content-Type” will now appear in the list of conditions. You will need to select it and enter as its content “multipart/related”." That's the one condition I didn't figure out, and it makes this rule really work.

    Here's how my rule looks:
    [​IMG]

    For the first few weeks though, there were many instances of false-positives, so I tweaked it a bit. I added "set color" to distinguish Junk that was filtered by Mail automatically, from the ones moved to the junk folder by this rule. Also, I added the "Any attachment name ends with .gif" (not a lot of people send .gifs anyway).

    If and when you decide to try this out, you'll need to regularly visit the Junk folder to check for any legit email that may have been filtered. A simple drag and drop of legit messages back into the Inbox will train Mail to let messages from that person through the next time. It's like the reverse of junk mail training.

    For the past month, I noticed that I rarely get false positives. IOW, it's been working well. Now I visit the junk folder just once a week.

    Try it out. I hope it helps you (that is, if you have an image spam problem).
     
    #1 elbert, Oct 16, 2006
    Last edited: Dec 2, 2006
  2. penmanila

    penmanila The Pinoy Penman
    Staff Member

    Joined:
    Apr 8, 2004
    Messages:
    9,885
    Likes Received:
    1,743
    Gender:
    Male
    Location:
    Diliman/Metrowalk
    terrific, many thanks, have been waiting for this for ages! :)
     
  3. vicicasas

    vicicasas Active Member

    Joined:
    Apr 8, 2004
    Messages:
    3,040
    Likes Received:
    0
    Thank you, thank you, thank you.

    Now if only I could make these rules and filters apply on my E61 =(
     
  4. berniej

    berniej Active Member

    Joined:
    Apr 8, 2004
    Messages:
    2,067
    Likes Received:
    0
    Location:
    Laguna/SLEX/Makati
    OT: If you're stuck with Outlook at the office (like me), SPAMBayes is a godsend. I wish someone ports this very useful SPAM filtering plug-in for Mail.app
     
  5. alvinbai

    alvinbai Member

    Joined:
    May 25, 2004
    Messages:
    478
    Likes Received:
    0
    Location:
    Makati
    YES! Hope this works! Thank you!!!
     
  6. xellixous

    xellixous Member

    Joined:
    Aug 1, 2006
    Messages:
    118
    Likes Received:
    0
    hahahaha... I got the same problem elbert... thanks for that... :)
     
  7. loko__loko

    loko__loko Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    4,176
    Likes Received:
    39
    those spammers are getting creative everyday
     
  8. witch_md

    witch_md Active Member

    Joined:
    Oct 22, 2005
    Messages:
    641
    Likes Received:
    37
    Gender:
    Female
    this is very helpful. thanks
     
  9. scuba_holic

    scuba_holic Member

    Joined:
    Aug 15, 2005
    Messages:
    796
    Likes Received:
    6
    Location:
    Makati - Calamba and everywhere inbetween
    Thank you elbert!!!

    I'll be trying this out immediately!!!

    I wonder, though, what will the spammers come out with next. If this truly works the way it says it does, they will definitely tweak their emails again. But in the meantime, I'll settle for any short reprieve I can get.

    Thanks again for the tip!
     
  10. penmanila

    penmanila The Pinoy Penman
    Staff Member

    Joined:
    Apr 8, 2004
    Messages:
    9,885
    Likes Received:
    1,743
    Gender:
    Male
    Location:
    Diliman/Metrowalk
    it does work! of course every new email from people i don't know go to "junk", but i just have to review that pile occcasionally now--no more "undervalued stocks" or viagra offers in my main mailbox :)
     
  11. vicicasas

    vicicasas Active Member

    Joined:
    Apr 8, 2004
    Messages:
    3,040
    Likes Received:
    0
    I never realized the world had so many people with erectile dysfunctions that like to play the stock market.
     
  12. tjgato

    tjgato Active Member

    Joined:
    Apr 10, 2005
    Messages:
    1,334
    Likes Received:
    2
    Location:
    Pasig
    will have to try this on my computer
     
  13. alvinbai

    alvinbai Member

    Joined:
    May 25, 2004
    Messages:
    478
    Likes Received:
    0
    Location:
    Makati
    Elbert, Why is it that i still get some emails in my inbox with .gif attachments? I just copied the parameters of your rule but some attachments still gets thru.:slanted:
     
  14. elbert

    elbert Active Member

    Joined:
    Apr 8, 2004
    Messages:
    13,923
    Likes Received:
    12
    Location:
    Manila
    Hi Alvin, you might have another rule that is overriding the one you just created.
     
    #14 elbert, Dec 2, 2006
    Last edited: Dec 2, 2006
  15. elbert

    elbert Active Member

    Joined:
    Apr 8, 2004
    Messages:
    13,923
    Likes Received:
    12
    Location:
    Manila
    Folks, I made a mistake here. Although this rule works well as I first instructed, it should be set to ALL and not ANY. But then again, that could be a personal preference.

    Sorry about that.
     
  16. carlodude

    carlodude Member

    Joined:
    May 2, 2004
    Messages:
    628
    Likes Received:
    0
    Gender:
    Male
    Thank you for the tip elbert.
     

Share This Page

  • About PhilMUG

    Since the mid-1990s, PhilMUG (formerly the Philippine Macintosh Users Group) has grown to become not just the Philippines’ but one of the world’s foremost Apple user groups. Our online community brings together thousands of members from the Philippines and around the world for the latest news and discussions covering all Apple products and related hardware and software. Anyone can join PhilMUG, from newbies to experts, subject to our membership rules and guidelines.
  • Like us on Facebook

  • Buy us a beer!

    The staff works very hard to make sure that PhilMUG is running 24/7. Care to buy us a beer or help out with our hosting fees? We'd really appreciate it!

    Donate to us!