[issue1670765] email.Generator: no header wrapping for multipart/signed

2011-07-14 Thread Srikanth S

Changes by Srikanth S sriks...@gmail.com:


--
nosy: +srikanths

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

See issue 1670765 for more discussion of the whitespace issues.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

Wrong issue number again, or did you deliberately try to catch me in an 
infinite see-also loop? ;-)
I've tried to work out what issue you meant, but failed so far.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Heh.  Copy and paste error.  I copied the issue number I wanted to reference, 
then copied the issue number I needed to open in order to paste the reference, 
and then promptly forgot that I had to recopy the issue number to paste it...

Anyway, the correct cross reference is to issue 968430.  Thanks for keeping me 
accurate, again.  (Hopefully I did the copy and paste right this time:)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

Here is the corresponding path for python3 (py3k branch). It's mostly the same, 
except for one additional test which ensures header preservation even if the 
maxheaderlen argument to Message.as_string is greater than 0. It's called 
test_long_headers_as_string_maxheaderlen.

--
Added file: http://bugs.python.org/file15905/issue1670765_python3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I've committed fix and the non-disabled tests to trunk in r77517.  I updated 
the comments to point to the relevant RFC and note that the problem is not 
fixed, just mitigated.

I've made a note of the additional tests in my issues list for the email 
package.  I'm not sure we can fix the whitespace problem in the 2.x email 
package.

--
stage: patch review - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

You missed a digit in the test comment:
s/See issue 96843/See issue 968430/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I actually had the wrong message number entirely.  I was trying to reference 
this one, since it has the additional tests.  Fixed in r77525.

I backported the fix to 2.6 in r77526 and r77527, forwarded ported to py3k in 
r77542 (with the addition of the new test), and backported to 3.1 in r77546.

I'm going to close this issue, but we aren't forgetting about the whitespace 
issues.

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

Let's get some traction here, please!

Attached is a test case which will demonstrate the issue. It includes the 
content of test5.eml as a string so that it won't require additional files. It 
produces both human-readable output and a suitable exit status. Turning it into 
a unit test should be easy as well.

It doesn't do signature verification, but uses simple string comparison 
instead. The rationale is that anything changing the string would break the 
signature as well. That should be enough for unit tests.

Please change stage to patch review.

--
Added file: http://bugs.python.org/file15893/issue1670765a.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
keywords: +needs review
stage: test needed - patch review
versions: +Python 3.1 -Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Martin, can you provide a true unit test? Lib\email\test\test_email.py has many 
examples, and something like this would fit in there.

--
nosy: +brian.curtin
stage: patch review - test needed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

OK, here is a patch providing both two test cases and the fix for current 
trunk. Will probably hack something for python 3 as well, although there the 
Message.as_string approach works due to the new headerlength argument 
defaulting to 0. So there I'd adjust the patch 

I also included a second test e-mail together with two disabled test cases in 
order to address the whitespace issue I mentioned. Would be nice to have a fix 
for these as well, but I assume you don't want known to fail test cases without 
a fix in trunk unless it's really serious, right?

In any case, the fact that there should be at least four tests, maybe more in 
the future, all dealing with signature preservation, led me to have a class 
dedicated to them, instead of only adding methods to one of the existing 
classes. I hope you agree with that decision.

--
Added file: http://bugs.python.org/file15895/issue1670765_python2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
assignee: barry - r.david.murray
nosy: +r.david.murray
stage: test needed - patch review
versions: +Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2009-04-22 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
keywords: +easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2009-03-30 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - test needed
type:  - behavior
versions: +Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1670765
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Collin Winter

Collin Winter added the comment:

I'd like some tests demonstrating where the current implementation fails
and your patch helps, yes.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1670765
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Martin von Gagern

Martin von Gagern added the comment:

Looks like I missed your comments on this patch.
What kind of tests do you have in mind?
Tests demonstrating where current implementation fails and my patch will
help? Or rather tests checking that this patch won't break anything
else? The former would be easy enough, but for the latter I'm not sure
how far this would go, as people tend to make strange assumptions I
would never have thought of.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1670765
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Martin von Gagern

Martin von Gagern added the comment:

Take the attached test5.eml. Run it through the following python script:

import email
print (email.message_from_file(open(test5.eml)).as_string(False))

The result will have both instances of the X-Long-Line header rewrapped.
As the second instance is included in the digest calculation, the
signature verification will now fail.

This is a real world signature algorithm, following RFC 3156 (if I
didn't make a mistake). If you have an OpenPGP-enabled mailreader (e.g.
enigmail for Thunderbird) and have some way of injecting a mail as is
into your mail folders (e.g. a maildir-based server), then you can use
this setup to verify that the signature was correct in the first place
and is broken after parsing and reconstruction by python.

If you don't have such a setup available, and you don't believe me that
rewrapping the header breaks the signature, then I could either devise
some unrealistic but easy-to-check signing process, or could try to get
this working with an S/MIME signature using an X.509 certificate. I
would rather avoid this, though.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1670765
_---BeginMessage---
This is the signed contents.


signature.asc
Description: OpenPGP digital signature
---End Message---
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com