Modify

Opened 10 years ago

Closed 10 years ago

#287 closed defect (fixed)

Patch: Improve TracFullBlogPlugin support

Reported by: thomas.moschny@… Owned by: bas
Priority: major Milestone:
Component: blog Version: 2.4.7
Keywords: Cc:

Description

This is a follow-up for #235, and possibly a fix for the remaining
issues in #175.

The attached patch contains the following enhancements and fixes:

 - Tries to use the 'Date:' email header to set the date of the blog
   post or comment.

 - Allows overriding author and categories via subject parameters or
   inline properties (see below).

 - Does not add the 'blog_' prefix to the default (short-) name of a
   blog entry anymore, as it would be rather redundant.

 - Allows selecting a custom short name for the blog entry instead of
   a default date-based short name. The custom short name may not
   contain spaces. (Note that the TracFullBlogPlugin imposes
   additional rules for valid short names.)

 - Bugfix: Fixes crash wile processing mails with attachments (#175).

 - Properly adds attachments to blog entries (#175).


Examples (to be put in the Email2tracParse wiki page):

 - `Subject: blog: Bas`

   Will create a new blog entry, with its short name derived from the
   email's date, and title 'Bas'.

 - `Subject: blog?categories=foo,bar&author=joe: Bas`

   Will create a new blog entry and set categories to 'foo' and 'bar',
   and author to 'joe'. Categories can be separated by comma,
   semicolon or space, and they cannot contain ampersand or colon.

 - `Subject: blog:test Bas`

   Will create a new blog entry with name 'test' ''or'' add a comment
   to that blog entry if it already exists.

   Note that the subject of the email is not preserved when a comment
   is added to a blog entry.

 - `Subject: blog?update=1:test Bas`

   Will create or update the blog entry with name 'test' (instead of
   adding a comment). The value of the `update` parameter doesn't
   matter, it can be set to any non-empty string.

If `inline_properties` are enabled, `@categories` , `@author` and
`@update` can be used in the mail body. Inline properties take
precedence over parameters given in the 'Subject:' header.

- Thomas

email2trac-r584_fullblog.patch

Attachments (1)

email2trac-r584_fullblog.patch (5.3 KB) - added by thomas.moschny@… 10 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by thomas.moschny@…

Added by email2trac

comment:1 Changed 10 years ago by bas

  • Status changed from new to assigned

Thanks a lot. I will apply it when i am back from my vacation ( 6 Feb 2012).

comment:2 Changed 10 years ago by anonymous

Thanx for patch! It's work for me well! 2BAS: lucky vacation :)

comment:3 Changed 10 years ago by bas

  • Component changed from email2trac to blog

comment:4 Changed 10 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.