search for: deleteheader

Displaying 20 results from an estimated 31 matches for "deleteheader".

2019 Mar 28
2
pigeonhole tests crashing in deleteheader.svtest
Hi, when trying to build dovecot 2.3.5.1 pigeonhole testsuite crashes in Test case: ./tests/extensions/editheader/deleteheader.svtest: 1: Test 'Deleteheader - nonexistent' SUCCEEDED 2: Test 'Deleteheader - nonexistent (match)' SUCCEEDED 3: Test 'Deleteheader - one' SUCCEEDED 4: Test 'Deleteheader - two (first)' SUCCEEDED 5: Test 'Deleteheader - two (last)' SUCCEEDED 6: T...
2013 May 01
1
sieve: deleteheader sometimes fails [bug]
Hi, We're using Dovecot 2.1.16 with Pigeonhole 0.3.4. Mail is delivered by exim4 to the dovecot LDA. Sometimes users are unable to delete headers. I've narrowed the problem down to preceding the deleteheader command with a query against the body. A simple example: """ require ["body", "editheader", "fileinto"]; if body :contains "!TEST!" { fileinto "INBOX.Trash"; stop; } deleteheader "Subject"; addheader "Subject"...
2020 Aug 29
2
Sieve: deleteheader now working with duplicate filter for implicit keep
...;if duplicate" filter, the header does get deleted as expected. I'm using the latest Dovecot 2.3.11.3 / Pigeonhole 0.5.11. Any idea why this is happening? Thanks, Alec === Sieve filter require ["fileinto", "editheader", "duplicate", "mailbox"]; deleteheader "X-Bad-Header"; if duplicate { fileinto :create "Trash"; stop; } if header :matches "subject" "*filter*" { fileinto :create "Filtered"; } === Example (note ${RANDOM} to bypass duplicate filter) $ /usr/libexec/dovecot/deliver...
2020 Sep 04
0
Sieve: deleteheader not working with duplicate filter for implicit keep
...ctual delivery using the sieve_trace* settings (https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Trace_Debugging)? > > > + nl -ba mini.sieve > 1 require ["fileinto", "editheader", "duplicate", "mailbox"]; > 2 > 3 deleteheader "X-Bad-Header"; > 4 > 5 if duplicate { > 6 fileinto :create "Trash"; > 7 stop; > 8 } > > + tee test.msg > To: me at example.com > From: someone at example.com > Subject: Test Message > Message-Id: <8500 at examp...
2020 Sep 03
2
Sieve: deleteheader not working with duplicate filter for implicit keep
...is > happening during delivery and why. It's saying "deleted 1 occurrences of header", but when it gets stored, the header is still there. + nl -ba mini.sieve 1 require ["fileinto", "editheader", "duplicate", "mailbox"]; 2 3 deleteheader "X-Bad-Header"; 4 5 if duplicate { 6 fileinto :create "Trash"; 7 stop; 8 } + tee test.msg To: me at example.com From: someone at example.com Subject: Test Message Message-Id: <8500 at example.net> Date: Thu, 20 Aug 2020 00:21:24 +0000 (UTC) X-Ba...
2020 Sep 02
0
Sieve: deleteheader now working with duplicate filter for implicit keep
...g? Can you enable Sieve tracing? That should show you in detail what is happening during delivery and why. Regards, Stephan. > Thanks, > Alec > > === Sieve filter > > require ["fileinto", "editheader", "duplicate", "mailbox"]; > > deleteheader "X-Bad-Header"; > > if duplicate { > fileinto :create "Trash"; > stop; > } > > if header :matches "subject" "*filter*" { > fileinto :create "Filtered"; > } > > === Example (note ${RANDOM} to by...
2019 Mar 28
0
pigeonhole tests crashing in deleteheader.svtest
> On 28 March 2019 19:40 Michal Hlavinka via dovecot <dovecot at dovecot.org> wrote: > > > Hi, > > when trying to build dovecot 2.3.5.1 pigeonhole testsuite crashes in > Which version of pigeonhole are you using? Aki
2019 Mar 29
2
pigeonhole tests crashing in deleteheader.svtest
On 3/28/19 6:41 PM, Aki Tuomi via dovecot wrote: > >> On 28 March 2019 19:40 Michal Hlavinka via dovecot <dovecot at dovecot.org> wrote: >> >> >> Hi, >> >> when trying to build dovecot 2.3.5.1 pigeonhole testsuite crashes in >> > > Which version of pigeonhole are you using? latest available - 0.5.5
2019 Apr 11
0
pigeonhole tests crashing in deleteheader.svtest
On 29/03/2019 10:23, Michal Hlavinka via dovecot wrote: > On 3/28/19 6:41 PM, Aki Tuomi via dovecot wrote: >> >>> On 28 March 2019 19:40 Michal Hlavinka via dovecot >>> <dovecot at dovecot.org> wrote: >>> >>> ? Hi, >>> >>> when trying to build dovecot 2.3.5.1 pigeonhole testsuite crashes in >>> >> >> Which
2019 Apr 18
1
pigeonhole tests crashing in deleteheader.svtest
On 4/12/19 12:48 AM, Stephan Bosch wrote: > > > On 29/03/2019 10:23, Michal Hlavinka via dovecot wrote: >> On 3/28/19 6:41 PM, Aki Tuomi via dovecot wrote: >>> >>>> On 28 March 2019 19:40 Michal Hlavinka via dovecot >>>> <dovecot at dovecot.org> wrote: >>>> >>>> ? Hi, >>>> >>>> when trying to
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...
2013 Sep 06
1
sieve vacation question
Hello Stephan, I love to use the vacation extension to build an echo service. I have not to worry about whether to answer or not if the sender is a list, postmaster, mailer-daemon or other crasy thing. But i like to echo the *complete headers* back. I did not found a solution with sieve yet. Is it really impossible? Thanks Andreas
2015 Mar 04
1
Sieve editheader should support adding Received and Auto-Submitted headers
...src/lib-sieve/plugins/editheader/ext-editheader-common.c I can see that "Auto-Submitted? and ?Received? are hardcoded to be blocked without reference to whether they are to be added or removed. However, the hard restriction in RFC 5293 on Auto-Submitted and Received only applies to the use of deleteheader and not addheader. https://tools.ietf.org/html/rfc5293#section-6 > As a matter of local policy, implementations MAY limit which header > fields may be deleted and which header fields may be added. However, > implementations MUST NOT permit attempts to delete "Received&quo...
2016 Jun 01
3
forwarding emails using sieve
I know this is a tad tangential to dovecot, but maybe someone has some pointers for me. I'm trying to forward emails using the sieve filtering and redirect doesn't do it because it doesn't wrap the message in a new email, instead, it seems to just change the envelope From (and To). This causes the outbound relay to reject the message for security/spam reasons (forged From). It
2015 Apr 08
3
sieve plugin editheader not found
...bugs.gentoo.org/show_bug.cgi?id=522148 Okay, here are some informations: Steps to Reproduce: add "editheader" to sieve options or "sievec" a file that need the extension if header :matches "Something" "*" { addheader "Anything" "${1}"; deleteheader "Something"; } sievec mod_header.sieve sievec(root): Fatal: Plugin 'editheader' not found from directory /usr/lib64/dovecot/sieve dovecot --version 2.2.16 pigeonhole-0.4.7 sources got downloaded and used in the build process dovecot -n # 2.2.16: /etc/dovecot/dovecot.conf #...
2019 Jun 13
1
Sieve rewrite headers?
...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 overwrite the o...
2020 Feb 20
1
My sieve is failing
..., "variables", "fileinto", "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"; sto...
2008 May 31
1
Sieve Editheader Extension?
I've done extensive searches, and there is virtually no information about actual implementations of the draft Sieve Editheader Extension (which provides 'addheader' and 'deleteheader' actions): http://www.ietf.org/internet-drafts/draft-ietf-sieve-editheader-11.txt Is anyone currently working on this for Dovecot Sieve? If not, are there any plans to do so? And before I start digging through the source, is the architecture amenable to this functionality? Thanks, :: Mi...
2013 Feb 08
1
sieve /editheader / addheader :last crash
...rks 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 "addheader" without ":last", everything is fine. This is what I get from sieve-test when it crashes: sieve-test(root): Panic: file istream.c: line 133 (i_stream_read): assertion failed: (_stream->skip != _stream->pos) sieve-test(root): Error: Raw backtrace:...
2012 Jul 25
2
Sieve & Adding headers.
Hi all, I've just migrated my mail system from procmail to managesieve/sieve and I'm having trouble trying to duplicate a could of rules I used to use in my procmail config. One particular rule would be this: :0 Wfh * ^Sender: owner-scientific-linux-devel at LISTSERV.FNAL.GOV | (sed -e '/^Subject:/ s/\[SCIENTIFIC-LINUX-DEVEL\] *//g'| sed ':a;N;$!ba;s/Precedence: