Custom Query (332 matches)
Results (133 - 135 of 332)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#138 | fixed | Encoding problem with attachment filename | bas | debacle@… |
Description |
I got an error message from email2trac (urllib.quote): Traceback (most recent call last): File "/usr/bin/email2trac", line 1574, in <module>#012 tktparser.parse(sys.stdin) File "/usr/bin/email2trac", line 991, in parse#012 self.new_ticket(m, subject, spam_msg) File "/usr/bin/email2trac", line 805, in new_ticket#012 message_parts = self.unique_attachment_names(message_parts) File "/usr/bin/email2trac", line 1231, in unique_attachment_names#012 filename = urllib.quote(filename) File "/usr/lib/python2.5/urllib.py", line 1205, in quote#012 res = map(safe_map.__getitem__, s) KeyError: u'\xf3' Result was, that the ticket could not be created. I patched email2trac. Now it works, but I'm not sure, whether the patch is the best solution: --- /usr/bin/email2trac.orig 2009-06-04 13:34:33.000000000 +0200 +++ /usr/bin/email2trac 2009-06-04 15:36:29.000000000 +0200 @@ -1228,7 +1228,7 @@ pass if self.QUOTE_ATTACHMENT_FILENAMES: - filename = urllib.quote(filename) + filename = urllib.quote(filename.encode('utf-8')) # Make the filename unique for this ticket num = 0 |
|||
#139 | fixed | Configure more projects in email2trac.conf | bas | didley@… |
Description |
Dear all, I'm using email2trac version 0.80. All works fine and I'm happy to have this small program with this big effect. Just one thing. The configfile email2trac.conf has the possibility to add another project. Your description says: project : /data/trac/jouvin # use -p|--project jouvin Please what means use -p or --project my second project ends in [BlaProject] project: D:\Project\BlaProject but it works not. How I have to use -p or --project? |
|||
#140 | duplicate | email2trac not parsing emails | bas | delpheye@… |
Description |
I have fetchmail and procmail installed and configured correctly(I assume) to process mail sent to trac for the mta_user. [mta_user@boxbox ~]$ cat .procmailrc PATH=/bin:/usr/bin:/usr/bin MAILDIR=$HOME/Mail #better make sure it exists DEFAULT=$MAILDIR/mbox #completely optional LOGFILE=$MAILDIR/from #recommended :0 h b
[mta_user@boxbox ~]$ cat .fetchmailrc poll imap.mydomain.com proto pop3 user mta_user pass "password" mda "/usr/bin/procmail" [root@boxbox ~]# cat /etc/email2trac.conf [DEFAULT] project: /var/www/html/trac debug: 0 umask: 022 spam_level: 5 reply_all : 0 mailto_link: 0 umask: 022 email_header: 0 trac_version: 0.11 enable_syslog : 1 alternate_notify_template : alternate_notify_template_update : drop_spam : 0 verbatim_format: 1 strip_signature: 0 email_quote: > strip_quotes: 0 ignore_trac_user_settings: 0 black_list: MAILER-DAEMON@ I have verified the paths in these two files and have verified that mail is being correctly delivered to the user's local mbox file. strace on the run_email2trac binary doesn't return any errors so I assume it's working correctly. Is there something else I'm missing? |