Modify

Opened 11 years ago

Closed 9 years ago

#175 closed enhancement (fixed)

TD: saving email to /tmp/xxx error when trying to email to blog

Reported by: roland.wells@… Owned by: bas
Priority: major Milestone:
Component: blog Version: 1.0.0
Keywords: Cc: lucas.eisenzimmer@…

Description

email2trac works beautifully in creating new tickets and updating existing tickets, but when I try to use to post to a new (or update a) blog, I get the following error (in syslog as well as bounced to email):


Command died with status 1: "/usr/local/bin/email2trac --project=olives". Command output: TD:

saving email to /tmp/tmpr3914I.email2trac

Final-Recipient: rfc822; trac@... Original-Recipient: rfc822;trac@... Action: failed Status: 5.3.0 Diagnostic-Code: x-unix; TD: saving email to /tmp/tmpr3914I.email2trac


FreeBSD, trac .11.6, email2trac 1.0.0, fullblog 0.1

Attachments (6)

tmpHJNgDj.email2trac (1.6 KB) - added by roland.wells@… 11 years ago.
tmp file stored on error
maillog error.txt (320 bytes) - added by roland.wells@… 11 years ago.
maillog bounce error
email2trac blog print command log.txt (280 bytes) - added by roland.wells@… 11 years ago.
command log result with print statement
debug99 log.txt (601 bytes) - added by roland.wells@… 11 years ago.
Added by email2trac
tmp3h2iKF.email2trac (79 bytes) - added by roland.wells@… 11 years ago.
Added by email2trac
tmp_1sIPG.email2trac (1.8 KB) - added by roland.wells@… 11 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (26)

comment:1 Changed 11 years ago by bas

  • Component changed from email2trac to delete_spam
  • Status changed from new to assigned

Is there an error in the syslog and can you attach the saved file to this ticket. so i can replay it

comment:2 Changed 11 years ago by bas

  • Component changed from delete_spam to blog

Changed 11 years ago by roland.wells@…

tmp file stored on error

comment:3 Changed 11 years ago by roland.wells@…

I saved the tmp file stored on error. There is no syslog error in /var/log/messages (i mis-spoke in my original ticket filing), only the bounce detail in the maillog, which I've also attached to the ticket. Thanks.

Changed 11 years ago by roland.wells@…

maillog bounce error

comment:4 Changed 11 years ago by bas

I just tested and have the same behaviour as you when i d not have the blog plugin installed. I fixed that, Did tuou installed this plugin?

comment:5 Changed 11 years ago by roland.wells@…

The fullblog plugin is installed and seems to be working well, http://wellsolives.com/blog is the url

I installed the fullblog plugin via the FreeBSD ports system

comment:6 Changed 11 years ago by bas

Did you also enabled it in your trac.ini? email2trac wille check this:

                # Check if  FullBlogPlugin is installed
                #
                blog_enabled = None
                if self.get_config('components', 'tracfullblog.*') in ['enabled']:
                        blog_enabled = True

You cant add i print statement: {{{ # Check if FullBlogPlugin? is installed

# blog_enabled = None if self.get_config('components', 'tracfullblog.*') in enabled?:

blog_enabled = True

print "Blog enabkled"

}}}

en then run:

  • email2trac -n < /tmp/tmpHJNgDj.email2trac

comment:7 Changed 11 years ago by bas

# Check if FullBlogPlugin? is installed
blog_enabled = None 
if self.get_config('components', 'tracfullblog.*') in ['enabled']:
        blog_enabled = True
        print "Blog enabkled"

comment:8 Changed 11 years ago by bas

(In [309]) email2trac.py.in:

  • added inline properties patch. To set ticket fields within an email, eg:

@owner: bas

Will set the owner of the ticket to bas, closes #171

  • Display a warning if it is a blog message and the plugin is not installed, see #175

comment:9 Changed 11 years ago by roland.wells@…

  • Owner changed from bas to anonymous
  • Status changed from assigned to new

fullblog is enabled in trac.ini:

# cat /home/wellsolives/trac/conf/trac.ini | grep fullblog tracfullblog.* = enabled

I'll add the print msg and post results in a moment. Thanks

comment:10 Changed 11 years ago by roland.wells@…

prior comment displayed wrong, should be:

# cat /home/wellsolives/trac/conf/trac.ini | grep fullblog trac

fullblog.* = enable

Changed 11 years ago by roland.wells@…

command log result with print statement

comment:11 Changed 11 years ago by roland.wells@…

I've attached the command log to the ticket, "Blog enabled" prints ok

