Modify

Opened 8 years ago

Closed 8 years ago

#303 closed defect (fixed)

Fwd: email2trac not compatible with trac 1.0?

Reported by: thomas.schabetsberger@… Owned by: bas
Priority: critical Milestone:
Component: email2trac Version: 2.6.0
Keywords: Cc:

Description

Dear Support,

I have updated to the latest stable release of trac 1.0. Now email2trac
stopped working. I get an error in the logs:

Sep 28 20:55:59 minerva email2trac trac: TRAC version 0.0 is not supported

Do you have an idea what to do?

Best regards,
Thomas







DDr. Thomas Schabetsberger
Einhornweg 26a
6068 Mils
Austria

Email: thomas.schabetsberger@webtek.at
Mobile: +43 664 2062399
Fax: +43 5223 20102 15


Der Inhalt dieser E-Mail samt Anlagen ist vertraulich und u. U. rechtlich
geschützt. Der Inhalt ist ausschließlich an einen bestimmten Empfänger
gerichtet. Eine Weitergabe, die Herstellung von Kopien oder der sonstige
Gebrauch durch Nichtadressaten ist nicht erlaubt. Ich bitte daher jeden
anderen Empfänger, der diese E-Mail versehentlich erhält, mich umgehend zu
informieren und die Nachricht zu löschen.
The information is intended to be for the use of the intended addressee
only.
Please be aware that any disclosure, copy, distribution or use of the
contents
of this message is prohibited. If you have received this e-mail in error
please notify me immediately by reply e-mail and delete this message and any
attachments from your system. Thank you for your cooperation.

Added by email2trac

Attachments (1)

webtek_logo_gray_small1.png (10.1 KB) - added by thomas.schabetsberger@… 8 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by thomas.schabetsberger@…

Added by email2trac

comment:1 Changed 8 years ago by anonymous

  • Priority changed from major to critical
  • Version changed from 2.6.0 to 2.4.7

comment:2 Changed 8 years ago by anonymous

  • Version changed from 2.4.7 to 2.6.0

I updated to version 2.6 now, but this had no effect. The setup is:

/etc/fetchmailrc

poll mail.bla.com protocol IMAP username "trac-ticket" password "xxxxxxxxxxxx"
mda "/usr/local/bin/run_email2trac --eggcache /var/tmp"

/usr/local/etc/email2trac.conf

DEFAULT]
project: /var/data/trac
debug: 0
umask: 022
spam_level: 5
reply_all : 0
mailto_link: 0
umask: 022
email_header: 0
trac_version: 1.0
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@
drop_alternative_html_version: 1
ticket_update: 1
python_egg_cache : /var/tmp

ll /var/tmp

drwxrwxrwt  4 root root  4096 Sep 30 19:59 tmp/

comment:3 Changed 8 years ago by thomas.schabetsberger@…

tail /var/log/syslog

Sep 30 21:05:01 minerva CRON[20233]: (fetchmail) CMD (/usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1 > /dev/null)
Sep 30 21:05:06 minerva fetchmail[20234]: error writing message text 
Sep 30 21:05:06 minerva fetchmail[20234]: MDA error while fetching from trac-ticket@mail.med-home.com 
Sep 30 21:05:06 minerva fetchmail[20234]: Query status=6 (IOERR) 

sometimes there is also an

Sep 30 20:55:08 minerva email2trac trac: TRAC version 0.0 is not supported

comment:4 Changed 8 years ago by anonymous

see #302. I have to add version 1.0 to allowed versions. Can you execute these code:

python
from trac import __version__ as trac_version
print trac_version

comment:5 Changed 8 years ago by anonymous

(webtek)root@minerva:/# python Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from trac import version as trac_version print trac_version

1.0

comment:6 Changed 8 years ago by thomas.schabetsberger@…

sorry, better formatted:

(webtek)root@minerva:/# python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from trac import __version__ as trac_version
>>> print trac_version
1.0
>>>

comment:7 Changed 8 years ago by bas

(In [613]) Quick fix for trac 1.0 version, untested, see #303

comment:8 follow-up: Changed 8 years ago by thomas.schabetsberger@…

Thank you for your quick response.

I guess there is a small typo in line 2644: startswith instead of startwith.

I have now managed to get the msg.txt 123 test ticket into trac, without errors. However via fetchmail I still receive the same errors in syslog:

Sep 30 23:46:23 minerva email2trac trac: subject: u'Test123'
Sep 30 23:50:02 minerva CRON[11312]: (fetchmail) CMD (/usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1 > /dev/null)
Sep 30 23:50:06 minerva fetchmail[11313]: error writing message text 
Sep 30 23:50:06 minerva fetchmail[11313]: MDA error while fetching from trac-ticket@mail.med-home.com 
Sep 30 23:50:06 minerva fetchmail[11313]: Query status=6 (IOERR) 
Sep 30 23:55:01 minerva CRON[15653]: (fetchmail) CMD (/usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1 > /dev/null)
Sep 30 23:55:06 minerva fetchmail[15654]: error writing message text 
Sep 30 23:55:06 minerva fetchmail[15654]: MDA error while fetching from trac-ticket@mail.med-home.com 
Sep 30 23:55:06 minerva fetchmail[15654]: Query status=6 (IOERR) 

comment:9 Changed 8 years ago by bas

(In [614]) fixed a typo in detecting which trac version is installed, see #303

comment:10 in reply to: ↑ 8 Changed 8 years ago by bas

Replying to thomas.schabetsberger@…:

Thank you for your quick response.

Your welcome

I guess there is a small typo in line 2644: startswith instead of startwith.

Just fixed it!

I have now managed to get the msg.txt 123 test ticket into trac, without errors. However via fetchmail I still receive the same errors in syslog:

So email2trac is working!

Sep 30 23:46:23 minerva email2trac trac: subject: u'Test123'
Sep 30 23:50:02 minerva CRON[11312]: (fetchmail) CMD (/usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1 > /dev/null)
Sep 30 23:50:06 minerva fetchmail[11313]: error writing message text 
Sep 30 23:50:06 minerva fetchmail[11313]: MDA error while fetching from trac-ticket@mail.med-home.com 
Sep 30 23:50:06 minerva fetchmail[11313]: Query status=6 (IOERR) 
Sep 30 23:55:01 minerva CRON[15653]: (fetchmail) CMD (/usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1 > /dev/null)
Sep 30 23:55:06 minerva fetchmail[15654]: error writing message text 
Sep 30 23:55:06 minerva fetchmail[15654]: MDA error while fetching from trac-ticket@mail.med-home.com 
Sep 30 23:55:06 minerva fetchmail[15654]: Query status=6 (IOERR) 

It is a fetchmail problem if i read it correctly it is a permission problem. Fetcmail can write its message to a temp file maybe. Or some permissions in your trac installation are differentt. If email2trac has an error it will log it in your syslog (assuming unix installation)

comment:11 Changed 8 years ago by bas

  • Resolution set to fixed
  • Status changed from new to closed

trac 1.0 is supported by email2trac

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.