Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#set ($toCc = "")
#if ($taskUtils.getHeader($message, 'To') != $null) ##Checks if there is a To header, before adding the value to $toCc
    #set($toCc = $toCc + $taskUtils.getHeader($message, 'To'))
#end
#if ($taskUtils.getHeader($message, 'Cc') != $null) ##Checks if there is a Cc header, before adding the value to $toCc
    #set($toCc = $toCc + $taskUtils.getHeader($message, 'Cc'))
#end
#if ($stringUtils.length($toCc)>=255) ##checks character length, if larger than 255 characters then the headers will be removed and replaced.
    #if ($taskUtils.getHeader($message, 'To') != $null)
      $message.removeHeader("To")
    #end
    #if ($taskUtils.getHeader($message, 'Cc') != $null)
      $message.removeHeader("Cc")
    #end
    $message.setHeader("To","test@testcatch@email.com") ## Sets the To header with a Catch Email Address, to ensure the email will be processed.
#end

...

Code Block
MIME-Version: 1.0
Received: by 10.223.112.12 with HTTP; Sat, 18 Jun 2011 22:42:26 -0700 (PDT)
Date: Sun, 19 Jun 2011 17:42:26 +1200
Subject: CHANGE_SUBJECT!!! SCRUM-3
From: euan@thepluginpeople.com
To: test@testcatch@email.com, ughsghsdfbjnsjn4upiwncewbgerhgf@gmail.com, jrgiojsdgiojsdgnmwkjbnqjkbsduisdnfwehuiwonfksdmklfm@gmail.com, hgsiuhgkfnsgkrjnguhtnvfmdlkaiunjfgndsvjipeuipnvui@gmail.com, hgtgrnemgkfehgishdnafjklqgnuihgu4pqnfuipngkrjan4tuingufdahfjkenqgfrlpsjfiaqphgwpnug@hotmail.com iregnfsadjlfgbreiupgbnjerkgnfjsgbwqpf4ufnrbvjfnblvjdsfbgjsgbnsfdlbgjfnlsvjkanvrjk@gmail.com
CC: gmail@gmail.com
Content-Type: text/plain; charset=UTF-8

CHANGE BODY!!!

...