Page MenuHomePhorge

Fix error when mail sender var is a list (T850939)
ClosedPublic

Authored by machniak on Jul 26 2023, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 4:14 AM
Unknown Object (File)
Wed, Apr 3, 1:24 PM
Unknown Object (File)
Wed, Apr 3, 1:24 PM
Unknown Object (File)
Wed, Apr 3, 1:24 PM
Unknown Object (File)
Wed, Apr 3, 1:24 PM
Unknown Object (File)
Mon, Mar 25, 2:11 AM
Unknown Object (File)
Sun, Mar 24, 6:39 AM
Unknown Object (File)
Mar 5 2024, 5:00 PM

Details

Summary
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/wallace/modules.py", line 163, in _sendmail
    _response = smtp.sendmail(sender, recipients, msg)
  File "/usr/lib64/python3.9/smtplib.py", line 881, in sendmail
    (code, resp) = self.mail(from_addr, esmtp_opts)
  File "/usr/lib64/python3.9/smtplib.py", line 545, in mail
    self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))
  File "/usr/lib64/python3.9/smtplib.py", line 154, in quoteaddr
    if addrstring.strip().startswith('<'):
AttributeError: 'list' object has no attribute 'strip'

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak created this revision.
This revision is now accepted and ready to land.Jul 26 2023, 12:43 PM
This revision was automatically updated to reflect the committed changes.