Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Fix bug 159, add glob support to headers_remove#73

Open
pstray wants to merge 3 commits intoExim:masterfrom
pstray:headers_remove_glob_fix
Open

Fix bug 159, add glob support to headers_remove#73
pstray wants to merge 3 commits intoExim:masterfrom
pstray:headers_remove_glob_fix

Conversation

@pstray
Copy link
Copy Markdown
Contributor

@pstray pstray commented Jan 23, 2020

This PR will fix the code to allow for both * as a glob in headers_remove and change the splitting of the list to after expansion has been done to allow for inclusion of expandos that results in lists themselves.

If the whole list is expanded before the list is split, it enables
inclusion of expandos that themselves are lists.  The original behaviour
would result in such expandos to be treated as one header instead of the
list it should have been.
The ability to use * as a suffix in removal of headers fixes
https://bugs.exim.org/show_bug.cgi?id=159

If one of the headers to remove ends in *, the header checked is removed
if it matches the prefix (header without the *)
@pstray
Copy link
Copy Markdown
Contributor Author

pstray commented Jan 23, 2020

Also added to https://bugs.exim.org/show_bug.cgi?id=159#c6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant