search for: addheader

Displaying 20 results from an estimated 57 matches for "addheader".

2014 May 09
3
v2.2.13.rc1 vs. Pigeonhole
Server: Ubuntu 10.04 LTS 32bit There seems to be an incompatibility when compiling Pigeonhole against Dovecot v2.2.13.rc1. # make check with Pigeonhole throws up the following error message: <snip> Test case: ./tests/extensions/editheader/addheader.svtest: 1: Test 'Addheader - first' SUCCEEDED 2: Test 'Addheader - last' SUCCEEDED 3: Test 'Addheader - framed' SUCCEEDED 4: Test 'Addheader - folded' SUCCEEDED 5: Test 'Addheader - newlines' FAILED: wrong first header content in redirected mail 6: Tes...
2018 Mar 03
2
pigeonhole 0.4.22 with sieve_before script crashes
...=%i/%o } --------------------------------------------------------------- sieve_before script for all users (/etc/dovecot/sieve/filter) --------------------------------------------------------------- require ["editheader"]; if header :contains "X-Spam-Flag" "YES" { addheader "X-Filter-Junk-Flag" "YES"; addheader "X-Filter-Junk-Type" "SPAM"; } elsif header :contains "X-Amavis-Alert" "INFECTED" { addheader "X-Filter-Junk-Flag" "YES"; addheader "X-Filter-Junk-Type" "VIR...
2019 Jun 14
2
Addheader specified field name `Reply-To:' is invalid.
Well, progress. At least now editheader loads. Sadly that brings up new errors. specified field name `Reply-To:' is invalid. if header :contains "List-id" "<users.spamassassin.apache.org>" { addheader "Reply-To:" "<users.spamassassin.apache.org>"; addheader "X-added-reply-To:" "True"; fileinto :create ?spamassassin"; stop;} -- You only had to look into Teatime's mismatched eyes to know one thing, which was this: if Teatime wanted...
2013 Feb 08
1
sieve /editheader / addheader :last crash
Hi Everybody, I'm using dovecot 2.1.14 from http://xi.rename-it.nl/debian/ with debian squeeze stable. In general, sieve works fine for me, but "addheader :last ..." from the editheader extension causes a crash when it processes a message. I was able to narrow this down a bit: It only happens if "addheader :last" is the first editheader command executed in a script. If it is preceded by any "deleteheader" or "addhead...
2020 May 13
5
Sieve addheader directive works only partially
Hi all, I want to add a custom header to incoming emails from a particular sender. This is what my user Sieve script looks like: require ?editheader?; if address :is "From? ?special-sender at example.com? { addheader ?X-My-Custom-Header? ?Header Value"; } I have enabled the editheader extension in my Dovecot configuration: plugin { ? sieve_extensions = +editheader } This doesn?t seem to work and no header is added to the email. However, if I also move the email to a different folder in the same...
2018 Mar 03
2
pigeonhole 0.4.22 with sieve_before script crashes
...------------ >> >> sieve_before script for all users (/etc/dovecot/sieve/filter) >> --------------------------------------------------------------- >> require ["editheader"]; >> >> if header :contains "X-Spam-Flag" "YES" { >> ? addheader "X-Filter-Junk-Flag" "YES"; >> ? addheader "X-Filter-Junk-Type" "SPAM"; >> } >> elsif header :contains "X-Amavis-Alert" "INFECTED" { >> ? addheader "X-Filter-Junk-Flag" "YES"; >> ? addheade...
2019 Jun 14
1
Addheader specified field name `Reply-To:' is invalid.
...e: >> >> >> Well, progress. At least now editheader loads. Sadly that brings up new errors. >> >> specified field name `Reply-To:' is invalid. >> >> if header :contains "List-id" "<users.spamassassin.apache.org>" { >> addheader "Reply-To:" "<users.spamassassin.apache.org>"; >> addheader "X-added-reply-To:" "True"; >> fileinto :create ?spamassassin"; >> stop;} > > Have you tried "Reply-To?? I have not. Trying that now. -- Reality is not a...
2019 Jun 14
0
Addheader specified field name `Reply-To:' is invalid.
...;br> </div> <div> specified field name `Reply-To:' is invalid. </div> <div> <br> </div> <div> if header :contains "List-id" "<users.spamassassin.apache.org>" { </div> <div> addheader "Reply-To:" "<users.spamassassin.apache.org>"; </div> <div> addheader "X-added-reply-To:" "True"; </div> <div> fileinto :create “spamassassin"; </div> <div> stop;} </div>...
2020 May 14
0
Sieve addheader directive works only partially
...t peterfolta.net> wrote: > > > Hi all, > > I want to add a custom header to incoming emails from a particular sender. This is what my user Sieve script looks like: > > require ?editheader?; > > if address :is "From? ?special-sender at example.com? { > addheader ?X-My-Custom-Header? ?Header Value"; > } > > I have enabled the editheader extension in my Dovecot configuration: > > plugin { > ? > sieve_extensions = +editheader > } > > This doesn?t seem to work and no header is added to the email. > However, if I...
2020 May 19
1
Sieve addheader directive works only partially
...rograms Thanks Peter > On May 15, 2020, at 3:49 PM, Stephan Bosch <stephan at rename-it.nl> wrote: > > > > Op 13-5-2020 om 20:10 schreef Peter Folta: >> require ?editheader?; >> >> if address :is "From? ?special-sender at example.com? { >> addheader ?X-My-Custom-Header? ?Header Value"; >> } >> >> I have enabled the editheader extension in my Dovecot configuration: >> >> plugin { >> ? >> sieve_extensions = +editheader >> } > > What version is this? Please provide output of `d...
2018 Mar 03
0
pigeonhole 0.4.22 with sieve_before script crashes
...---------------------------------------- > > sieve_before script for all users (/etc/dovecot/sieve/filter) > --------------------------------------------------------------- > require ["editheader"]; > > if header :contains "X-Spam-Flag" "YES" { > ? addheader "X-Filter-Junk-Flag" "YES"; > ? addheader "X-Filter-Junk-Type" "SPAM"; > } > elsif header :contains "X-Amavis-Alert" "INFECTED" { > ? addheader "X-Filter-Junk-Flag" "YES"; > ? addheader "X-Filter-Jun...
2018 Mar 03
0
pigeonhole 0.4.22 with sieve_before script crashes
...t;>> sieve_before script for all users (/etc/dovecot/sieve/filter) >>> --------------------------------------------------------------- >>> require ["editheader"]; >>> >>> if header :contains "X-Spam-Flag" "YES" { >>> ? addheader "X-Filter-Junk-Flag" "YES"; >>> ? addheader "X-Filter-Junk-Type" "SPAM"; >>> } >>> elsif header :contains "X-Amavis-Alert" "INFECTED" { >>> ? addheader "X-Filter-Junk-Flag" "YES"; &gt...
2020 May 15
0
Sieve addheader directive works only partially
Op 13-5-2020 om 20:10 schreef Peter Folta: > require ?editheader?; > > if address :is "From? ?special-sender at example.com? { > addheader ?X-My-Custom-Header? ?Header Value"; > } > > I have enabled the editheader extension in my Dovecot configuration: > > plugin { > ? > sieve_extensions = +editheader > } What version is this? Please provide output of `dovecot -n`. This smells a lot like an age...
2014 May 02
2
When the subject portion of an e-mail contains a control character, dovecot.sieve terminates unexpectatedly.
...m-Score: 100.00% ? Subject: =?ISO-2022-JP?B?GyRCI1QjRSNTI1QbKEIWGyRCI00jQSNJI0wbKEI=?= X-Spam-Score: 100.00% This is the log generated by the data above. ---------------------------------------------------------------------- sieve: info: started log at May 02 10:46:22. main script: line 14: error: addheader action: specified value `[SPAM] ???????' is invalid. ---------------------------------------------------------------------- Aside from [Ctrl + V] the following control charcters also cause errors: backspace Ctrl + A Ctrl + C Ctrl + [ Ctrl + X Ctrl + Y 2) When an e-mail's subject line cont...
2019 Jul 15
1
Sieve problem with duplicate and fileinto in the same set of rules
..." but I can't get it to work. I then activated also the "editheader" extension to better understand what the problem was and I get these results. Sieve rules without using "fileinto:" require ["duplicate", "editheader"]; if duplicate { addheader "x-sieve-test1" "duplicate"; } if allof (header :regex ["from"] [".*info at example\.com"], header :regex ["x-sieve-test1"] [".*duplicate"]) { addheader "x-sieve-test2" "confirm duplicate"; stop; } elsif head...
2015 Mar 04
1
Sieve editheader should support adding Received and Auto-Submitted headers
...o not. In a sieve file I add the following: if anyof ( header :contains ["From","Sender"] ?info at example.com" ) { if header :contains "Subject" [" just joined "," just left "] { if not exists "Auto-Submitted" { addheader "Auto-Submitted" "auto-generated (via sieve)"; } } However this doesn?t work and results in the following error > main script: line 205: warning: addheader action: specified header field `Auto-Submitted' is protected; modification denied. (Workaround for this sp...
2016 Mar 21
3
sieve - editheader - edit in place
Hello, i do some tests with sieve editheader extensions. deleteheader and addheader are working, but i noticed that new headerlines are always prepended to current header. So new lines can be found always on top. I am looking for a possibility to edit a headerline in place, without moving the new line to top of stack(replaceheader?). It is not looking good if a Subject-Line su...
2006 Feb 11
5
[OT] How to prepend copyright notices to each source file
Sorry for the off-topic post, but I guess someone else may hit the same issue.... Having developed a rails application, I now need to put GPL text and a copyright notice at the start of each source file. For the .rb files, this will look like: # Copyright 2006 Robert Jones........... and for the .rhtml files it will look like: <!-- Copyright 2006 Robert Jones......... Can anyone think of
2019 Jun 13
1
Sieve rewrite headers?
...Reply-To: and then add my own reply-to header. I don?t see anything in the various sieve examples I?ve found on altering the actual message. There is the editheader extension, but I failed to find documentation or examples on how to use it. It appears that I can add a header and delete a header (addheader deleteheader?) but not rewrite one. So something like if header ?Reply-to: foo at bar.tld? { addheader "X-Reply-To: foo at bar.tld? deleteheader ?Reply-To:? addheader "X-Reply-To: bar at foo.tld? } ?? Do I need to delete the header or will the add header ov...
2020 Feb 20
1
My sieve is failing
...to", "envelope", "mailbox", "imap4flags", "editheader" ]; /* other stuff */ elsif header :contains "List-id" "dovecot.dovecot.org" { if header :matches "Reply-to" "*" { deleteheader "From"; addheader "From" "${1}"; deleteheader "Reply-To"; addheader "Reply-To" "dovecot at dovecot.org"; addheader "X-Covisp-Reply-To" "True"; } fileinto :create "dovecot"; stop;} And the trace file: 55: h...