Automator Mail Script Wanted for Move / Delete Messages

Discussion in 'Mac Programming' started by marker227, Jan 29, 2017.

  1. marker227 macrumors 6502

    Mar 29, 2004
    Hey all,

    I've already contacted Apple support on this issue and the senior advisor told me as of now I can't accomplish what I want with the Mail application. He suggested I look around for a script for the Automator or have someone make one for me.

    Here's what I want...

    I'd like to have Mail move all messages from sender "John Doe" to a specified folder. After that, I'd like Mail to delete all messages from said user if they are 24 hours or older from the current received date. I picked 24 hours because that's the lowest number Mail offers, but realistically I'd like to go with say 4 or 6 hours.

    I get a lot of notifications from a service I use and it sometimes clogs up my inbox. Hence, why I want to move them to a dedicated folder... I want/need to have the old notification messages purged from the folder to keep it clean and up to date.

    If anyone could help me with this, I'd be grateful!

  2. marker227 thread starter macrumors 6502

    Mar 29, 2004

Share This Page