From f1952915b2aa2174c25eba0ca2fc4746f6cc6ac4 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 15 Oct 2008 10:52:40 +0000
Subject: [PATCH] Add Content-ID header in attachment.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24191 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Tool/NotificationTool.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ERP5/Tool/NotificationTool.py b/product/ERP5/Tool/NotificationTool.py
index 5f2f4df5c9..92fe893193 100644
--- a/product/ERP5/Tool/NotificationTool.py
+++ b/product/ERP5/Tool/NotificationTool.py
@@ -166,6 +166,8 @@ def buildEmailMessage(from_url, to_url, msg=None,
 
     part.add_header('Content-Disposition',
                     'attachment; filename=%s' % attachment_name)
+    part.add_header('Content-ID',
+                    '%s' % attachment_name)
     message.attach(part)
 
   return message
-- 
2.30.9