Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Solved, the problem of moving e-mails to the Junk folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Solved, the problem of moving e-mails to the Junk folder
Authored by: DaveCC on Jun 02, '03 08:18:54PM

Well, I've figured out why the SpamHolio Applescript isn't moving RBL flagged e-mails into the Junk folder reliably.

If you look in your ~/Library/Mail/Mailboxes directory, you will see that there is no actualy subdirectory for the Junk folder. I think the Mail application stores the Junk e-mails in another location which isn't accessible/addressable via applescript.

Those who have their Junk/Spam e-mails being dumped into a non-default location (ie. Spam or xxJunk) have noted that SpamHolio moved the flagged messages to their custom Junk folder.

I then figured that if I created a new mailbox (which I called Spam), and directed the script to move the flagged messages there, the line should look like this:

set mailbox of CurrentMessage to mailbox "Name_of_your_custom_Spam_Mailbox"

Now everything works just fine. My In box is now automatically cleared of spam/junk mail. Those discovered by Mail's built in rule get dumped into the Junk folder, those discovered by SpamHolio get dumped into the Spam folder.

I have my Mail filtering rules as such:
1) If Sender if in my address book, stop processing all filter rules.
2) If Sender is in one of my accepted domain lists, stop processing all filter rules.
3) (any other accept rules)
4) The Default Junk Rule plus an extra action that tells it to stop processing any further filter rules if a message is Junk.
5) Run the SpamHolio filter script.
6) (any other Spam rules, ie. I have one that looks for the various incarnations of Op-In/Opt-Out/Subscribe/Unsubscribe in the message body and moves the message to the Spam folder if it finds such text)

This way, SpamHolio only gets used if the Default Junk rule misses the spam message (less wear and tear on the RBL servers). If you want all your spam consolidated into the Junk folder automatically, I suppose you could switch the position of the SpamHolio rule to be before the Junk rule, so that the Junk rule will transfer the e-mail into the Junk folder (something my Applescript apparently can't do) for you.

Yaaaay, it works now!!!

Note, some people have noticed that by having SpamHolio check out alot of RBL's, you may end up with a time-out situation for the Mail application as it tries to delete the retrieved e-mail from your POP account's In box. This can result in multiple copies of the e-mail being checked ending up in your Spam mailbox. So pick your RBL's wisely and use them sparingly as in it probably isn't worth checking against like 10 RBL's. I use SpamCop, SPEWS, ORBS and SpamHaus which seem to give me a really good yield w/o severe time-out problems.

OK, long post, but that should do it.

Dave

---
I'm much calmer now that I don't use WinBlow$ anymore.



[ Reply to This | # ]
Solved, the problem of moving e-mails to the Junk folder
Authored by: jonahlee on Jun 03, '03 11:03:28AM

Yes, thank you, that does work. Hmm I wonder how you can script the actual JUNK mail box. I wonder if it is a problem that there are subcategories in it for each mail account you have?

---
- Jonah Lee



[ Reply to This | # ]
Duplicate E-mails
Authored by: jonahlee on Jun 05, '03 11:11:27PM

Well with the new script, yes it puts the e-mail in the new SPAM folder, but it doesn't erase it from the server, and I just keep getting the same e-mail again until I erase it. Anyone else having this problems?

---
- Jonah Lee



[ Reply to This | # ]
Duplicate E-mails
Authored by: DaveCC on Jun 07, '03 03:22:43AM

I think the general consensus is that this may be due to time out issues when accessing the POP server (ie. the connection with the POP server drops before the delete command is sussessfully sent so the command never makes it to the POP server) if you access ALOT of RBL lookups that may be a bit slow.

The solution is apparently to choose just 3-4 RBL's and find ones that give replies quickly to your IP lookup request. Try cutting down the number of RBL's used until this doesn't happen anymore. Most of us probably don't need to use all 8-9 RBL's listed.

Dave

---
I'm much calmer now that I don't use WinBlow$ anymore.



[ Reply to This | # ]
Solved, the problem of moving e-mails to the Junk folder
Authored by: tunesmith on Jun 12, '03 12:43:55AM

Well, to make it go into the real Junk folder with its subcategories, you could always do three rules.

Rule 1:
Regular Junk rule, with an extra action to stop processing further rules

Rule 2:
Spamholio rule, with the applescript edited so that it only sets the junk attribute without trying to store it

Rule 3:
Do the regular Junk rule *again*.

Seems like a dreadful hack, and I haven't tested it because I'm trying to do something else entirely, but I had to at least suggest it. Hope it works for someone.

tunesmith



[ Reply to This | # ]
Solved, the problem of moving e-mails to the Junk folder
Authored by: KenPishna on Aug 14, '03 04:52:41PM

I also have the spam messages not being deleted from my server. I am on a DSL connection and the check is very quick, so I don't think it's a time-out issue.

Has anyone had any success correcting this issue?



[ Reply to This | # ]