title: While redirecting email with AppleScript the content of the email is duplicating. Why?
body: <p>What I'm trying to do is setup a Mail.app rule to redirect all iTunes receipt emails to a specific notebook in Evernote. The following AppleScript adds the correct recipient and modifies the subject-line so I can include a pointer to the correct Evernote notebook. The problem is I can't figure out why the content of the email gets copied twice. Any help is appreciated.</p>
  
  <p>UPDATE: For clarification, this script is run as part of a Mail.app rule. When an email comes in matching the rule the AppleScript below is run. If you're not familiar with Evernote's ability to add items via email it works like this: Every Evernote user receives a unique email address that allows items to be added directly to their Evernote account. Within the subject line certain keywords may be added to direct documents to specific folders (@Receipts) or to add specific tags (#cool).</p>
  
  <pre><code>using terms from application "Mail"
  on perform mail action with messages theMessages
      repeat with thisMessage in theMessages
          tell application "Mail"
              set newMessage to redirect thisMessage with opening window
              tell newMessage
                  set subject of newMessage to "hello"
                  make new to recipient at beginning of to recipients with properties {address:"mine@email.com"}
                  delete bcc recipients
                  delete cc recipients
              end tell
              set the sender of newMessage to "me@me.com"
              delay 1
              -- send newMessage
          end tell
      end repeat
  end perform mail action with messages
  end using terms from
  </code></pre>