Feature #6326

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

Added by Olivier Mehani about 11 years ago. Updated almost 3 years ago.

Status:NewStart date:2010-09-08
Priority:NormalDue date:
Assignee:-% Done:


Category:Email receiving
Target version:-


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.

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


#1 Updated by Go MAEDA almost 3 years ago

  • Category set to Email receiving

Also available in: Atom PDF