Modify

Opened 10 years ago

Closed 9 years ago

Last modified 6 years ago

#235 closed defect (fixed)

email2trac + TracFullBlog plugin

Reported by: slevin@… Owned by: bas
Priority: major Milestone: strip signature/quotes
Component: blog Version: 1.4.8
Keywords: TracFullBlog Cc: thomas.moschny@…

Description

Trac v.0.12.2 TracFullBlog? plugin installed email2trac v.1.6.0

Try to post message into blog Support trac. Create message to trac's email address. Subject: blog:support

Unsuccess. Message was moved into .maildir/new. Ok Editing message again, change Subject field to blog: support Success!

So, I don't know how to:

  1. remove keyword blog from post title ? Parser don't remove "blog" from title :(
  2. Set the "author" field ?
  3. Set the "categories" field?

I was make many tests message (30+) with different subject. And deside to try latest stable version email2trac - 2.0.2. I'm use config file from previos version. And do test again. As result:

  • that version can't understand subject like blog: support and blog:support. I'm receive only new tickets in both cases.

Ok, turn debug on and what we're can see - parser find @keywords and generate the new tickets :(

Please help!

Can you add changes for editing in blog fields: author and categories? What wrong I do?

O'course if it would be need - I can upload configs and get more info to you.

Attachments (5)

email2trac.conf (580 bytes) - added by slevin@… 10 years ago.
My config
blog_01.png (30.5 KB) - added by Modify blog entry problem 9 years ago.
blog_02.png (30.4 KB) - added by Modify blog entry problem 9 years ago.
blog_comment.email2trac (1.7 KB) - added by message with problem 9 years ago.
blog_subject.patch (2.1 KB) - added by thomas.moschny@… 9 years ago.

Download all attachments as: .zip

Change History (19)

Changed 10 years ago by slevin@…

My config

comment:1 Changed 10 years ago by bas

I don't use the blog functionality is added by someone else. But you should enable debug and logging. Then can we determine if email2trac sees that blog functionality is enabled. If is does not find the blog api then it does not recognize the blog keyword in the subject line.

Then the raw email message is saved in /tmp on Unix/Linux? systems. Can you attach this and it can also be used to run:

  • email2trac -n -v -d < <dumped_file>

comment:2 Changed 10 years ago by bas

  • Status changed from new to assigned

Changed 9 years ago by Modify blog entry problem

Changed 9 years ago by Modify blog entry problem

Changed 9 years ago by message with problem

comment:3 Changed 9 years ago by anonymous

Ok, a long silence time from my side. Several changes:

email2trac 2.0.2

  1. some fix for reopening tickets when receive message in ticket which closed before.
  2. email2trac create a new blog record without any problem, so have some defects:

