Bug 438112 - crash with mail_type=multipart
crash with mail_type=multipart
Product: Fedora
Classification: Fedora
Component: svnmailer (Show other bugs)
noarch Linux
low Severity low
: ---
: ---
Assigned To: Michael Fleming
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-19 03:07 EDT by Timon
Modified: 2008-04-08 06:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-08 06:45:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
resolvs this bug problem (1.45 KB, patch)
2008-03-19 03:21 EDT, Timon
no flags Details | Diff

  None (edit)
Description Timon 2008-03-19 03:07:18 EDT
Description of problem:
trying to use mail_type=multipart in config file

Version-Release number of selected component (if applicable):

How reproducible:
1. install svnmailer
2. add 
mail_type = multipart
to mailer.conf
3. run
/usr/bin/svn-mailer commit <path_to_repo> <revision> <path_to_config>
on my machine there was
/usr/bin/svn-mailer commit /opt/mars/svn/ 84  /opt/mars/svn/conf/mailer.conf 
Actual results:
[timon@swebs hooks]$ /usr/bin/svn-mailer commit /opt/mars/svn/ 84 
One or more notifiers crashed. You may want to send the following traceback(s)
to the author:

Notifier: svnmailer.util.SendmailSubmitter
Revision: 84
Groups: [u'defaults']
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/svnmailer/main.py", line 101, in run
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_mail.py", line 62,
in run
    for mail in self.getMails():
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_mail.py", line 83,
in getMails
    for mail in self.composeMail():
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_multimail.py", line
163, in composeMail
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_mail.py", line 96,
in writeNotification
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_multimail.py", line
221, in writeDiffList
    super(MultiMailNotifier, self).writeDiffList()
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_text.py", line 183,
in writeDiffList
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_multimail.py", line
240, in writeContentDiff
    self.diff_file_list.append(DiffDescriptor(self, tmpfile, change))
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_multimail.py", line
629, in __init__
    enc1, enc2 = notifier.getContentEncodings(change, None)
  File "/usr/lib/python2.5/site-packages/svnmailer/notifier/_base.py", line 348,
in getContentEncodings
    from encodings import exceptions
ImportError: cannot import name exceptions

Expected results:

Additional info:
FreeBSD ports patch
Comment 1 Timon 2008-03-19 03:21:31 EDT
Created attachment 298478 [details]
resolvs this bug problem
Comment 2 Michael Fleming 2008-04-08 06:45:58 EDT
Thanks for the patch. I've regenerated it in a way suitable for RPM builds and
committed it to CVS. 1.0.8-4 will have this fix once I start pushing builds..

Note You need to log in before you can comment on or make changes to this bug.