| changeset | d7e79f8eb943 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | issue2551350 - Python changes for 3.12 with roundup 2.3.0 mailer.py Fix due to change in smtplib.SMTP.starttls() signature. As of 3.3 it can use an optional ssl context argument for certificates/keys. In 3.12 it dropped legacy support for specifing cert/key files as arguments and requires a context. I modified Andrew's original patch to initialize SSLContext with ssl.PROTOCOL_TLS_CLIENT. If there is a cert file specified, enable check_hostname - verify that the cert supplied by the server matches the hostname we supplied. If there is no cert file call load_default_certs() Also opened issue2551351 to look into more SMTP ssmtp tightening. We also should have an option in Roundup to use TLS/SSL (smtps) without using starttls. Note that this code is untested by the test suite due to the need to setup an SMTP server with STARTTLS support. issue2551351 has some notes on this. |
| files |
| changeset | 3cd43c34c095 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | flake8 fixes. |
| files |
| changeset | 087cae2fbcea |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Handle more ResourceWarning issues. admin.py - remove unneeded close. mailer.py - close debug log file. indexer.py - close read of version file memorydb.py - close python files being compled. Similiar to instance. not sure why it's compoing things and not just letting instance do it. .travis.ymv disable all except 3.9-dev till we get a handle on errors. also increase errors to 50 from 20. |
| files |
| changeset | aa26a260e81c |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | flake8 fixes: fix typoed variable; remove unused imports; format fixes fix typo: crypto_to type -> crypt_to other format fixes |
| files |
| changeset | b3905faf58ea |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Revert that last attempt to fix. Breaks things worse. Reopened https://issues.roundup-tracker.org/issue2551049. |
| files |
| changeset | 3491971eb694 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Fix breakage: return address try: > encname = b2s(name.encode('ASCII')) E AttributeError: 'bytes' object has no attribute 'encode' roundup/mailer.py:38: AttributeError reported by CI. |
| files |
| changeset | bd245858c823 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ralf Schlatterbeck <rsc@runtux.com> |
| description | Fix ascii decoding error .. when using mailer.standard_message -- we need to pass the configured mail encoding. |
| files |
| changeset | b7fa56ced601 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Christof Meerwald <cmeerw@cmeerw.org> |
| description | use gpg module instead of pyme module for PGP encryption |
| files |
| changeset | 725266c03eab |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Christof Meerwald <cmeerw@cmeerw.org> |
| description | updated mailgw to no longer use mimetools based on jerrykan's patch |
| files |
| changeset | 3afda04c96a1 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Christof Meerwald <cmeerw@cmeerw.org> |
| description | mailer string encoding fixes |
| files |
| changeset | bc2e682e0305 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Christof Meerwald <cmeerw@cmeerw.org> |
| description | fixed encoding issues in mailer |
| files |
| changeset | 55f09ca366c4 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: StringIO. This generally arranges for StringIO and cStringIO references to use io.StringIO for Python 3 but io.BytesIO for Python 2, consistent with the string representations generally used in Roundup. A special FasterStringIO in the TAL code, which referenced internals of the old Python 2 StringIO module, is cut down so it doesn't actually do anything beyond the StringIO class it inherits from (it would also be reasonable to remove FasterStringIO completely). One place in roundup_server.py clearly needing binary I/O is made to use io.BytesIO unconditionally. |
| files |
| changeset | 56c9bcdea47f |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: unicode. This patch introduces roundup/anypy/strings.py, which has a comment explaining the string representations generally used and common functions to handle the required conversions. Places in the code that explicitly reference the "unicode" type / built-in function are generally changed to use the new functions (or, in a few places where those new functions don't seem to fit well, other approaches such as references to type(u'') or use of the codecs module). This patch does not generally attempt to address text conversions in any places not currently referencing the "unicode" type (although scripts/import_sf.py is made to use binary I/O in places as fixing the "unicode" reference didn't seem coherent otherwise). |
| files |
| changeset | 17edccfe1755 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: "except" syntax. Changing "except Exception, var" to "except Exception as var". Tool-generated patch. |
| files |
| changeset | 198b6e810c67 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Eric S. Raymond <esr@thyrsus.com> |
| description | Use Python-3-compatible 'as' syntax for except statements Many raise statements near these are also fixed. So are two ivorrect file encoding marks ('utf8'->'utf-8'). |
| files |
| changeset | 092c4522b3bf |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Bernhard Reiter <bernhard@intevation.de> |
| description | Mailer: Improves diagnostic messages for DEBUG. * Adds logger and debug output to mailer.py. This is especially interesting for crypto mails. |
| files |
| changeset | f1a2bd1dea77 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Bernhard Reiter <bernhard@intevation.de> |
| description | issue2550877: Writing headers with the email module will use continuation_ws = ' ' now for python 2.5 and 2.6 when importing anypy.email_. |
| files |
| changeset | 760ffc0eae5b |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Kristensen <john@jerrykan.com> |
| description | Change email package module names to conform v4 (issue2550875) Update the mailer roundup module to use email package names introduced in v4 (Python v2.5). If nothing else this will provide forward support for Python v3+. Thanks to Anthony Pankov for the patch. |
| files |
| changeset | eabe86afc6ee |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Kristensen <john@jerrykan.com> |
| description | issue2550756: Fix `oder' typo in mailer.Mailer.bounce_message docstring, thanks W. Trevor King |
| files |
| changeset | 62239a524beb |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
| description | PGP support is again working (pyme API has changed significantly)... ...and we now have a regression test. We now take care that bounce-messages for incoming encrypted mails or mails where the policy dictates that outgoing traffic should be encrypted is actually pgp-encrypted. Note that the new pgp encrypt option for outgoing mails works only for bounces for now. |
| files |
| changeset | f2e6b303aa8a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
| description | When debugging mail (debug = <filename> setting in [mail] section... ...of config.ini) write header for unix mailbox format so that resulting debug file can be opened with a standard mailer. |
| files |
| changeset | 7f67092fe03d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix comment |
| files |
| changeset | ac3f80e39d7a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | handle quoting/escaping specials after encoding; fix tests to handle new, more consistent header wrapping |
| files |
| changeset | 94ee533613ac |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | Attempt to generate more human-readable addresses in email |
| files |
| changeset | 7a6c5c117879 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
| description | Fix handling of non-ascii in realname in the nosy mailer... ...this used to mangle the email address making it unusable when replying. Thanks to intevation for funding the fix. |
| files |
| changeset | 630a20c51345 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Stefan Seefeld <stefan@seefeld.name> |
| description | Allow non-admin email addresses as envelope sender. |
| files |
| changeset | 2f4cee0e31e2 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | better construction of plain text |
| files |
| changeset | 4498f5252f8b |
|---|---|
| branch | gsoc-2009 |
| bookmark | |
| tag | |
| user | Pygi <pygi@users.sourceforge.net> |
| description | Some preparations for 3.0 migration |
| files |
| changeset | 57dfcc824acc |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
| description | 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). |
| files |
| changeset | d5cd6f440396 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Stefan Seefeld <stefan@seefeld.name> |
| description | Fix issue2550565. |
| files |
| changeset | 391fa482f995 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix TLS handling with some SMTP servers (issues 2484879 and 1912923) |
| files |
| changeset | da682f38bad3 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | bug introduced in the migration to the email package (issue 2550531) |
| files |
| changeset | 4b0ddce43d08 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | migrate from MimeWriter to email |
| files |
| changeset | 48457385bf61 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | Send a Precedence header in email so autoresponders don't |
| files |
| changeset | 7c886f83c2ab |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Justus Pendleton <jpend@users.sourceforge.net> |
| description | Don't try to call time.tzset if it doesn't exist A not terribly elegant solution to issue [SF#825643] which pointed out that the current code fails horribly on Windows :( |
| files |
| changeset | 82f462d9ad16 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Justus Pendleton <jpend@users.sourceforge.net> |
| description | use local timezone for mail date header fixes [SF#1658173] |
| files |
| changeset | 6d14a3b4e295 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Justus Pendleton <jpend@users.sourceforge.net> |
| description | allow admin to specify port and local hostname for SMTP connections |
| files |
| changeset | 35811df7c783 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix error during mailgw bouncing message [SF#1413501] |
| files |
| changeset | a052781093d7 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Alexander Smishlajev <a1s@users.sourceforge.net> |
| description | fix typo in SMTP TLS option name: "MAIL_TLS_CERFILE" [SF#1435452] |
| files |
| changeset | 3954fbcefae5 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Alexander Smishlajev <a1s@users.sourceforge.net> |
| description | fix incompatibility with python2.3 [SF#1432602] |
| files |
| changeset | 61d48244e7a8 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | login may now be for a single session trackers may hide exceptions from web users (they will be mailed to the tracker admin) |
| files |
| changeset | f43424d545a6 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix timezone offsetting in email Date: header |
| files |
| changeset | 5603e08ac6fc |
|---|---|
| branch | maint-0.8 |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | merge from HEAD |
| files |
| changeset | fe75b55fc49d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix encoding of subject in generated error message [SF#1414465] |
| files |
| changeset | db856d488de0 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fixes |
| files |
| changeset | 8fcee705ebdb |
|---|---|
| branch | maint-0.8 |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | merge from HEAD |
| files |
| changeset | 75b4c2c32cf3 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix Date: header generation to be LOCALE-agnostic [SF#1352624] |
| files |
| changeset | e49e6c7b14fb |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Alexander Smishlajev <a1s@users.sourceforge.net> |
| description | fix incompatibilities with new configuration; added MAIL_DEBUG config option; added vim modeline |
| files |
| changeset | 6deda7ff3b2a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | *** empty log message *** |
| files |
| changeset | 95da13c1bdbd |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | have bounce_message do the error_messages_to heavy-lifting |
| files |
| changeset | 48600089c73d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | email charset fixes |
| files |
| changeset | be047db3dd3d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | Eudora can't handle utf-8 headers. We love Eudora. [SF#900046] |
| files |
| changeset | fc52d57c6c3e |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | documentation cleanup |
| files |
| changeset | ce6806a2a72d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | add roundup version to mailer headers |
| files |
| changeset | 4ac11e7fa11a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
| description | Fix mailer bug [SF#817470]... ...and add docstrings to prevent this from happening again. |
| files |
| changeset | ee33ce4987f5 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
| description | Let standard_message accept a different author. |
| files |
| changeset | 071ea6fc803f |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
| description | Extracted duplicated mail-sending code... ...from mailgw, roundupdb and client.py to the new mailer.py module. |
| files |