[fix] Dirty fix marrow mailer
This commit is contained in:
parent
a091051069
commit
e946a74a19
1 changed files with 12 additions and 0 deletions
12
mms2mail
12
mms2mail
|
@ -1,4 +1,16 @@
|
|||
#!/usr/bin/python3
|
||||
#upstream bug dirty fix https://github.com/marrow/mailer/issues/87#issuecomment-689586587
|
||||
import sys
|
||||
if sys.version_info[0] == 3 and sys.version_info[1] > 7:
|
||||
sys.modules["cgi.parse_qsl"] = None
|
||||
#upstream bug dirty fix https://github.com/marrow/mailer/issues/87#issuecomment-713319548
|
||||
import base64
|
||||
if sys.version_info[0] == 3 and sys.version_info[1] > 8:
|
||||
def encodestring(value):
|
||||
return base64.b64encode(value)
|
||||
base64.encodestring = encodestring
|
||||
#end bugfix
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import time
|
||||
|
|
Loading…
Reference in a new issue