– This is executed when Mail runs the rule. On perform mail action with messages _messages – This is executed periodically when the script is run as a stay-open application. – This is executed when you run the script directly. Property pMoveYellowMessagesToTrash : true Property pMoveOrangeMessagesToTrash : true Property pMovePurpleMessagesToTrash : true – Install Location: ~/Library/Application Scripts/ – Summary: Automatically filter messages caught by server junk filters, moving the good messages to the inbox. – Apple Mail - Rescue Good Messages - SpamSieve AppleScripts All I did was change all the colors to true: Shouldn’t they all be marked by now? Is there a black list? I am confident I will never need an email from Sex Secrets. (4) Similar to (3): I have 17 messages that have the name listed as “Sex Secrets”, some from motorola and some from koala. I also have a million (161 messages) from The "n"s are numbers, so these aren’t identical, but it seems like anything from should be marked. The unmarked junk is later, so I am not sure why that is happening. (3) I have both marked and unmarked junk from the same email: (22 messages). They are all gray and blue, but most junk messages are. (2) What is up with the emails marked by SpamSieve with color bars, in the Junk folder, that don’t move? I can’t figure out anything different about them. But once everything is working, I will want to have those marked as read. (1) What should I change in the script to mark the messages moved to Trash as read? Right now it is kind of useful to see which ones are unread, as those are probably the ones moved by the script. Running the script again did not move any more messages. However, of the 190 left in Junk, at least half of them were marked with color bars by SpamSieve and so should have been moved to trash. I ran the script again today, and out of 455 emails in the Junk folder, 265 were moved to trash. There were still some emails marked by SpamSieve in the Junk mailbox.Ī bunch also moved to my inbox, because either they weren’t spam (I needed to unsubscribe from a bunch of things) or they weren’t identified as such by SpamSieve (I identified a bunch). A bunch moved to Trash, though they were still marked unread. Out of 1062 messages in Junk, there were 325 left. I ran the script with all the colors set to true (I will paste in the script I ran below). Okay, we are definitely onto something here. My debugLog( my makeLogMessage(“Finished checking mailbox”, _mailbox, “”)) My debugLog("Moving message to inbox: " & _message’s subject) If pMarkGoodMessagesRead then set _message’s read status to true If not my processMessageIfSpam(_message) then My debugLog( my makeLogMessage(“Messages to process in mailbox”, _mailbox, count of _messages)) Set _messages to messages of _mailbox whose read status is false and deleted status is false and background color is none My debugLog( my makeLogMessage(“Getting unprocessed messages in mailbox”, _mailbox, “”)) My debugLog( my makeLogMessage(“Total messages in mailbox”, _mailbox, _total)) Set _total to count of messages of _mailbox My debugLog( my makeLogMessage(“Start checking mailbox”, _mailbox, “”)) It will move the messages, no matter the state, back into the inbox, then run the original spam sieve algorithms. I think, frankly, this is the best solution, because it is the most generic, as it will undo any server’s spam filter actions. While I am not fluent in apple script, I probably can figure out what to do. If there is no combination of property’s to achieve what I want, I suspect I will need to clone the entire script and modify the filterMailbox section to always move messages from a junk folder to the inbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |