Feature #14945

Outlook inline image replace [cid:..] by redmine !inline image!

Added by Luc Vandenbroucke almost 8 years ago. Updated almost 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Email receiving
Target version:-


When receiving an outlook mail,

would be replaced by

It would just be perfect!


#1 Updated by Etienne Massip almost 8 years ago

What's the point??

#2 Updated by Luc Vandenbroucke almost 8 years ago

I send a mail with screen shots to redmine.
Now, the screen shots become attachments like image001.png, this is ok, but the place where the image was becomes the text [cid:].

What I do now, every time is change all descriptions like
[cid:] to , and it looks like the original.

#3 Updated by Jan Niggemann (redmine.org team member) almost 8 years ago

  • Status changed from New to Needs feedback

I don't think this should be in redmine core, every mail system does things differently...
We had the same idea and wrote a plugin that uses regex to achieve the replacement (plain_text_body from mail_handler.rb):

module MailHandlerPatch
  def self.included(base)
    base.send(:include, InstanceMethods)
    base.class_eval do
      alias_method_chain :plain_text_body, :notes_cleanup

  module InstanceMethods
    def plain_text_body_with_notes_cleanup
      body = plain_text_body_without_notes_cleanup

      body.gsub! /\(Embedded image moved to file: (.*)\)/, '!\1!'
      body.gsub! /^\|------------>\s*?\n\| ([^|]*)\|\s*?\n\|------------>\s*?\n  >-{80,}\|\s*?\n  \|([^|]*)\|\s*?\n  >-{80,}\|/m, '|\1|\2|'


This converts the stuff our Lotus Notes uses to

#4 Updated by Luc Vandenbroucke almost 8 years ago

You are completely right, and thanks for the code.
I will make this work for outlook.

#5 Updated by Jan Niggemann (redmine.org team member) over 7 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

#6 Updated by Heiko Robert almost 6 years ago

has anybody written already a patch/plugin for the outlook use case?

#7 Updated by Toshi MARUYAMA almost 6 years ago

  • Category set to Email receiving

#8 Updated by Michael Ziegler almost 6 years ago

i would also need a patch/plugin receiving outlook emails :-)

Also available in: Atom PDF