Add test for #5657

pull/5480/merge
Aleksander Machniak 8 years ago
parent f7809af6e4
commit 4f48202f90

@ -0,0 +1,16 @@
require ["envelope","fileinto","imap4flags","subaddress"];
# simple to-be-ignored comment with an empty line after (#5657)
# another comment
if envelope :detail "to" "addressextension"
{
setflag "\\Flagged";
}
# Spam
if header :is "X-Spam-Flag" "YES"
{
fileinto "Junk";
stop;
}

@ -0,0 +1,10 @@
require ["envelope","fileinto","imap4flags","subaddress"];
if envelope :detail "to" "addressextension"
{
setflag "\\Flagged";
}
if header :is "X-Spam-Flag" "YES"
{
fileinto "Junk";
stop;
}
Loading…
Cancel
Save