search for: addflag

Displaying 20 results from an estimated 74 matches for "addflag".

2018 Dec 04
2
BUG: sieve does not set seen-Flag
...Flag: > > require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; > if environment :matches "imap.email" "*" { > ? set "email" "${1}";?? > } > addflag "Junk"; > addflag "\\seen"; > addflag "$label3"; > pipe :copy "learn-spam.sh"; > pipe :copy "learn-spam-sa.sh" [ "${email}" ]; > > When i move an unflagged email to Folder Junk, it is shown in > Thunderbird as "pe...
2018 Dec 04
2
set seen flag and junk moving a mail manually to JUNK
Hi Ralph! This is, what calls the correct sive-filter rules. I have that already in use. But the file file:/etc/dovecot/sievepipe/report-spam contains my sieve-script from my first posting. So, the difference from setflag to addflag is, setflag sets the flags, and only the given flags (removing all other flags), and addflag adds a flag to the existing flags... I fiddled around a little... The sieve-script sets the Junk-Flag, when it looks like: require ["imap4flags", "vnd.dovecot.pipe", "copy",...
2018 Dec 04
2
BUG: sieve does not set seen-Flag
...quot;include","fileinto","imap4flags","variables"]; > global "MyFlags"; > if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES" > { > redirect "spamtrap at spambouncer.org"; > addflag "MyFlags" "\\Seen Junk"; > fileinto :flags "${MyFlags}" "SPAM"; > stop; > } > > FWIW. > > > On Tue, Dec 4, 2018 at 8:25 AM Jakobus Sch?rz <wertstoffe at nurfuerspam.de> > wrote: > >> Now i tried an additional ru...
2018 Dec 04
2
BUG: sieve does not set seen-Flag
...l "MyFlags"; > > if header :contains > ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"]? "YES" > > { > >? ? redirect "spamtrap at spambouncer.org > <mailto:spamtrap at spambouncer.org>"; > >? ? addflag "MyFlags" "\\Seen Junk"; > >? ? fileinto :flags "${MyFlags}" "SPAM"; > >? ? stop; > > } > > > > FWIW. > > > > > > On Tue, Dec 4, 2018 at 8:25 AM Jakobus Sch?rz > <wertst...
2018 Dec 04
3
BUG: sieve does not set seen-Flag
...ariables"]; > >> > global "MyFlags"; > >> > if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES" > >> > { > >> > redirect "spamtrap at spambouncer.org"; > >> > addflag "MyFlags" "\\Seen Junk"; > >> > fileinto :flags "${MyFlags}" "SPAM"; > >> > stop; > >> > } > >> > > >> > FWIW. > >> > > >> > > >> > On Tue, Dec 4, 2018 at 8:...
2018 Dec 04
0
set seen flag and junk moving a mail manually to JUNK
...another Thunderbird-specific Flag: require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; if environment :matches "imap.email" "*" { ? set "email" "${1}";?? } addflag "Junk"; addflag "\\seen"; addflag "$label3"; pipe :copy "learn-spam.sh"; pipe :copy "learn-spam-sa.sh" [ "${email}" ]; When i move an unflagged email to Folder Junk, it is shown in Thunderbird as "personal", Junk but Unseen. So...
2018 Dec 04
0
BUG: sieve does not set seen-Flag
...and it works: require ["include","fileinto","imap4flags","variables"]; global "MyFlags"; if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES" { redirect "spamtrap at spambouncer.org"; addflag "MyFlags" "\\Seen Junk"; fileinto :flags "${MyFlags}" "SPAM"; stop; } FWIW. On Tue, Dec 4, 2018 at 8:25 AM Jakobus Sch?rz <wertstoffe at nurfuerspam.de> wrote: > Now i tried an additional rule in my "normal" working sieve-filter:...
2018 Dec 04
0
BUG: sieve does not set seen-Flag
...fileinto","imap4flags","variables"]; > > global "MyFlags"; > > if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES" > > { > > redirect "spamtrap at spambouncer.org"; > > addflag "MyFlags" "\\Seen Junk"; > > fileinto :flags "${MyFlags}" "SPAM"; > > stop; > > } > > > > FWIW. > > > > > > On Tue, Dec 4, 2018 at 8:25 AM Jakobus Sch?rz <wertstoffe at nurfuerspam.de > > > &gt...
2019 Aug 30
1
Sieve Header question.
I'm trying to make my github processing better, but I'm missing something. I have the following: if address :all :contains "from" ["github.com"] { addflag "github"; addflag "MyFlags" "github"; set "mailbox" "GitHub"; if address :matches :user "to" "*" { set "GHUser" "${1}"; addflag "${GHUser}"; addflag "MyFlags" &q...
2018 Dec 04
2
set seen flag and junk moving a mail manually to JUNK
...e manually to my Junk-Folder. I tried a lot... but nothing worked like expected. I have a sieve-filter, which takes an email and copy it to a pipe to rspamc. This filter is working correctly, i get a debug-message from the script, which is called through the sieve-filter. But adding another rule (addflag "Junk"; setflag "\\seen";) to this rule is getting ignored... Here is my sieve-rule: require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; if environment :matches "imap.ema...
2018 Dec 04
0
BUG: sieve does not set seen-Flag
...set Junk-Flag, and Thunderbird shows me the Emails marked as Junk. I can set the $label3-Flag, and Thunderbird shows me the Message marked as personal. Only the \Seen-Flag is not able to be set. Messages are always shown as Unseen. Sometimes also as Recent... Not when i set it in an own line with addflag. Not when i set it with setflag as the only Flag. Not when i set it together with other flags in one line. The other flags are set. Only \Seen is not set. BG Jakob Am 04.12.18 um 16:17 schrieb Aki Tuomi: > Did you notice the > > fileinto :flags > > usage? It comes from imap4sieve...
2018 Dec 04
0
BUG: sieve does not set seen-Flag
...;imap4flags","variables"]; >> > global "MyFlags"; >> > if header :contains ["X-LERCTR-Spam-Flag","X-TNTSCAN-Spam-Flag"] "YES" >> > { >> > redirect "spamtrap at spambouncer.org"; >> > addflag "MyFlags" "\\Seen Junk"; >> > fileinto :flags "${MyFlags}" "SPAM"; >> > stop; >> > } >> > >> > FWIW. >> > >> > >> > On Tue, Dec 4, 2018 at 8:25 AM Jakobus Sch?rz < >> werts...
2017 Apr 25
4
Pigeonhole / Bug with "duplicate" ?
Hello, Previously, while running Dovecot 2.2.27/Pigeonhole 0.4.16 the following code snippet was working as one would expect: if duplicate { addflag ["\\seen", "Duplicate"]; fileinto "Duplicate"; stop; } if address :contains "to" "user.email at example.com" { addflag "$label1"; } After upgrading to Dovecot 2.2.29.1/Pigeonhole 0.4.18 it's not working anym...
2008 Nov 25
1
Unable to use imapflags in sieve
...ng dovecot 1.1.6 with libsieve 2.2.5 and I can't use the imapflags extension. Here's the begginning of my .dovecot.sieve file : require ["fileinto"]; #require "imapflags"; #require "reject"; #if header :contains "X-DSPAM-Probability: 0.9" { # addflag "$label3"; #} # On d?place le spam dans le dossier Spam et on s'arr?te l? if header :contains "X-DSPAM-Result" "Spam" { fileinto "Spam"; # addflag "\\Seen"; stop; } # Si le destinataire est l'user apache, on discarde...
2018 Dec 04
2
BUG: sieve does not set seen-Flag
...e the > Emails marked as Junk. > I can set the $label3-Flag, and Thunderbird shows me the Message marked > as personal. > > Only the \Seen-Flag is not able to be set. Messages are always shown as > Unseen. Sometimes also as Recent... > > Not when i set it in an own line with addflag. > Not when i set it with setflag as the only Flag. > Not when i set it together with other flags in one line. The other flags > are set. Only \Seen is not set. > > BG Jakob > > Am 04.12.18 um 16:17 schrieb Aki Tuomi: > >> Did you notice the >> >> fileinto...
2016 Nov 04
2
How does one mark all messages as read (imap4flag "seen") with sieve?
Hello! I had hoped that marking all messages that arrive to a specific mailbox as read/seen would be as simple as applying the following sieve script to all incoming mail for that mailbox user: ######################## require ["imap4flags"]; addflag "\\Seen"; ######################## With this script in-place, mail does not appear to be marked as read/seen. It arrives as it normally would, and my email client sees it as new mail. Is something more required? Or is it a bug/limitation in my email client? I've found many examples...
2018 May 28
3
Second rule isn't apply when first rule matches
...quot;; } # rule:[Mail about the Cloud] if body :text :contains "cloud" { addflag "\\Flagged"; } Let's test it out, the two rules should be applied : $ sieve-test test.sieve testmail.eml Performed actions: * store message in folder: INBOX.I must answere Implicit keep: (none) sieve-test(root): Info: final result: success $ Notice that the last rule...
2011 Aug 30
5
Message flags
How do I set message flags in sieve rules in such a way that e.g. Thunderbird is displaying the mail as "important"? Is there a list of hwo flags are interpreted by different IMAP clients? -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax:
2010 Feb 15
1
sieve addflag has stopped working
.... I have a sieve script, generated by Ingo, that's supposed to mark spam messages as "Seen" and file them into the Junk folder. In part it reads: require ["regex", "body", "imapflags", "fileinto"]; if exists "X-Spam-Flag" { addflag "\\Seen"; fileinto "Junk"; removeflag "\\Seen"; stop; } This has been working correctly for a long time, but since about 2 weeks ago now, the "Seen" flag isn't being set, although the messages are still being filed into the Junk folder. In...
2017 Jan 13
4
Sieve removeflag Action
...in the client, one in INBOX and one in Trash. With removeflag in place, *both* messages are unflagged, the one in INBOX and the one in Trash. This used to work differently before if memory doesn't fail me. #Test if address :is "From" "user at example.com" { addflag "\\Flagged $MailFlagBit1"; keep; removeflag "\\Flagged $MailFlagBit1"; fileinto "Trash"; } # 2.2.devel (01867a4): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.devel (3c071a4) # OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.6 Regards T...