Mercurial > p > roundup > code
annotate tools/base64 @ 4215:57dfcc824acc
fix problem with bounce-message if incoming mail has insufficient privilege...
...e.g., user not existing (issue 2550534)
Added a regression test for this issue that reproduces the traceback
reported in issue 2550534
I'm using a slightly modified variant of the original patch that avoids
repeated string-concatenation (which could degenerate to quadratic runtime
behaviour for large number of email headers).
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 15 Jul 2009 12:22:35 +0000 |
| parents | 740102dfad1d |
| children | c75defc1c2f0 |
| rev | line source |
|---|---|
|
2181
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 import zlib, base64, sys |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 print base64.encodestring(zlib.compress(sys.stdin.read())) |
