[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][deploy] 2 commits: send_mail: make sure message does not use 8bit transfer encoding



Title: GitLab

Ansgar pushed to branch deploy at Debian FTP Team / dak

Commits:

  • 71839c34
    by Ansgar at 2022-08-30T00:17:27+02:00
    send_mail: make sure message does not use 8bit transfer encoding
    
    The code adding a signature does something similar when moving the
    text to a different MIME part.
    
  • a2c749a4
    by Ansgar at 2022-08-30T00:18:28+02:00
    Merge branch 'master' into deploy
    

1 changed file:

Changes:

  • daklib/utils.py
    ... ... @@ -340,6 +340,12 @@ def send_mail(message, whitelists=None):
    340 340
     
    
    341 341
         msg = daklib.mail.parse_mail(message)
    
    342 342
     
    
    343
    +    # The incoming message might be UTF-8, but outgoing mail should
    
    344
    +    # use a legacy-compatible encoding. Set the content to the
    
    345
    +    # text to make sure this is the case.
    
    346
    +    # Note that this does not work with multipart messages.
    
    347
    +    msg.set_content(msg.get_payload(), cte="quoted-printable")
    
    348
    +
    
    343 349
         # Check whether we're supposed to be sending mail
    
    344 350
         call_sendmail = True
    
    345 351
         if "Dinstall::Options::No-Mail" in Cnf and Cnf["Dinstall::Options::No-Mail"]:
    


  • Reply to: