Article View: alt.privacy.anon-server
Article #183881Re: Spaces_in_the_mixminion_fields
From: Thomas J. Boschloo
Date: Sat, 02 Apr 2005 15:38
Date: Sat, 02 Apr 2005 15:38
85 lines
4102 bytes
4102 bytes
-----BEGIN PGP SIGNED MESSAGE-----
>>On Wed, 30 Mar 2005 11:02:51 +0200 (CEST)
>> "[Anon] test user <me@domain.com>" <lesion@autistici.org> wrote:
>>:>So it works from here. The problem seems to be with the win32
>>:>version: there seems to be no way of escaping the spaces from the
>>:>command prompt. (Win2k, all updates and fixes applied).
>>:
>>:works like a charm in cygwin's bash shell.
>>:i'm on win98se but it ought to work similarly for w2k
I downloaded the source and the error message I get under Windows XP SP2
seems to be set in ClientMain.py:
###
# Parse and validate our options.
options, args = getopt.getopt(args, "hvQf:D:t:H:P:R:i:",
["help", "verbose", "quiet", "config=", "download-directory=",
"to=", "hops=", "path=", "reply-block=", "reply-block-fd=",
"input=", "queue", "no-queue",
"subject=", "from=", "in-reply-to=", "references=",
"deliver-fragments", ])
if not options:
sendUsageAndExit(cmd)
inFile = '-'
h_subject = h_from = h_irt = h_references = None
no_ss_fragment = 0
for opt,val in options:
if opt in ('-i', '--input'):
inFile = val
elif opt == '--subject':
h_subject = val
elif opt == '--from':
h_from = val
elif opt == '--in-reply-to':
h_irt = val
elif opt == '--references':
h_references = val
elif opt == '--deliver-fragments':
no_ss_fragment = 1
if args:
sendUsageAndExit(cmd,"Unexpected arguments")
<snip>
def sendUsageAndExit(cmd, error=None):
"""Print a usage message for the mixminion send command (and family)
and exit."""
if error:
print >>sys.stderr, "ERROR: %s"%error
print >>sys.stderr, "For usage, run 'mixminion send --help'"
sys.exit(1)
My guess is that the 'import getopt' library works differently under
Win32 then it does under *nix somehow. It is like the quotes you use get
ignored and the stuff after the first space seems to be regarded as an
extra function. E.g.:
mixminion>send --subject="a --from=a@b.c"
Mixminion version 0.0.7.1
This software is for testing purposes only. Anonymity is not guaranteed.
Apr 02 17:36:51.750 +0200 [ERROR] Invalid headers: Forbidden character
'"' in from address
Hope it is not too hard to fix,
Thomas
- --
"Nothing is true. Everything is permitted" - W.S. Burroughs, Naked Lunch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQB5AwUBQk68YgEP2l8iXKAJAQGwfQMgtHAy94QOOyJDrRLVTK+B8aFRRGwberFA
EoOwDv3tx9LAAmI+aeak2C/IcHrLlfEmynqx12ieqke1zdjo1fO0SPz07X9Depvy
ukzvtvSU5sGcBJpBRzwVyQ1XwWBoWS61PNLAJg==
=q2Dj
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<424EBC62.8070007@hccnet.nl.invalid>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20141023.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mailReferences:
<20050401143349.85E5B9F5F5@localhost>Show Full Headers
Complete Article Headers
Message-ID: <424EBC62.8070007@hccnet.nl.invalid> Subject: Re: Spaces_in_the_mixminion_fields Date: Sat, 02 Apr 2005 17:38:10 +0200 From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid> References: <20050401143349.85E5B9F5F5@localhost> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20141023.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!reader.nntp.hccnet.nl!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.privacy.anon-server In-Reply-To: <20050401143349.85E5B9F5F5@localhost> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lines: 85 Organization: HCCnet Nieuwsgebruiker NNTP-Posting-Date: 02 Apr 2005 15:38:45 GMT NNTP-Posting-Host: 62.251.43.125 X-Trace: 1112456325 reader20.nntp.hccnet.nl 781 62.251.43.125:1153 X-Complaints-To: abuse@hccnet.nl