Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 18 : Removed -e option; default utf-8 encoding #64

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions massmail
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ Options:
-s SEPARATOR set field separator in parameter file,
default: ";"

-e ENCODING set PARAMETER_FILE *and* BODY character set
encoding, default: "UTF-8". Note that if you fuck
up this one, your email will be full of rubbish:
You have been warned!

-f fake run: don't really send emails, just print to
standard output what would be done. Don't be scared
if you can not read the body: it is base64 encoded
Expand Down Expand Up @@ -122,7 +117,7 @@ def parse_command_line_options(arguments):
Arguments are checked for validity.
"""
try:
opts, args = getopt.getopt(arguments, "hfs:F:S:B:R:e:u:p:P:z:")
opts, args = getopt.getopt(arguments, "hfs:F:S:B:R:u:p:P:z:")
except getopt.GetoptError as err:
error(str(err)+USAGE)

Expand All @@ -142,8 +137,6 @@ def parse_command_line_options(arguments):
}

for option, value in opts:
if option == "-e":
options['encoding'] = value
if option == "-s":
options['sep'] = value
elif option == "-F":
Expand Down
1 change: 0 additions & 1 deletion test_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def test_local_sending():
'-F', email_from,
'-S', email_subject,
'-z', 'localhost',
'-e', email_encoding,
f.name
]
options = massmail.parse_command_line_options(cmd_options)
Expand Down