summaryrefslogtreecommitdiff
path: root/debian/patches/0105-try_mail.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0105-try_mail.diff')
-rw-r--r--debian/patches/0105-try_mail.diff5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/patches/0105-try_mail.diff b/debian/patches/0105-try_mail.diff
index b1b204b..d390b6d 100644
--- a/debian/patches/0105-try_mail.diff
+++ b/debian/patches/0105-try_mail.diff
@@ -12,7 +12,7 @@ Index: trunk/mwc.py
===================================================================
--- trunk.orig/mwc.py
+++ trunk/mwc.py
-@@ -223,15 +223,27 @@ def sendmail(receiver, subject, content,
+@@ -225,16 +225,27 @@ def sendmail(receiver, subject, content,
mail['Subject'] = Header(subject, defaultEncoding)
# initialize session once, not each time this method gets called
@@ -21,7 +21,8 @@ Index: trunk/mwc.py
- if config.useTLS:
- mailsession.ehlo()
- mailsession.starttls()
-- mailsession.login(config.smtpusername, config.smtppwd)
+- if config.smtpusername is not None:
+- mailsession.login(config.smtpusername, config.smtppwd)
-
- mailsession.sendmail(config.sender, receiver.split(','), mail.as_string())
-