https://blog.kamens.us/2009/12/30/hack-of-the-day-auto-filing-imap-sent-items-folder/
Hack of the day: auto-filing IMAP "Sent Items" folder