Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1977851262
|
|||
|
c05593bfae
|
|||
|
7adbd8d76b
|
|||
|
401d8a36bf
|
|||
|
314796f593
|
|||
|
b670aa3eec
|
@@ -8,6 +8,7 @@ The basic idea is to define rules with conditions and actions which are processe
|
|||||||
Pymodmilter is depending on these python packages, but they are installed automatically if you are working with pip.
|
Pymodmilter is depending on these python packages, but they are installed automatically if you are working with pip.
|
||||||
* [pymilter](https://pythonhosted.org/pymilter/)
|
* [pymilter](https://pythonhosted.org/pymilter/)
|
||||||
* [netaddr](https://github.com/drkjam/netaddr/)
|
* [netaddr](https://github.com/drkjam/netaddr/)
|
||||||
|
* [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
* Install pymodmilter with pip and copy the example config file.
|
* Install pymodmilter with pip and copy the example config file.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ __all__ = [
|
|||||||
"ModifyMilterConfig",
|
"ModifyMilterConfig",
|
||||||
"ModifyMilter"]
|
"ModifyMilter"]
|
||||||
|
|
||||||
__version__ = "1.1.4"
|
__version__ = "1.1.6"
|
||||||
|
|
||||||
from pymodmilter import _runtime_patches
|
from pymodmilter import _runtime_patches
|
||||||
|
|
||||||
|
|||||||
@@ -136,8 +136,5 @@ class MilterMessage(MIMEPart):
|
|||||||
|
|
||||||
|
|
||||||
def replace_illegal_chars(string):
|
def replace_illegal_chars(string):
|
||||||
"""Replace illegal characters in header values."""
|
"""Remove illegal characters from header values."""
|
||||||
return string.replace(
|
return "".join(string.replace("\x00", "").splitlines())
|
||||||
"\x00", "").replace(
|
|
||||||
"\r", "").replace(
|
|
||||||
"\n", "")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user