Last active
June 14, 2021 14:55
-
-
Save makubi/5b616de5ecf438ac29025552c5a37aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require [ "fileinto", "variables", "mailbox", "envelope" ]; | |
if address :matches "delivered-to" "*+*@domain.com" { | |
set "lopart" "${1}"; | |
} elsif address :matches "delivered-to" "*@domain.com" { | |
set "lopart" "${1}"; | |
} | |
if mailboxexists "domain.com/${lopart}" { | |
fileinto "domain.com/${lopart}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment