Add MMS sending capacilities #1
1 changed files with 0 additions and 23 deletions
23
mms2mail
23
mms2mail
|
@ -1,28 +1,5 @@
|
|||
#!/usr/bin/python3
|
||||
"""An mms to mail converter for mmsd."""
|
||||
# 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):
|
||||
"""
|
||||
Encode string in base64.
|
||||
|
||||
:param value: the string to encode.
|
||||
:type value: str
|
||||
|
||||
:rtype str
|
||||
:return: the base64 encoded string
|
||||
"""
|
||||
return base64.b64encode(value)
|
||||
base64.encodestring = encodestring
|
||||
# end bugfix
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import getpass
|
||||
|
|
Loading…
Reference in a new issue