Displaying 20 results from an estimated 232 matches for "imapsieve_mailbox1_before".
2018 May 12
3
Marks as read on mover to Archive
How would I setup dovecot so that when messages are moved to the Archive mailbox, they are marked as read?
Would it be similar to the imap-sieve for spam tagging?
imapsieve_mailbox1_name = Junk
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
Or is there a simpler method?
If it matters:
mailbox Archive {
auto = subscribe
special_use = \Archive
--
According to the philosopher Ly Tin Weedle, chaos is found in greatest
abundance wherever order is being sought. It always defe...
2018 Jun 11
2
Sieve_default
I created a sieve_default to move any spam-tagged messages into the Junk mailbox automatically, but it doesn?t appear to be working (though the other imapsieve_mailbox? scripts are working).
From doveconf -n
plugin {
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *
imapsiev...
2018 Feb 13
2
Setting up sieve with spam learning
...sieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve
plugin {
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *
sieve_gl...
2020 Oct 21
2
Sieve_before
...i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext vnd.dovecot.pipe vnd.dovecot.filter vnd.dovecot.execute
}
plugin {
imapsieve_mailbox1_name = Junk
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/etc/dovecot/sieve/global/report-spam.sieve
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_before = file:/etc/dovecot/sieve/global/report-ham.sieve
sieve_global = /etc/dovecot/scripts/sieve
sieve = file...
2018 Dec 04
2
set seen flag and junk moving a mail manually to JUNK
...replaces all existing flags. In any case, I recommend you use this
> method instead:
>
> plugin {
> sieve_pipe_bin_dir = /etc/dovecot/sievepipe
>
> # Message moved into Spam folder
> imapsieve_mailbox1_name = Junk
> imapsieve_mailbox1_causes = COPY
> imapsieve_mailbox1_before = file:/etc/dovecot/sievepipe/report-spam
>
> # Message moved out of Spam folder
> imapsieve_mailbox2_name = *
> imapsieve_mailbox2_from = Junk
> imapsieve_mailbox2_causes = COPY
> imapsieve_mailbox2_before = file:/etc/dovecot/sievepipe/report-ham
> }
>...
2018 Jun 13
3
Sieve_default
...> Am 12.06.2018 um 01:01 schrieb @lbutlr:
>> I created a sieve_default to move any spam-tagged messages into the Junk mailbox automatically, but it doesn?t appear to be working (though the other imapsieve_mailbox? scripts are working).
>> From doveconf -n
>> plugin {
>> imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
>> imapsieve_mailbox1_causes = COPY
>> imapsieve_mailbox1_name = Junk
>> imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
>> imapsieve_mailbox2_causes = COPY
>> imapsieve_mailbox2_from =...
2020 Oct 22
0
Sieve_before
...ap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext vnd.dovecot.pipe vnd.dovecot.filter vnd.dovecot.execute
> }
>
> plugin {
>
> imapsieve_mailbox1_name = Junk
> imapsieve_mailbox1_causes = COPY
> imapsieve_mailbox1_before = file:/etc/dovecot/sieve/global/report-spam.sieve
>
> imapsieve_mailbox2_name = *
> imapsieve_mailbox2_from = Junk
> imapsieve_mailbox2_causes = COPY
> imapsieve_mailbox2_before = file:/etc/dovecot/sieve/global/report-ham.sieve
>
> sieve_global = /etc/dovecot/s...
2018 Dec 04
2
set seen flag and junk moving a mail manually to JUNK
Hi there!
I want to set the \seen and the Junk Flag to an email, which i move
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
2020 Apr 01
2
sieve compile error
...vnd.dovecot.pipe are
explicitly enabled:
protocol imap { mail_plugins = $mail_plugins imap_sieve imap_acl
mail_max_userip_connections = 50
plugin {sieve_plugins = sieve_imapsieve sieve_extprograms # From
elsewhere to Spam folder imapsieve_mailbox1_name = Spam
imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_before =
file:/etc/dovecot/sieve-scripts/report-spam.sieve # From Spam folder
to elsewhere imapsieve_mailbox2_name = * imapsieve_mailbox2_from =
Spam imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_before =
file:/etc/dovecot/sieve-scripts/report-ham.sieve#sieve_pipe_bin_dir =
/etc/dovecot/sieve-s...
2017 Apr 05
4
Using filter in an imapsieve script?
...sieve_pipe_bin_dir = /etc/dovecot/sieve-filters
sieve_execute_bin_dir = /etc/dovecot/sieve-filters
sieve_filter_exec_timeout = 10000
sieve_pipe_exec_timeout = 10000
sieve_execute_exec_timeout = 10000
imapsieve_mailbox1_name = Sent
imapsieve_mailbox1_causes = COPY APPEND
imapsieve_mailbox1_before =
file:/home/vmail/domain/user/dovecot-crypt-sent.sieve
}
and the content of the sieve script is:
require ["environment", "vnd.dovecot.filter", "variables", "imapsieve",
"vnd.dovecot.pipe", "vnd.dovecot.execute"];
if anyof (environment...
2020 Oct 30
1
Sieve filter script EXECUTION FAILED
...th key `</head>' => 1
> 32: finishing match with result: matched
> 32: jump if result is false
> 32: not jumping
> 34: filter action
> 34: execute program `darkmode.sh'
> 34: [[EXECUTION ABORTED]]
Here is the relevant part of doveconf -n
plugin {
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *
imapsiev...
SV: Marking all emails in "Trash" as opened, and also prohibiting email clients from creating new ma
2020 May 09
3
SV: Marking all emails in "Trash" as opened, and also prohibiting email clients from creating new ma
I tried with following:
require ["imap4flags"];
if not hasflag :is "\\Seen" {
setflag "\\Seen";
}
And then this in plugins.conf:
plugin {
sieve_plugins = sieve_imapsieve
imapsieve_mailbox1_name = Trash
imapsieve_mailbox1_before = file:/etc/dovecot/sieve/trash.sieve
}
It works in outlook, the mail is opened (mark as read) when it goes to
trash.
But in Samsung Email it doesn't work.
(or it works when I select in Samsung email, "Move to Folder" and then
"Trash", but if I select "Delete", th...
2018 Apr 12
2
ACL for system users?
...o = create
??? autoexpunge = 30 days
??? comment = Mesa?oj markitaj kiel ne deziritaj
??? special_use = \Junk
? }
? prefix =
? subscriptions = yes
? type = private
}
passdb {
? driver = pam
}
plugin {
? acl = vfile
? acl_shared_dict = file:/var/lib/dovecot/kundividitaj/shared-mailboxes
? imapsieve_mailbox1_before =
file:/etc/dovecot/sieve/imapsieve/report-spam.sieve
? imapsieve_mailbox1_causes = COPY FLAG
? imapsieve_mailbox1_name = Spamujo
? imapsieve_mailbox2_before =
file:/etc/dovecot/sieve/imapsieve/report-ham.sieve
? imapsieve_mailbox2_causes = COPY
? imapsieve_mailbox2_from = Spamujo
? imapsie...
2018 Oct 18
3
Fatal: setgid, imap connections dropped.
On 16.10.2018 21.32, J. de Meijer wrote:
> I'm still trying to fix this problem. Hopefully someone can help.
>
> I've upgraded dovecot to 2.3.3
> # dovecot --version
> 2.3.3 (dcead646b)
>
> That didn't help.
>
> Next I switched 10-auth.conf to use a local password file (instead of LDAP)
Can you provide doveconf -n please?
Aki
2020 Apr 22
2
Seive + Spamprobe terminates with signal 6
...ot;SCORE" "spamprobe" ["-c", "-d", "/home/u/${rhs}/home/${lhs}/.spamprobe", "receive"];
addheader :last "X-Spam" "${SCORE}";
if header :matches "X-Spam" "SPAM*" { fileinto "Junk"; }
plugin {
imapsieve_mailbox1_before = file:/etc/dovecot/sieve/retrain-as-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before = file:/etc/dovecot/sieve/retrain-as-good.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *...
2018 Aug 14
2
imapsieve wrong matches on APPEND cause
...sieve =
file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-scr
ipt.sieve
#------------------------
# Spam learning
#------------------------
# From elsewhere to Spam folder
imapsieve_mailbox1_name = Spam
imapsieve_mailbox1_causes = COPY APPEND
imapsieve_mailbox1_before =
file:/var/vmail/sieve/global/learn-spam.sieve
# From Spam folder to elsewhere
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_causes = COPY APPEND
imapsieve_mailbox2_before = file:/var/vmail/sieve/global/learn-ham.sieve
sieve_pipe_bin_dir =...
2019 May 30
2
failed to pipe to program sa-learn-spam.sh
...[ "${username}" ];
in doveconf I have:
> managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
>
> plugin {
> imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
> imapsieve_mailbox1_causes = COPY
> imapsieve_mailbox1_name = Junk
> ?
It WAS working.
--
Women and cats will do as they please, and men and dogs should relax an
get used to the idea.
2019 Jan 11
2
managesieve configuration
...sdb {
> args = username_format=%n /etc/dovecot/passwd.masterusers
> driver = passwd-file
> master = yes
> pass = yes
> }
> passdb {
> args = username_format=%n /etc/dovecot/passwd
> driver = passwd-file
> }
> plugin {
> imapsieve_mailbox1_before = file:/etc/dovecot/sieve/learn-spam.sieve
> imapsieve_mailbox1_cause = COPY FLAG
> imapsieve_mailbox1_name = Junk
> imapsieve_mailbox2_before = file:/etc/dovecot/sieve/learn-ham.sieve
> imapsieve_mailbox2_causes = COPY
> imapsieve_mailbox2_from = Junk
>...
2020 Feb 19
3
Sieve junks mail script creating links
...by doing a find for inodes and sorting the list by age and keeping the olds hard link and removing all the others, but I now can?t find it :/ so I have just taken to periodically nuking the entire folder, but I?d like to fix this.
*everything is current on FreeBSD 12.1-RELEASE
=> dovecot.conf
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
=> /usr/lib/dovecot/sieve/report-spam.sieve:
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.user" "*" {
set &quo...
2019 Nov 05
1
Trying to replace anti spam plugin with IMAPSieve; no joy
...global mail_plugins).
mail_plugins = $mail_plugins imap_acl imap_sieve
}
plugin {
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_trace_dir = /tmp
sieve_trace_level = matching
# From elsewhere to Spam folder
imapsieve_mailbox1_name = Spam
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
# From Spam folder to elsewhere
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
sieve_pipe_bin_dir = /usr/lib/dovecot/si...