Mailing List Archive

WG: Remove header disposition-notification-to in an acl
I tried this without any success

condition = ${if def:disposition-notification-to: {1}{0}}
headers_remove = disposition-notification-to





-----Urspr?ngliche Nachricht-----
Von: Mueller [mailto:mueller@tplk.loc]
Gesendet: Freitag, 16. M?rz 2018 09:07
An: 'exim-users@exim.org' <exim-users@exim.org>
Betreff: Remove header disposition-notification-to in an acl

I am trying to remove a soecial header from within acl_check_recpi: header
disposition-notification-to.

Is this possible?

Greetings

Daniel








--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: WG: Remove header disposition-notification-to in an acl [ In reply to ]
Hello!

On Fri, 16 Mar 2018 at 09:15:56 (+0100), Mueller via Exim-users wrote:

> I tried this without any success

> condition = ${if def:disposition-notification-to: {1}{0}}
> headers_remove = disposition-notification-to

s/def:disposition-notification-to:/def:h_disposition-notification-to:/

> -----Urspr?ngliche Nachricht-----
> Von: Mueller [mailto:mueller@tplk.loc]
> Gesendet: Freitag, 16. M?rz 2018 09:07
> An: 'exim-users@exim.org' <exim-users@exim.org>
> Betreff: Remove header disposition-notification-to in an acl

> I am trying to remove a soecial header from within acl_check_recpi: header
> disposition-notification-to.

> Is this possible?

> Greetings

> Daniel

--
George L. Yermulnik
[YZ-RIPE]

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: WG: Remove header disposition-notification-to in an acl [ In reply to ]
Hello!

On Fri, 16 Mar 2018 at 10:52:57 (+0200), George L. Yermulnik wrote:

> > I tried this without any success

> > condition = ${if def:disposition-notification-to: {1}{0}}
> > headers_remove = disposition-notification-to

> s/def:disposition-notification-to:/def:h_disposition-notification-to:/

and s/headers_remove/remove_header/ if you use this in acl

> > -----Urspr?ngliche Nachricht-----
> > Von: Mueller [mailto:mueller@tplk.loc]
> > Gesendet: Freitag, 16. M?rz 2018 09:07
> > An: 'exim-users@exim.org' <exim-users@exim.org>
> > Betreff: Remove header disposition-notification-to in an acl

> > I am trying to remove a soecial header from within acl_check_recpi: header
> > disposition-notification-to.

> > Is this possible?

> > Greetings

> > Daniel

--
George L. Yermulnik
[YZ-RIPE]

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: WG: Remove header disposition-notification-to in an acl [ In reply to ]
On 16/03/18 08:56, George L. Yermulnik via Exim-users wrote:
>>> condition = ${if def:disposition-notification-to: {1}{0}}
>>> headers_remove = disposition-notification-to
>
>> s/def:disposition-notification-to:/def:h_disposition-notification-to:/
>
> and s/headers_remove/remove_header/ if you use this in acl

And you don't need the "if"
--
Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: WG: Remove header disposition-notification-to in an acl [ In reply to ]
> I am trying to remove a soecial header from within acl_check_recpi: header
> disposition-notification-to.

> I tried this without any success
>
> condition = ${if def:disposition-notification-to: {1}{0}}
> headers_remove = disposition-notification-to

assuming you mean "def:h_disposition-notification-to:"
the rcpt ACL can't see any headers, so that condition is always false.

There's no harm in trying to remove a header that is not present, or
speculatvely scheduling removal of a header that has not yet been seen.

so just do

headers_remove = disposition-notification-to

--
This email has not been checked by half-arsed antivirus software

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/