note: last comment left off a "d" when I copied it over, should have said "fullblog.* = enabled"

comment:12 Changed 11 years ago by bas

I have to install the plugin to test it. Can you set the debug to 99 in email2trac.conf and try again and attach te iutout again/

comment:13 Changed 11 years ago by bas

  • Owner changed from anonymous to bas
  • Status changed from new to assigned

I have made some changes to the blog software. The patch i received in #116 can not work for version 0.11. The changes are committed to trunk (r312).

Just i note. I do not know if i will maintain the blog functionality. We do not use it and the author of this functionality does not respond.

Changed 11 years ago by roland.wells@…

Added by email2trac

comment:26 Changed 11 years ago by roland.wells@…

I enabled debug 99 and have attached the command log here. Thanks

debug99 log.txt

comment:27 Changed 11 years ago by bas

Thanks for testing but can you test the svn version (trunk). In this version there are the applied changes. Run again with debug set to 99 in email2trac.conf. This version works at my trac site

comment:30 Changed 11 years ago by roland.wells@…

Installed from svn (trunk) and was making progress...
It successfully created a blog with subject = "blog:" but if there is
an attachment (like a pdf or picture file) it fails. I was attempting
to troubleshoot this further and have completely broken email2trac so
it doesn't work on anything now!
I'll send more info when I get things back to the above stage...

Thanks for your help on this, I realize that you don't use this
functionality on your system. It's a very nice feature, that I would
love to see continue being in email2trac.


On Wed, Feb 3, 2010 at 2:45 PM, email2trac <email2trac@sara.nl> wrote:

Changed 11 years ago by roland.wells@…

Added by email2trac

comment:31 Changed 11 years ago by roland.wells@…

Create blog works, see here:
http://www.wellsolives.com/blog/blog_20100206065312

However, when I try send an email to blog that includes an attachment,
it
fails, error in the maillog similar to here:

Feb  6 01:13:30 dev postfix/local[75984]: ECF77B853:
to=<trac@dev.ip8.org>,
orig_to=<trac@wellsolives.com>, relay=local, delay=2,
delays=0.14/0.01/0/1.9, dsn=5.3.0, status=bounced (Command died with
status
1: "/usr/local/bin/email2trac --project=olives". Command output:
/usr/local/lib/python2.6/site-
packages/graphviz-0.7.4-py2.6.egg/graphviz/graphviz.py:23:
DeprecationWarning: the sha module is deprecated; use the hashlib
module
instead TD: saving email to /tmp/tmp_1sIPG.email2trac TD: Message
part:
Main-Type: multipart TD: Message part: Content-Type:
multipart/alternative
TD: Message part: Main-Type: text TD: Message part: Content-Type:
text/plain
TD:               Inline body part TD: Message part: Main-Type: text
TD:
Message part: Content-Type: text/html TD:               Filename: None
TD:
attachment_exists: Ticket number : None, Filename : untitled-part.html
TD:
Attachment with filename untitled-part.html will be saved as
untitled-part.html TD: writing body (/tmp/tmp3h2iKF.email2trac) TD:
part1:
Content-

I've attached both saved tmp files

Also, the text email gets put in the blog body inside "code block"
formatting, is this expected behaviour?

Thanks

tmp3h2iKF.email2trac

tmp_1sIPG.email2trac

comment:32 Changed 11 years ago by bas

I do not see an error in email2trac. Onyl a warning in the graphviz package. I have to test if we can handle blog attachments. And to remove the code block see:

Search for: verbatim_format

comment:36 Changed 11 years ago by roland.wells@…

Thanks for the tip on verbatim_format, I should have seen that in your
docs.

I don't know how to get better info on the error, there is no syslog
messages, only the info in the bounce (and maillog) that I've
attachment above, the behavior is this: When a plaintext email is sent
with subject "blog:" then it adds the email to the blog. If the email
includes ANY attachments, then the email is bounced and the email and
attachments are saved to /tmp. The strange thing is that email to
tickets works fine, including attachments.

Thanks



On Mon, Feb 15, 2010 at 8:10 AM, email2trac <email2trac@sara.nl>
wrote:

comment:37 Changed 11 years ago by bas

  • Cc lucas.eisenzimmer@… added
  • Type changed from defect to enhancement

the mail to ticket system is conpletly functional and can also handle attachments. For blog only comments are imoplemented and there is no code to handle attachments, The patch that i received did not include this functionality. I can ask teh author of the patch if he could add this functionality or someone else can write this?

comment:21 Changed 9 years ago by bas

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

(In [585]) added blog patch from Thomas Moschny, closes #287,#235,#175

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.