X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.py;h=78783ae6e2e7ffe930d5db226d54851e2433f7fe;hb=75fa3299ddbda6c432999a26d16fccf7bccfb34d;hp=b6f139b6974ba2cb141d9c6999085cfdce22a02a;hpb=73fd37d585a0471633cba3568063b30244c970ba;p=mimedecode.git diff --git a/mimedecode.py b/mimedecode.py index b6f139b..78783ae 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -30,9 +30,6 @@ Usage: %s [-h|--help] [-V|--version] [-cCDP] [-H|--host=hostname] [-f charset] [ sys.exit(code) -def output(s): - gopts.outfile.write(s) - def output_headers(msg): unix_from = msg.get_unixfrom() if unix_from: @@ -391,6 +388,8 @@ if __name__ == "__main__": gopts.host_name = socket.gethostname() gopts.outfile = outfile + output = outfile.write + decode_file(infile) infile.close()