From 63432c27c8b3ee253847f3df7d69a877f2a09aca Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Fri, 7 Oct 2011 22:15:59 +0800 Subject: [PATCH] Refactor to refernce parts by sub-path --- lib/mail_catcher/web.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mail_catcher/web.rb b/lib/mail_catcher/web.rb index 278a43d..577e305 100644 --- a/lib/mail_catcher/web.rb +++ b/lib/mail_catcher/web.rb @@ -67,7 +67,7 @@ module MailCatcher body = part["body"] # Rewrite body to link to embedded attachments served by cid - body.gsub! /cid:([^'"> ]+)/, "#{id}/\\1" + body.gsub! /cid:([^'"> ]+)/, "#{id}/parts/\\1" # Rewrite body to open links in a new window body.gsub! / (part["charset"] || "utf8")