Item12436: don't create an empty CC header

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: SendEmailPlugin
Branches: trunk
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
Remove it when it is empty.

--- lib/Foswiki/Plugins/SendEmailPlugin/Core.pm (revision 16610)
+++ lib/Foswiki/Plugins/SendEmailPlugin/Core.pm (working copy)
@@ -299,6 +299,7 @@
     $mail =~ s/%CC%/$cc/go;
     $mail =~ s/%SUBJECT%/$subject/go;
     $mail =~ s/%BODY%/$body/go;
+    $mail =~ s/\nCC:\s*\n/\n/;

-- MichaelDaum - 15 Mar 2013

 
Topic revision: r2 - 15 Mar 2013, MichaelDaum - This page was cached on 23 Jan 2018 - 22:43.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License