Connor
My feedback
4 results found
-
53 votes
Connor supported this idea ·
-
560 votes
Connor supported this idea ·
-
19 votes
An error occurred while saving the comment Connor supported this idea ·
-
41 votes
An error occurred while saving the comment Connor commented
The Title of this should mention the Sieve Extension's name: Mailbox.
This is needed for me to take advantage of PM's +aliases feature. Simple example that works on other platforms:
require ["fileinto","imap4flags","variables","regex","mailbox"];
## Move messages sent to an address with a suffix eg, me+amazon@example.com in to a folder called amazon, creating it if not
if exists "X-Delivered-To" {
if header :regex "X-Delivered-To" "\\+([A-z0-9]+)@" {
set :upperfirst "suffix" "${1}"; ## capitalize folder name
fileinto :create "INBOX.${suffix}";
stop;
}
}Connor supported this idea ·
Also, the :create flag requires the "mailbox" extension, which is mentioned in another, more popular request. In fact you can handle subaddresses with just the mailbox extension:
require ["fileinto","imap4flags","variables","regex","mailbox"];
## Move messages sent to an address with a suffix eg, me+amazon@example.com in to a folder called amazon, creating it if not
if exists "X-Delivered-To" {
if header :regex "X-Delivered-To" "\\+([A-z0-9]+)@" {
set :upperfirst "suffix" "${1}"; ## capitalize folder name
fileinto :create "INBOX.${suffix}";
stop;
}
}