Robert Sparks
25e9893a13
Changed how the mail utilities handle lists in their override and extra arguments. Added a test for send_mail_preformatted exercising override and extra. Commit ready for merge.
...
- Legacy-Id: 15153
2018-05-22 15:38:04 +00:00
Henrik Levkowetz
a18cf20868
Removed code which has been marked as unreachable since February/March 2017 without triggering any usage indications.
...
- Legacy-Id: 13667
2017-06-17 17:54:40 +00:00
Henrik Levkowetz
fb93a8c293
Added dates to unreachable() calls, to make it easier to decide when to remove marked code.
...
- Legacy-Id: 13538
2017-06-06 07:27:07 +00:00
Henrik Levkowetz
bb5096da8a
Added more email validation for draft submission author emails, and blocked some baths that could lead to bad email addresses ('none') being set as document author email addresses.
...
- Legacy-Id: 13010
2017-03-14 14:07:21 +00:00
Henrik Levkowetz
3c6f00869f
Dead code removal: meeting models and test_utils.
...
- Legacy-Id: 12965
2017-03-04 05:19:39 +00:00
Henrik Levkowetz
49ba774ae3
Updated unreachable() marking.
...
- Legacy-Id: 12962
2017-03-04 05:14:51 +00:00
Henrik Levkowetz
3a21e03f8d
Marked a function as unrachable. Added support in send_mail_message for the Message.msgid field.
...
- Legacy-Id: 12954
2017-03-03 15:43:43 +00:00
Henrik Levkowetz
988a2b808f
Added explicit charset setting and consistent encoding to several email paths through the datatracker. After introducing support for non-ascii names in email addresses, using role.formatted_email() to insert names into email content doesn't work any more, since uncode names will now be rfc2047-encoded in formatted_email(). Added another method role.name_and_email() for this case. Replaced another case of '%s <%s>' name-and-email formatting with formataddr(). Fixed some tests which did not send unicode email bodies to the email functions. Fixes issue #2017 .
...
- Legacy-Id: 12896
2017-02-21 19:17:10 +00:00
Henrik Levkowetz
cf4a4b02a7
Reworked the email address handling in order to be able to support non-ascii names as part of email address fields. Reworked the generation of user names in the test suite to generate names from multiple non-ascii locales. Fixes issue #2080 .
...
- Legacy-Id: 12872
2017-02-18 21:50:18 +00:00
Henrik Levkowetz
7b95411f58
The context_instance parameter to render_to_response() and render_to_string() is now deprecated. Fixed this, and generally changed the idiom render_to_response('template.html', {}, RequestContext(request)) to the newer and simpler render(request, 'template.html', {}). About 200 instances.
...
- Legacy-Id: 12637
2017-01-09 21:26:30 +00:00
Ole Laursen
958ba5ba95
Make new branch from trunk and merge in review-tracker-r11921
...
- Legacy-Id: 12129
2016-10-13 16:38:47 +00:00
Henrik Levkowetz
ec684e1b4e
Added a pylint rc-file, and fixed or silenced a number of issues found by pylint using the settings .pylintrc (which enable only error checking).
...
- Legacy-Id: 11941
2016-09-08 14:48:59 +00:00
Henrik Levkowetz
22e2b0ab88
Added a return value used by ietf.middleware.SMTPExceptionMiddleware.process_exception().
...
- Legacy-Id: 11940
2016-09-08 09:37:22 +00:00
Ole Laursen
b790781de9
Add return statements to remaining email sending function so it's
...
possibly to get the message back. We need the message and its
Message-ID in the review tracking code, to be able to link to it in
the mail archive.
- Legacy-Id: 11359
2016-06-14 09:54:37 +00:00
Robert Sparks
214b81991e
Further tweaks to rendering messages from the messaging framework. Commit ready for merge.
...
- Legacy-Id: 10809
2016-02-09 19:56:26 +00:00
Robert Sparks
c3e81c179b
Some tweaks to handle rendering django messaging framework messages a little better. Commit ready to merge.
...
- Legacy-Id: 10804
2016-02-08 22:09:50 +00:00
Robert Sparks
85cfe0ed8a
Show leadership when and where mail was sent at the time it is sent. Commit ready for merge.
...
- Legacy-Id: 9608
2015-05-07 16:29:17 +00:00
Henrik Levkowetz
7ecfac6308
Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x.
...
- Legacy-Id: 9028
2015-02-08 21:16:44 +00:00
Henrik Levkowetz
028b7e315a
Reverted to [9025] because commit [9026] failed (it was incomplete with a broken working dir).
...
- Legacy-Id: 9027
Note: SVN reference [9026] has been migrated to Git commit 4a3749a66b
2015-02-08 20:03:16 +00:00
Henrik Levkowetz
4a3749a66b
Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x.
...
- Legacy-Id: 9026
2015-02-08 19:16:46 +00:00
Henrik Levkowetz
970059617e
Added back a general setting (removed from the Django framework in 1.7) to avoid base64-encoding of UTF-8 email messages.
...
- Legacy-Id: 9012
2015-02-06 12:33:24 +00:00
Robert Sparks
4988d9378c
Avoid an issue with python.email breaking To header field values that it has to encode in bad places. Fixes #1589 . Commit ready for merge.
...
- Legacy-Id: 8961
2015-02-03 20:18:27 +00:00
Robert Sparks
5ca9581072
Reworked smtp error warning and logging to not use hard-to-read context_managers. Fixes bug #1390 . Commit ready to merge.
...
- Legacy-Id: 8584
2014-11-04 19:49:22 +00:00
Henrik Levkowetz
4cc4f5080c
Merged in [8254] from rjsparks@nostrum.com:\n Don't send mail to unknown-email-* addresses. Fixes bug #1471 .
...
- Legacy-Id: 8365
Note: SVN reference [8254] has been migrated to Git commit f7f29a62588eac9b2aaf26cd0401a910fa48403f
2014-09-28 18:51:21 +00:00
Henrik Levkowetz
f00f589e66
Renamed a very specialized function from email_secretariat() to email_iesg_secretary_re_charter().
...
- Legacy-Id: 7923
2014-06-17 16:31:12 +00:00
Robert Sparks
393422b36b
Improves the robustness of the SMTP error handling utilities. Fixes bug #1409 . Commit ready for merge.
...
- Legacy-Id: 7766
2014-05-22 01:28:33 +00:00
Robert Sparks
bf4f3ad75f
Made several changes to better handle non-ascii UTF-8 in email messages.
...
Used multipart mime when including the original message in an error message to the secretariat.
Modified the way IANA review email is parsed.
Added non-ascii UTF-8 tests to the IANA review email parser and to the SMTP Exception handling code.
Commit ready for merge.
- Legacy-Id: 7673
2014-04-29 18:45:37 +00:00
Henrik Levkowetz
4b6ca22ff7
Merged in [7635] from rjsparks@nostrum.com:
...
Replumbed how SMTP Exceptions are handled, which involved refactoring several mail functions
- Legacy-Id: 7637
Note: SVN reference [7635] has been migrated to Git commit 73b0831b57
2014-04-24 22:14:57 +00:00
Robert Sparks
73b0831b57
Replumbed how SMTP Exceptions are handled, which involved refactoring several mail functions
...
- Legacy-Id: 7635
2014-04-24 18:29:01 +00:00
Henrik Levkowetz
fe5d53fc40
Merged in [7591] from rjsparks@nostrum.com:
...
Adds a real (if simple) SMTP server to the test framework and tests handling of exceptions and rejected addresses. Fixes ticket #1314 .
- Legacy-Id: 7613
Note: SVN reference [7591] has been migrated to Git commit 54919f01343995ab154d27dcfaf7a60b15dd5eee
2014-04-16 19:40:57 +00:00
Henrik Levkowetz
af4c6e253c
Exclude empty email addresses from the send list.
...
- Legacy-Id: 7552
2014-03-27 22:09:37 +00:00
Henrik Levkowetz
49edc7404e
Made ietf/utils pyflakes-clean.
...
- Legacy-Id: 7496
2014-03-16 07:26:03 +00:00
Henrik Levkowetz
02031a01b9
Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
...
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz
b91524fabc
Merged [7368] from rjsparks@nostrum.com: Improves the detail in the messages sent when creating tickets about failed sent email.
...
Changes a locally defined exception name to look less like one already defined in smtplib.
This is related to ticket #1208 .
- Legacy-Id: 7382
Note: SVN reference [7368] has been migrated to Git commit 08f13239c9beb6dcb0be978e800b82c4104b61e7
2014-03-01 18:13:43 +00:00
Henrik Levkowetz
9ea9ba1d66
Merged in [7138] from rjsparks@nostrum.com:
...
Reworked SMTP Exception handling, adding sending a ticket to the secretariat when there are errors handing messages off for delivery.
Added SMTP exception handling to send-scheduled-mail.
This is related to ticket #1208
- Legacy-Id: 7256
Note: SVN reference [7138] has been migrated to Git commit 64727c1c33
2014-02-17 18:55:37 +00:00
Ole Laursen
e98abbf56d
Change the port accepted for debug purposes to 2025 instead of 1025 to
...
not conflict with the port on the live server
- Legacy-Id: 6715
2013-11-15 13:55:10 +00:00
Ole Laursen
fd01ddd215
Make the mail code detect USING_DEBUG_EMAIL_SERVER which if set to
...
true and EMAIL_HOST and EMAIL_PORT is set to localhost:1025 will turn
on debugging which essentially makes it send emails; also added
instructions for starting the debugging SMTP server bundled with
Python
python -m smtpd -n -c DebuggingServer localhost:1025
in a comment near the code
- Legacy-Id: 6713
2013-11-15 12:57:31 +00:00
Henrik Levkowetz
ed020c8b8e
Add Auto-Submitted and Precedence header fields to outgoing email messages.
...
- Legacy-Id: 6071
2013-08-17 15:33:56 +00:00
Henrik Levkowetz
5bee7ac538
Provide the necessary message information to the user confirmation messaging. Fixes issue #1049 .
...
- Legacy-Id: 5767
2013-05-31 16:32:25 +00:00
Robert Sparks
19dcf10316
Changed the header to last call messages to IETF Announce and to IANA to make replying to the announcement less likely to create an unnecessary ticket
...
- Legacy-Id: 5602
2013-03-27 19:04:50 +00:00
Henrik Levkowetz
cc60a1aa5d
Restored fix to utils/mail.py.
...
- Legacy-Id: 5521
2013-03-09 20:06:11 +00:00
Henrik Levkowetz
e1a7bf92ff
Added logging for mail sending problems.
...
- Legacy-Id: 5489
2013-03-06 19:36:06 +00:00
Ole Laursen
6062e16c2d
Email IANA and RFC Editor when a draft is pulled from the queue at the
...
Datatracker, add page for editing IANA states, add more info to the
/doc/draft-XXXXX/doc.json dump for the RFC Editor, add page for
editing consensus, add page for requesting publication at the RFC
Editor for alternate streams (this will email the RFC Editor and set
the draft in the appropriate state), make it possible for alternate
streams to change the intended RFC status of a draft in the stream,
refactor how IANA copies are handled slightly so it's less code, put
drafts automatically in IANA Review "Need Review" state upon last
call, fix a bug in ballot issuing, remove a bit of dead code
- Legacy-Id: 4857
2012-09-17 16:15:45 +00:00
Ole Laursen
480cb04cd6
Save announcements generated by the system as Messages, adding an
...
extra relation to be able to associate a draft with the message
- Legacy-Id: 3917
2012-02-08 21:05:28 +00:00
Ole Laursen
79ea179ff9
Comment out verbose mail server debug output for the time being
...
- Legacy-Id: 3719
2011-11-28 17:52:27 +00:00
Ole Laursen
03d1877802
Interpret settings.EMAIL_COPY_TO="" as "don't send a copy"
...
- Legacy-Id: 3717
2011-11-28 17:21:29 +00:00
Ole Laursen
ea4e79cacb
Fix empty_outbox to actually work as intended when outbox is imported elsewhere
...
- Legacy-Id: 3702
2011-11-24 16:36:19 +00:00
Ole Laursen
5a4c23ea92
Merge with trunk
...
- Legacy-Id: 3676
2011-11-21 16:41:21 +00:00
Ole Laursen
ce74be89ef
Use the test mode in the mail code when running automated tests instead of
...
reinventing the wheel in test_runner
- Legacy-Id: 3620
2011-11-15 11:24:33 +00:00
Ole Laursen
f7eefe8ee2
Finally get the mail system during automated test to send the real
...
message (i.e. pretend to do) instead of sending a copy, should make it
a bit easier to write tests
- Legacy-Id: 3595
2011-11-08 11:48:57 +00:00