Modify

Opened 13 years ago

Closed 12 years ago

#116 closed enhancement (fixed)

email2trac to also serve blogs

Reported by: lucas.eisenzimmer@… Owned by: bas
Priority: major Milestone: 0.80
Component: email2trac Version: trunk
Keywords: Cc:

Description

Hi Bas,

I have been playing around in order to creating/updating blog posts provided by the FullBlogPlugin. See the code attached. What do you think?

The distinction between tickets and blog posts is not satisfying at all, and the dependencies are also not processed yet (meaning that it should still work if the FullBlogPlugin is not installed).

Cheers, Lucas

Attachments (3)

email2trac_blog.patch (2.2 KB) - added by lucas.eisenzimmer@… 13 years ago.
Patch for adding blog creating/updating capabilities
email2trac_blog.2.patch (2.2 KB) - added by lucas.eisenzimmer@… 13 years ago.
diff -u patch
email2trac_blog.3.patch (2.5 KB) - added by lucas.eisenzimmer@… 13 years ago.
Final patch

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by lucas.eisenzimmer@…

Patch for adding blog creating/updating capabilities

comment:1 Changed 13 years ago by bas

  • Status changed from new to assigned

Lucas,

We do nou use this plugin, but it is a nice enhancement

just some questions:

  • can you send a diff -u format patch. It is easier to read what has been changed
  • If i read the patch correctly we have to make an new function to determine what we have to updatee a blog or ticket?

We can also setup an email address ans specifiy what the type is, eg:

trac_type: ticket||blog

So if a email is send to this address we now what we have to create or update.

comment:2 Changed 13 years ago by lucas.eisenzimmer@…

Hi Bas,

find attached a -u patch. Yes, it would be more clear to add a function which determines the type of thing (ticket/blog) to be created or updated. Setting up a separate email adress is also a possible solution, but if the distinction between ticket and blog can be achieved easily, there is no need to do that.

Changed 13 years ago by lucas.eisenzimmer@…

diff -u patch

comment:3 Changed 13 years ago by lucas.eisenzimmer@…

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

Alright. So here is a patch which has the following functions and requirements:

  • Adds support for the FullBlogPlugin in terms of creating new blog posts and updating existing blog posts.
  • Needs FullBlogPlugin to be installed. Will crash if there is no FullBlogPlugin installed
  • Does not consider the TICKET_UPDATE flag. Ticket updates are enabled by default.

This patch is pretty much fitted to our needs, if anybody finds it useful or will enhance it, please feel free to do so.

Changed 13 years ago by lucas.eisenzimmer@…

Final patch

comment:4 Changed 13 years ago by bas

  • Resolution worksforme deleted
  • Status changed from closed to reopened

reopen it and thanks for the patch and will look into it

comment:5 Changed 12 years ago by bas

Just a question do you also use email2trac for tickets or only for blogs? Because if a look at tha patch, ticket updates must be broken.

comment:6 Changed 12 years ago by bas

  • Milestone set to 0.80
  • Version changed from 0.6 to trunk

applied with modifictations to trunk. Can you test it and maybe write some info about it on the web pages

comment:7 Changed 12 years ago by bas

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

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.