Hi Alexander,
Stupid question: does filtering to an alternative root folder work when
you leave all the unicode/emoji stuff out? Maybe you misconfigured
something else for delivering to mailboxes that are not under INBOX?
Can you do a simple 'fileinto: "test";' and start debugging from there?
Kind regards,
Tom
On 15-04-2025 08:35, Alexander Skwar via dovecot wrote:
Hello again
I really, **REALLY** do not get the issues with filtering _AT ALL_.
For testing, I now added such a rule:
if allof (address :regex :comparator "i;octet" "from"
"@(bluewin\\.ch|yahoo\\.com)$") {
addflag "$label3";
fileinto "INBOX/🎗 Social Networks";
stop;
}
When I send an e-mail from either my "bluewin.ch" or "yahoo.cm"
account, it gets flagged with "$label3" and filed to
"INBOX/🎗 Social Networks". Just like it should be - all good :)
BUT…
When I change that "fileinto "INBOX/🎗 Social Networks";" to
"fileinto "🎗 Social Networks";", I'll get errors like that:
error: msgid=<[email protected]>: fileinto
action: failed to store into mailbox '🎗 Social Networks': Mailbox doesn't exist: 🎗
Social Networks.
The mailbox "🎗 Social Networks" *does* exist - it's a "main folder",
so to say; NOT under "INBOX".
> > Why is that so? How could that be debugged properly?
Regards,
Alexander
On Monday, 14. April 2025 18:24 CEST, "Alexander Skwar" <[email protected]> wrote:
Hello
I've got issues using filters. Although a filter matches a message,
the message remains in the INBOX. In the log file
[email protected], I find this:
sieve: info: started log at 2025-04-14 18:15:31 +0200.
error: msgid=<[email protected]>: fileinto
action: failed to store into mailbox '🎗 Social Networks/🏔🚴 Draussen': Mailbox doesn't
exist: 🎗 Social Networks/🏔🚴 Draussen.
Yes, the folders are **really** named "🎗 Social Networks" and
"🏔🚴 Draussen" 😜 I like emojis, makes it easier for me to find
things again 🙂
The filter rule for this is:
require ["regex","imap4flags","fileinto"];
if anyof (address :regex :comparator "i;octet" "from"
".*@(yahoo\\.com|bergportal\\.ch|freezetag\\.com|garmin\\.com|geocaching\\.com|komoot\\.de|munzee\\.com|quaeldich\\.de|spontacts\\.com|squadrats\\.com|strava\\.com|update\\.strava\\.com|velocity\\.ch|wandrer\\.earth)$",
address :regex :comparator "i;octet" ["to", "cc"]
"hiking-buddies@acc\\.alexs77\\.rodeo|carving\\.fleshed313@alexs77\\.foobar\\.vip|com\\+wandrer\\.earth@skwar\\.me|squadrats\\.com@acc\\.alexs77\\.rodeo", address :regex
:comparator "i;octet" "from" "[email protected]|email.meetup.com") {
fileinto "🎗 Social Networks/🏔🚴 Draussen";
stop;
}
In this case, it matches on "<whatever>@yahoo.com".
Why did it not find the folder?
I created the folder and rule in SOGo 5.12.0 from mailcow 2025-03b.
bd36093fccaa:/var/vmail/sieve# dovecot --version
2.3.21.1 (d492236fa0)
Should the Emojis somehow be encoded, so that the filter would work?
Cheers,
Alexander
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]