[rt-users] empty message-body in replies

Phil Homewood pdh at snapgear.com
Mon Aug 12 21:57:50 EDT 2002


Phil Homewood wrote:
> "MIME parsing not recursive?", thread is broken, look for it
> twice in the index. Not sure if anyone's had any bright ideas
> on fixing it yet...

How about this one?

(Disclaimer: Untested. Feedback encouraged.)
-- 
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
-------------- next part --------------
Index: lib/RT/Interface/Email.pm
===================================================================
RCS file: /cvs/local/rt/lib/RT/Interface/Email.pm,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 Email.pm
--- lib/RT/Interface/Email.pm	15 Jul 2002 01:25:46 -0000	1.1.1.4
+++ lib/RT/Interface/Email.pm	13 Aug 2002 01:43:41 -0000
@@ -231,8 +231,8 @@
     # Set up output directory for files:
     $parser->output_dir("$AttachmentDir");
   
-    #If someone includes a message, don't extract it
-    $parser->extract_nested_messages(0);
+    #If someone includes a message, extract it, if config.pm says to
+    $parser->extract_nested_messages($RT::ExtractNestedMessages);
 
    
     # Set up the prefix for files with auto-generated names:
Index: etc/config.pm
===================================================================
RCS file: /cvs/local/rt/etc/config.pm,v
retrieving revision 1.7
diff -u -r1.7 config.pm
--- etc/config.pm	19 Jul 2002 05:20:24 -0000	1.7
+++ etc/config.pm	13 Aug 2002 01:47:01 -0000
@@ -106,6 +106,10 @@
 
 $DropLongAttachments = undef;
 
+# Set this to 1 if you want to unpack nested "message/rfc822"
+# messages on incoming mail.
+$ExtractNestedMessages = 0;
+
 # If $ParseNewMessageForTicketCcs is true, RT will attempt to divine
 # Ticket 'Cc' watchers from the To and Cc lines of incoming messages
 # Be forewarned that if you have _any_ addresses which forward mail to


More information about the rt-users mailing list