Op 15-4-2025 om 08:35 schreef Alexander Skwar via dovecot:
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=<1498541093.5055416.1744698567...@email.bluewin.ch>: 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?


You should begin by posting your configuration (`dovecot -n`)


Regards,

Stephan.


Regards,

Alexander

On Monday, 14. April 2025 18:24 CEST, "Alexander Skwar" <a...@skwar.xyz> wrote:

Hello

I've got issues using filters. Although a filter matches a message,
the message remains in the INBOX. In the log file
a...@skwar.xyz.sieve.log, I find this:

sieve: info: started log at 2025-04-14 18:15:31 +0200.
error: msgid=<1051036477.1870592.1744647326...@mail.yahoo.com>: 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" "hikingbuddiest...@gmail.com|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 -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to