Custom Query (332 matches)


Show under each result:

Results (307 - 309 of 332)

Ticket Resolution Summary Owner Reporter
#333 fixed replying email not working bas kshetriamrit@…

After replying email sent from trac, no comment is seen. Also I see a lot of *trac.email2trac* files in my /tmp folder that contains message replied to notification mail.

#334 fixed run_email2trac crashes intermittently bas bsilverman@…

I'm running run_email2trac with the following command in /etc/aliases:

sw: "|/usr/local/bin/run_email2trac -d -f /usr/local/etc/email2trac.conf"

Unfortunately, it crashes in the email2trac script. If I run the email to trac script directly (but as root), using:

cat foo | sudo /usr/local/bin/email2trac -d -f /usr/local/etc/email2trac.conf"

(where foo is a saved email of mine), then the program runs fully without error, and I get a new ticket in the trac database.

The error I get in /var/log/mail.log shows the command failing, but doesn't print enough output to show all the debug info:

Jan 13 11:17:19 iv-eng-vm postfix/smtpd[24168]: connect from[]
Jan 13 11:17:20 iv-eng-vm postfix/smtpd[24168]: C7EAD2B28BA:[]
Jan 13 11:17:20 iv-eng-vm postfix/cleanup[24172]: C7EAD2B28BA: message-id=<>
Jan 13 11:17:20 iv-eng-vm postfix/qmgr[3160]: C7EAD2B28BA: from=<>, size=24112, nrcpt=1 (queue active)
Jan 13 11:17:20 iv-eng-vm postfix/smtpd[24168]: disconnect from[]
Jan 13 11:17:21 iv-eng-vm postfix/local[24173]: C7EAD2B28BA: to=<>, relay=local, delay=1.5, delays=0.35/0.01/0/1.2, dsn=5.3.0, status=bounced (Command died with status 1: "/usr/local/bin/run_email2trac -d -f /usr/local/etc/email2trac.conf". Command output: 2014-01-13 11:17:20,573 email2trac titan: Found trac version: 1.0 2014-01-13 11:17:20,730 email2trac titan: Loading environment /var/local/trac/titan 2014-01-13 11:17:21,163 email2trac titan: Main function parse 2014-01-13 11:17:21,167 email2trac titan: saving email to /tmp/tmp6GecYV.titan.email2trac 2014-01-13 11:17:21,172 email2trac titan: function get_message_parts() 2014-01-13 11:17:21,172 email2trac titan:   Message part: Main-Type: multipart 2014-01-13 11:17:21,172 email2trac titan:   Message part: Content-Type: multipart/alternative 2014-01-13 11:17:21,172 email2trac titan:   Message part: Main-Type: text 2014-01-13 11:17:21,172 email2trac titan:   Message part: Content-Type: text/plain 2014-01-13 11:17:21,172 email2trac titan: function 
Jan 13 11:17:21 iv-eng-vm postfix/cleanup[24172]: 5603A2B2904: message-id=<>
Jan 13 11:17:21 iv-eng-vm postfix/qmgr[3160]: 5603A2B2904: from=<>, size=34660, nrcpt=1 (queue active)
Jan 13 11:17:21 iv-eng-vm postfix/bounce[24176]: C7EAD2B28BA: sender non-delivery notification: 5603A2B2904
Jan 13 11:17:21 iv-eng-vm postfix/qmgr[3160]: C7EAD2B28BA: removed
Jan 13 11:17:21 iv-eng-vm postfix/smtp[24177]: 5603A2B2904: to=<>,[]:25, delay=0.13, delays=0.01/0.01/0.01/0.11, dsn=2.6.0, status=sent (250 2.6.0  <> Queued mail for delivery)
Jan 13 11:17:21 iv-eng-vm postfix/qmgr[3160]: 5603A2B2904: removed

However, I added the following just after "logger" is instantiated so that I can see all the debug info:

fh = logging.FileHandler('/tmp/spam.log')

when I do that, I see more info - and email2trac appears to just exit. For example:

Found trac version: 1.0
Loading environment /var/local/trac/titan
Main function parse
saving email to /tmp/tmptnqS54.titan.email2trac
function get_message_parts()
	 Message part: Main-Type: multipart
	 Message part: Content-Type: multipart/alternative
	 Message part: Main-Type: text
	 Message part: Content-Type: text/plain
function inline_part()
	 unicode filename: None
	 raw filename: None
function check_filename_length: 
function inline_properties
	 Message part: Main-Type: text
	 Message part: Content-Type: text/html
function inline_part()
	 Skipping alternative HTML message
function unique_attachment_names()
function get_body_text()
function debug_body:
writing body to /tmp/tmptnqS54.titan.email2trac.body
function debug_attachments
function get_sender_info
function email_to_unicode
	 email name: Brian Silverman, email address:
	get_sender_info: found registered user: bsilverman
function email_header_acl: white_list
	 white_list not defined, all messages are allowed.
function email_header_acl: black_list
function email_header_acl: recipient_list
	 recipient_list not defined, all messages are allowed.
function spam
function spam
function email_to_unicode
subject: u'test23'
function ticket_update_by_subject
function new_ticket
function set_cc_fields
function set_ticket_fields
trac[summary] = 
trac[reporter] = 
trac[owner] = < default >
used owner = < default >
trac[description] = 
trac[type] = defect
used type = defect
trac[status] = 
trac[priority] = none
Traceback (most recent call last):

The file doesn't include a traceback. Note: the "before" and "after" were added by me as debug messages.

Finally, when adding/removing debug messages, I have once seen the command work and actually insert a ticket in the trac database.

More info - I am using:

  • Trac 1.0,
  • email2trac
    SVN Info:
            $Id: 628 2013-06-18 10:05:30Z bas $
  • Ubuntu:
    bri@iv-eng-vm:~/e2t/email2trac-2.7.0$ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 9.04
    Release:	9.04
    Codename:	jaunty
#335 wontfix Couple config questions for email2trac bas adrya.stembridge@…

I have postfix and dovetail installed and working.  I can send a message
from a remote system to the mail server, and I receive the message as
expected.   My trac installation is at /www/virtualhosts/trac.

I installed email2trac using the Install guide (made an RPM and used yum  No
errors on install - everything looks clean.   My config file is included at
the bottom of this message.

*First question.*

The example *project* option in email2trac.conf shows "/data/trac/jouvin".
  If I put "/www/virtualhosts/trac" I get an error when testing email2trac:

[tmp]# email2trac --project trac < msg.txt
Not a valid project name: trac, valid names are: []
or set parentdir in the [DEFAULT] section

What should I have for *project*?

*Second question.*
I'm a little unclear on setting up Postfix to work with email2trac.

In the mail server documentation there is this hint under Postfix:  "Please
note that postfix seemingly runs commands from the alias definition file as
user "nobody", even if the rest of it is running as user "postfix".  *So
please assure that the MTA_USER is set to nobody, not to postfix!*"

In the Install documentation, I see this:
"*Pay attention to the MTA_USER and TRAC_USER, they are not something you
can ignore! The default are for MTA (postfix) and TRAC_USER (apache2)*"

And that's how I set up prior to building/installing.

*What should MTA_USER be, if not postfix *(my mail server)*? *

*Third question*
Do you have a working postfix/email2trac install, and if so could you copy
one of your trac alias lines?  I'm not sure what user should go here.

tracproj: "|/usr/bin/email2trac <see command line options>


project: /www/virtualhosts/trac
debug: 0
black_list: MAILER-DAEMON@
drop_spam : 1
drop_alternative_html_version: 1
email_quote: >
ignore_trac_user_settings: 0
inline_properties: 1
reply_all : 0
spam_level: 5
strip_quotes: 0
strip_signature: 0
ticket_update: 1
ticket_update_by_subject: 1
umask: 022
verbatim_format: 1
reply_all: 1
Note: See TracQuery for help on using queries.