-> Subject: blog:3 bas - Will update a blog entry - it's doesn't work for me. I send a new message to trac with subject: blog:test < - trac create a new blog record with Title test but new message with subject blog: 1 test <- put in blog as comment, not as blog entry modify. :(

Example:

ntrac Email2Trac.DEV # ./em -d -v -p admin-tst <blog_comment.email2trac
email2trac admin-tst: Found trac version: 0.12
email2trac admin-tst: Loading environment /var/lib/trac/admin-tst
email2trac admin-tst: Main function parse
saving email to /tmp/tmpn9ykHa.email2trac
email2trac admin-tst: function get_message_parts()
email2trac admin-tst:    Message part: Main-Type: text
email2trac admin-tst:    Message part: Content-Type: text/plain
[!] Debug_01: Part.get_filename():  None
email2trac admin-tst: function inline_part()
email2trac admin-tst: function strip_signature
email2trac admin-tst: function strip_quotes
email2trac admin-tst: function email_to_unicode
email2trac admin-tst: function inline_properties
email2trac admin-tst: function unique_attachment_names()
email2trac admin-tst: function get_body_text()
writing body to /tmp/tmp3YC_iF.email2trac
email2trac admin-tst: function debug_attachments
email2trac admin-tst: function email_to_unicode
email2trac admin-tst: function email_to_unicode
email2trac admin-tst: function email_header_acl: white_list
email2trac admin-tst: white_list not defined, all messages are allowed.
email2trac admin-tst: function email_header_acl: black_list
email2trac admin-tst: function email_header_acl: recipient_list
email2trac admin-tst: recipient_list not defined, all messages are allowed.
email2trac admin-tst: function email_to_unicode
email2trac admin-tst: subject: blog:3 test
email2trac admin-tst: Trac BLOG support enabled
email2trac admin-tst: Trac Discussion support enabled
[!] BLOG: id =  3
email2trac admin-tst: function get_message_parts()
email2trac admin-tst:    Message part: Main-Type: text
email2trac admin-tst:    Message part: Content-Type: text/plain
[!] Debug_01: Part.get_filename():  None
email2trac admin-tst: function inline_part()
email2trac admin-tst: function strip_signature
email2trac admin-tst: function strip_quotes
email2trac admin-tst: function email_to_unicode
email2trac admin-tst: function inline_properties
email2trac admin-tst: function get_body_text()
[!] BLOG: * UPDATE MODE *
[!] BLOG: comment         =  <tracfullblog.model.BlogComment object at 0x2a34250>
[!] BLOG: comment.author  =  slevin@adriver.ru
[!] BLOG: message_parts   =  [u'\n\u0424\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u043a\u0430!!!']
[!] BLOG: comment.comment =  slevin@adriver.ru

comment:4 Changed 9 years ago by bas

  • Component changed from email2trac to blog

I will ask the blog author to look at this ticket, He has added the support to email2trac.

Just a question about "subject blog: 1 test"

  • does it update the blog entry?
  • if yes does it updates the wrong field? Which field must be updated?

Changed 9 years ago by thomas.moschny@…

comment:5 Changed 9 years ago by thomas.moschny@…

The attached patch is against r576, and fixes two things:

  • removes the 'blog:' prefix from the subject.
  • honors the -n (dry-run) flag.

Adding comments to existing blog entries seems to work for me. (Note that it does not update the blog entry itself, but add a comment.)

If I have time, I might come up with another patch to allow passing attributes, like "blog:?categories=foo+bar,date=2011-01-01". Needs thinking about some details though, like date format, separator character for categories and so on. Also I am not sure if one wants to allow overriding the author this way. Ideally, we'd also support @date, @categories, etc in the same way it is supported for tickets.

comment:6 Changed 9 years ago by bas

  • Version changed from 2.0.2 to trunk

Thanks for the patch. I will commit it to trunk

comment:7 Changed 9 years ago by bas

  • Cc thomas.moschny@… added

comment:8 Changed 9 years ago by bas

(In [578]) commited patch by thomas moschny for blog support, see #235

comment:9 Changed 9 years ago by bas

  • Milestone set to email2trac release 2.X.X

comment:10 Changed 9 years ago by bas

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

comment:11 Changed 9 years ago by slevin@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Damn!

email2trac v.2.4.7 + TracFullBlog v.0.1.1-r0

email2trac-tst -d -v -p admin-tst <tmpB3ZDYb.admin-tst.email2trac

2012-01-13 16:14:07,235 email2trac admin-tst: Found trac version: 0.12
2012-01-13 16:14:07,338 email2trac admin-tst: Loading environment /var/lib/trac/admin-tst
2012-01-13 16:14:08,080 email2trac admin-tst: Main function parse
2012-01-13 16:14:08,084 email2trac admin-tst: saving email to /tmp/tmpzpN-vm.admin-tst.email2trac
2012-01-13 16:14:08,087 email2trac admin-tst: function get_message_parts()
2012-01-13 16:14:08,087 email2trac admin-tst:    Message part: Main-Type: text
2012-01-13 16:14:08,087 email2trac admin-tst:    Message part: Content-Type: text/plain
2012-01-13 16:14:08,087 email2trac admin-tst: function inline_part()
2012-01-13 16:14:08,087 email2trac admin-tst:    unicode filename: None
2012-01-13 16:14:08,087 email2trac admin-tst:    raw filename: None
2012-01-13 16:14:08,088 email2trac admin-tst: function check_filename_length: 
2012-01-13 16:14:08,088 email2trac admin-tst: function strip_signature
2012-01-13 16:14:08,088 email2trac admin-tst: function strip_quotes
2012-01-13 16:14:08,088 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,089 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,089 email2trac admin-tst: function inline_properties
2012-01-13 16:14:08,089 email2trac admin-tst: function unique_attachment_names()
2012-01-13 16:14:08,089 email2trac admin-tst: function get_body_text()
2012-01-13 16:14:08,089 email2trac admin-tst: function debug_body:
2012-01-13 16:14:08,090 email2trac admin-tst: writing body to /tmp/tmpzpN-vm.admin-tst.email2trac.body
2012-01-13 16:14:08,090 email2trac admin-tst: function debug_attachments
2012-01-13 16:14:08,092 email2trac admin-tst: function get_sender_info
2012-01-13 16:14:08,092 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,092 email2trac admin-tst:    email name: slevin@adriver.ru, email address: slevin@adriver.ru
2012-01-13 16:14:08,093 email2trac admin-tst: function email_header_acl: white_list
2012-01-13 16:14:08,093 email2trac admin-tst:    white_list not defined, all messages are allowed.
2012-01-13 16:14:08,093 email2trac admin-tst: function email_header_acl: black_list
2012-01-13 16:14:08,093 email2trac admin-tst: function email_header_acl: recipient_list
2012-01-13 16:14:08,093 email2trac admin-tst:    recipient_list not defined, all messages are allowed.
2012-01-13 16:14:08,093 email2trac admin-tst: function spam
2012-01-13 16:14:08,093 email2trac admin-tst: function spam
2012-01-13 16:14:08,094 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,094 email2trac admin-tst: subject: u'blog:test'
2012-01-13 16:14:08,094 email2trac admin-tst: Trac BLOG support enabled
2012-01-13 16:14:08,094 email2trac admin-tst: Trac Discussion support enabled
2012-01-13 16:14:08,095 email2trac admin-tst: function get_message_parts()
2012-01-13 16:14:08,096 email2trac admin-tst:    Message part: Main-Type: text
2012-01-13 16:14:08,096 email2trac admin-tst:    Message part: Content-Type: text/plain
2012-01-13 16:14:08,096 email2trac admin-tst: function inline_part()
2012-01-13 16:14:08,096 email2trac admin-tst:    unicode filename: None
2012-01-13 16:14:08,096 email2trac admin-tst:    raw filename: None
2012-01-13 16:14:08,096 email2trac admin-tst: function check_filename_length: 
2012-01-13 16:14:08,096 email2trac admin-tst: function strip_signature
2012-01-13 16:14:08,097 email2trac admin-tst: function strip_quotes
2012-01-13 16:14:08,097 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,097 email2trac admin-tst: function email_to_unicode
2012-01-13 16:14:08,097 email2trac admin-tst: function inline_properties
2012-01-13 16:14:08,097 email2trac admin-tst: function get_body_text()

I'll attach message body follow.

comment:17 Changed 9 years ago by thomas.moschny@…


There are patches in the queue, see #287.

comment:13 Changed 9 years ago by bas

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

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

comment:14 Changed 6 years ago by Francispem

  • Milestone changed from email2trac release 2.4.7 to strip signature/quotes
  • Version changed from trunk to 1.4.8

Oxycodone Toxic Best Bcaa Powder Optimum Nutrition Paroxetine Fluoxetine Prozac <a href=https://archive.org/details/OrderZoviraxOnlineCheap>Prescription Buy Zovirax Online</a>. Diabetes Mile Reviews Lithium Generic Prescription Paxil No Prescription Mastercard Tamil Brahmi Telugu Kannada . Spinning Classes For Weight Loss Aerobic Exercise What Company Makes Wellbutrin . Lumiscope Talking Wrist Blood Pressure Monitor Aaa Batteries Zyban How It Works Wellbutrin Sr <a href=http://www.orderoxycodoneonline.com/>Oxycodone And Hair Loss Online</a> Viagra Molecular System Atenolol No Prescription Delivery Meps High Blood Pressure Give Vicodin And Difficulty Urinating <a href=http://razel.dk/index.php?forums/nyheder/create-thread>Vancomycin Online Consultation, Vancomycin Coupon Code</a> <a href=http://razel.dk/index.php?forums/nyheder/create-thread>Tizanidine Overnight No Prescription Needed, Tizanidine Online Cheap</a> <a href=http://adventureutv.com/threads/buy-flomax-apap-cheap-flomax-canada.8703/>Buy Flomax Apap - Cheap Flomax Canada</a> <a href=http://razel.dk/index.php?forums/nyheder/create-thread>Vibramycin Echek, Buy Vibramycin In Ohio</a> <a href=http://www.dgnthai.com/board/forum.php?mod=viewthread&tid=594231&extra=>Order Cordarone Online Cod Overnight - Cordarone With No Prescription And Delivered Overnight</a> <a href=http://adventureutv.com/threads/buy-cafergot-for-my-dog-buy-cafergot-canada-pharmacy.8709/>Buy Cafergot For My Dog, Buy Cafergot Canada Pharmacy</a> <a href=http://razel.dk/index.php?forums/nyheder/create-thread>Buy Combivir Lowest Price - Combivir For Sale Uk</a>

<a href=http://adventureutv.com/threads/adipex-online-check-buy-adipex-online-overseas.8705/>Adipex Online Check, Buy Adipex Online Overseas</a>

<a href=http://www.dgnthai.com/board/forum.php?mod=viewthread&tid=594288&extra=>Buy Flonase In Australia - Flonase No Doctor Prescription</a> <a href=http://razel.dk/index.php?forums/nyheder/create-thread>Flomax Online Health Solutions - Where To Buy Flomax No Prescription No Fees</a> <a href=http://adventureutv.com/threads/ciplox-order-online-cod-ciplox-order-online-cheap.8712/>Ciplox Order Online Cod, Ciplox Order Online Cheap</a> <a href=http://adventureutv.com/threads/cymbalta-brand-name-canada-cymbalta-without-rx-cod.8713/>Cymbalta Brand Name Canada, Cymbalta Without Rx Cod</a>

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.