similar to: Sieve matching the raw body

Displaying 20 results from an estimated 10000 matches similar to: "Sieve matching the raw body"

2020 Oct 20
2
Sieve body test
I have an email where I need to edit the body. I know this is generally a bad idea, but in this case I need to do it. The email comes in automatically every week or two, and so I thought that SIEVE would be the way to go. if header :contains "from" "theaddress at tehdomain" { if body :raw :contains "A string" { # Magic happens here } } It looks
2020 Sep 29
2
Re-sieve emails
On 29 Sep 2020, at 01:21, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: >> On 29/09/2020 09:09 @lbutlr <kremels at kreme.com> wrote: >> Is it possible to take the contents of a mailbox and feed them to the account's .active_sieve file for reprocessing? > You can use imap sieve refilter. https://doc.dovecot.org/configuration_manual/sieve/plugins/imapfilter_sieve/
2020 Jul 19
3
Sieve and handling multiple addresses
On 18 Jul 2020, at 11:23, Stephan Bosch <stephan at rename-it.nl> wrote: > On 12/07/2020 22:47, @lbutlr wrote: >> On 12 Jul 2020, at 10:17, Benny Pedersen <me at junc.eu> wrote: >>> @lbutlr skrev den 2020-07-12 16:43: >>>> I an trying to write a sieve action that will take mail that is >>>> addressed to a user only it is filed in a mailbox
2018 Feb 13
2
Setting up sieve with spam learning
Cribbing from the dovecot site I recently added the following lines to my dovecot.conf: managesieve_notify_capability = mailto 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 index ihave duplicate mime foreverypart extracttext imapsieve
2020 Oct 30
1
Sieve filter script EXECUTION FAILED
On 30 Oct 2020, at 12:34, @lbutlr <kremels at kreme.com> wrote: > I am not sure about the $1. I think filter just pipes the message (or part of the message. > > I will see what happens without the echo I suppose. > > Nope, still the same. > > 32: starting `:contains' match with `i;ascii-casemap' comparator: > 32: matching value `<!DOCTYPE
2020 Sep 05
2
Default sieve mark seen?
I have the following in my default.sieve file: require "fileinto"; if header :contains "X-spam-flag" "YES" { require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables", "imap4flags"]; setflag "\\Seen"; fileinto "Junk"; } This is largely unchanged, except that I
2017 Dec 29
4
Adding Sieve to Roundcube
I'm planning on adding support for sieve to Roundcube here in the near future and am looking for any recommendations on read-mes on how to do this. I am planning on waiting until 2.3.0 hits Freebsd Ports -- No Sigs. Blame Apple.
2020 Sep 29
2
Re-sieve emails
Is it possible to take the contents of a mailbox and feed them to the account's .active_sieve file for reprocessing? (For example, when editing the sieve file for my list account I introduced a typo, so a hundred or some list messages ended up in the inbox instead of filed properly into the maildir hierarchy. Not a huge deal, as it was simple enough to move them manually, but it got me
2020 Apr 02
4
Sieve with links?
On 02 Apr 2020, at 03:48, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > On 2.4.2020 11.07, @lbutlr wrote: >> Is there any reason that a .active_sieve file would not load because it is a symbolic link? The target of the link is readable by the mail user, but instead of getting the trace for the .active_sieve file, I only get the trace for the default sieve file. > > Does
2019 Jun 19
2
User listing returned failure with -A
First, I archive the old messages in the INBOX on my list account # doveadm -Dv move -u kremels at kreme.com Archive mailbox INBOX BEFORE 90d Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm Debug: Skipping module doveadm_acl_plugin, because dlopen() failed:
2020 Oct 22
2
Sieve_before
On 22 Oct 2020, at 10:05, @lbutlr <kremels at kreme.com> wrote: > require ["variables", "copy"]; > > if address :matches ["To", "Cc"] ["*@*."] { > redirect :copy "backup+295.${1}.${2}@*example.com*"; > } I have tried this with similar results: require ["copy", "variables",
2019 Jun 13
3
Sieve logging?
I am trying to create some sieve scripts to filter my mailing lists and am wondering if sieve logs anywhere, and it so where? I don?t see anything in mail.log beyond lines like: dovecot: lda(kremels at kreme.com)<39790><hNchChSkAV1umwAAIdGjjQ>: sieve: msgid=<267D5D71-D99C-4790-8706-C1A92BCC9F97 at kreme.com>: stored mail into mailbox ?INBOX' Which doesn?t really tell me
2020 Oct 30
4
Sieve filter script EXECUTION FAILED
> On 30/10/2020 19:25 Bernd Petrovitsch <bernd at petrovitsch.priv.at> wrote: > > > On 30/10/2020 17:11, @lbutlr wrote: > [...] > > echo $1 | sed -e '|</head>|<style>* {color:white !important; background-color: black !important; } </style></head>|' > > What should the sed stuff do? > TTBOMK '|' is not known by sed ...
2020 Jan 06
1
Logging what sieve does
Is there anyway to log exactly what sieve does with a message? (Like, what rules triggered, flags applied, headers rewritten, if the message was placed anywhere else before final delivery, etc). -- In Genua, stories came to life. In Genua, someone set out to make dreams come true. Remember some of your dreams?
2020 Feb 19
3
Sieve junks mail script creating links
My Junk mailbox is still filling up with hard linked emails. There are some junk mails with over 3000 hard linked files and over half a million files in the .Junk/cur folder. I had a handy script to remove them all 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
2020 Oct 22
2
Sieve_before
On 21 Oct 2020, at 14:10, @lbutlr <kremels at kreme.com> wrote: > I have trace logs enabled for user scripts, but I think only error get logged for upper level, and only along the lines of "could not compile <name of sieve>". Any ideas? Is there a way to force the default and sieve_before scripts to log to syslog? -- The real world was far too real to leave neat little
2020 Apr 20
5
sieve question
Hi Ralph! Thanks for your reply! On 4/20/20 12:19 PM, Ralph Seichter wrote: > I suggest you don't use Sieve for this, but simply configure Postfix > to reject messages to @old.domain.com with the desired message. MTA > rejections signal clearly that the message has not been delivered, and > you can also include an URL pointing to a web page with more detailed > information.
2016 Jun 15
2
Mail dates
On Jun 15, 2016, at 9:44 AM, Tanstaafl <tanstaafl at libertytrek.org> wrote: > On 6/14/2016 6:50 PM, @lbutlr <kremels at kreme.com> wrote: >> Where exactly does dovecot get the date that it reports via IMAP? > > This is a problem with how you restored the files. > > On a linux system, you should use something like rsync -a to preserve > the original
2020 Oct 22
2
Sieve_before
On 22 Oct 2020, at 15:10, Sean Kamath <kamath at moltingpenguin.com> wrote: > On Oct 22, 2020, at 12:19, @lbutlr <kremels at kreme.com> wrote: >> On 22 Oct 2020, at 10:05, @lbutlr <kremels at kreme.com> wrote: >>> if address :matches ["To", "Cc"] ["*@*."] { >> if envelope :matches :detail "to" "*" {
2020 Oct 23
3
Sieve_before
> On Oct 22, 2020, at 15:58, @lbutlr <kremels at kreme.com> wrote: > > On 22 Oct 2020, at 15:46, @lbutlr <kremels at kreme.com> wrote: >> And it doesn't explain why "if address :matches ["To", "Cc"] ["*@*."] {" also failed to match despite also showing the email address. >> >>> ?kremels at kreme.com? does not