Project

General

Profile

Actions

Feature #6326

open

Parse email with patches as generated by @git format-patch@

Added by Olivier Mehani about 14 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
2010-09-08
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

It would be nice if the Mail Handler could parse emails generated by git format-patch. It could thus generate an issue with the description, and attach the patch to it.

I hacked the rdm-mailhandler.rb script to try to detect and preprocess such an email. When it detects a mail formatted by Git, it creates a multipart message with the patch as an attachment which it then submits to Redmine's MailHandler the normal way.

This is highly experimental (as my first attempt at Ruby), and the use of TMail should be replaced by Mail. Also, I think this feature would better be implemented directly in Redmine's MailHandler rather than in rdm-mailhandler.rb.


Files

rdm-mailhandler.rb (5.35 KB) rdm-mailhandler.rb An experimental attempt at parsing Git patches wboxes Olivier Mehani, 2010-09-08 07:54
Actions #1

Updated by Go MAEDA almost 6 years ago

  • Category set to Email receiving
Actions

Also available in: Atom PDF