{"action":"created","issue":{"url":"https://api.github.com/repos/rspamd/rspamd/issues/1878","repository_url":"https://api.github.com/repos/rspamd/rspamd","labels_url":"https://api.github.com/repos/rspamd/rspamd/issues/1878/labels{/name}","comments_url":"https://api.github.com/repos/rspamd/rspamd/issues/1878/comments","events_url":"https://api.github.com/repos/rspamd/rspamd/issues/1878/events","html_url":"https://github.com/rspamd/rspamd/issues/1878","id":267861195,"node_id":"MDU6SXNzdWUyNjc4NjExOTU=","number":1878,"title":"Milter headers not removed","user":{"login":"zeroflags","id":18112723,"node_id":"MDQ6VXNlcjE4MTEyNzIz","avatar_url":"https://avatars3.githubusercontent.com/u/18112723?v=4","gravatar_id":"","url":"https://api.github.com/users/zeroflags","html_url":"https://github.com/zeroflags","followers_url":"https://api.github.com/users/zeroflags/followers","following_url":"https://api.github.com/users/zeroflags/following{/other_user}","gists_url":"https://api.github.com/users/zeroflags/gists{/gist_id}","starred_url":"https://api.github.com/users/zeroflags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeroflags/subscriptions","organizations_url":"https://api.github.com/users/zeroflags/orgs","repos_url":"https://api.github.com/users/zeroflags/repos","events_url":"https://api.github.com/users/zeroflags/events{/privacy}","received_events_url":"https://api.github.com/users/zeroflags/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-24T00:43:06Z","updated_at":"2018-12-07T07:03:04Z","closed_at":"2017-10-25T23:30:59Z","author_association":"NONE","body":"### Classification (Please choose *one* option):\r\n\r\n* [ ] Crash/Hang/Data loss\r\n* [ ] WebUI/Usability\r\n* [ ] Serious bug\r\n* [X] Other bug\r\n* [ ] Feature\r\n* [ ] Enhancement\r\n\r\n### Reproducibility (Please choose *one* option):\r\n\r\n* [X] Always\r\n* [ ] Sometimes\r\n* [ ] Rarely\r\n* [ ] Unable\r\n* [ ] I didn’t try\r\n* [ ] Not applicable\r\n\r\n### Rspamd version:\r\nrspamd-1.6.4\r\n\r\n### Operation system, CPU, memory and environment:\r\nOpenBSD 6.2, more than necessary.\r\n\r\n### Description (Please provide a descriptive summary of the issue):\r\nE-mail headers such, as User-Agent, Received, etc. are not removed by the 'remove-header' function (or routine, or whatever you name it).\r\n\r\n### Compile errors (if any):\r\nComes pre-compiled.\r\n\r\n### Steps to reproduce:\r\nSimply configure 'milter_filters.conf' and send an e-mail.\r\n\r\n### Expected results:\r\nThe headers should be removed.\r\n\r\n### Actual results:\r\n The headers remain untouched.\r\n\r\n### Debugging information (see details [here](https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed)):\r\nN/A\r\n\r\n### Configuration:\r\n`# vi /etc/rspamd/local.d/milter_headers.conf`\r\n\r\n```JSON\r\nuse = [\"remove-header\"];\r\nroutines {\r\n  remove-header {\r\n    headers {\r\n      header = \"User-Agent\";\r\n      header = \"Received\";\r\n      header = \"X-Originating-IP\";\r\n      header = \"X-Mailer\";\r\n    }\r\n    remove = 1;\r\n  }\r\n}\r\n```\r\n\r\n### Additional information:\r\nWould be great to be able to specify the headers' strings in regex (the same was as postfix does),  since it's not working either."},"comment":{"url":"https://api.github.com/repos/rspamd/rspamd/issues/comments/445142437","html_url":"https://github.com/rspamd/rspamd/issues/1878#issuecomment-445142437","issue_url":"https://api.github.com/repos/rspamd/rspamd/issues/1878","id":445142437,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTE0MjQzNw==","user":{"login":"a16bitsysop","id":32509178,"node_id":"MDQ6VXNlcjMyNTA5MTc4","avatar_url":"https://avatars3.githubusercontent.com/u/32509178?v=4","gravatar_id":"","url":"https://api.github.com/users/a16bitsysop","html_url":"https://github.com/a16bitsysop","followers_url":"https://api.github.com/users/a16bitsysop/followers","following_url":"https://api.github.com/users/a16bitsysop/following{/other_user}","gists_url":"https://api.github.com/users/a16bitsysop/gists{/gist_id}","starred_url":"https://api.github.com/users/a16bitsysop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a16bitsysop/subscriptions","organizations_url":"https://api.github.com/users/a16bitsysop/orgs","repos_url":"https://api.github.com/users/a16bitsysop/repos","events_url":"https://api.github.com/users/a16bitsysop/events{/privacy}","received_events_url":"https://api.github.com/users/a16bitsysop/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T07:03:04Z","updated_at":"2018-12-07T07:03:04Z","author_association":"NONE","body":"I just had this issue and to remove headers I also needed:\r\n\r\nskip_local = false;\r\nskip_authenticated = false;\r\n\r\nOr it is skipped for local and authenticated users"}}
{"actor":{"display_login":"a16bitsysop"}}