Move mailing list emails with rule (AppleScript)

was reading Move Mailing List Emails with Rule and I wanted to reply to it, actually to the author Arkouda, cause I’m curiout on his AppleScript solution. Anyone know how he might have done it, or a way to DM (direct message) in discussion.apple.com

MacBook Pro with Retina display, macOS High Sierra (10.13.4), Mail

Posted on May 1, 2018 1:50 AM

Reply
1 reply

May 2, 2018 8:50 AM in response to scot-a-coder

Hello!


I created a couple of scripts that manage mailing lists. I use a dedicated Mac (a server) which means that I can run the main script ("Script A", below) at 10s intervals. (This is to avoid the script interrupting the user, but I suppose you could use a mail rule that processes all incoming mail instead.)


The principle is this:


Script A: Gets all unread incoming mail and compares the sender's domain to a domain list that's maintained by Script B. If there's a match, each message is moved to the "Lists" subfolder.


Script B: Gets the sender domains of all messages in the "Lists" subfolder. If a new domain is found, it's added to the domain list. The list is written-out to disk. (This means that if I identify a message from a new domain that I want to be moved automatically in future, I can move it manually once and the scripts will do it for me in future.)


I can provide more information if this is of interest, but I think that the scripts as written are too specific to my setup to be of much use. Perhaps you can explain what it is you want to do?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Move mailing list emails with rule (AppleScript)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.