Changeset - 4b7909501c5c
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-11-21 12:44:42
mads@kiilerich.com
Grafted from: 2a7fa3f99286
celerylib: use email.utils instead of deprecated rfc822 module
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/celerylib/tasks.py
Show inline comments
 
@@ -26,9 +26,9 @@ Original author and date, and relevant c
 
:license: GPLv3, see LICENSE.md for more details.
 
"""
 

	
 
import email.utils
 
import logging
 
import os
 
import rfc822
 
import traceback
 
from collections import OrderedDict
 
from operator import itemgetter
 
@@ -282,7 +282,7 @@ def send_email(recipients, subject, body
 
        # extract the e-mail address.
 
        envelope_addr = author_email(envelope_from)
 
        headers['From'] = '"%s" <%s>' % (
 
            rfc822.quote('%s (no-reply)' % author.full_name_or_username),
 
            email.utils.quote('%s (no-reply)' % author.full_name_or_username),
 
            envelope_addr)
 

	
 
    user = email_config.get('smtp_username')
0 comments (0 inline, 0 general)