Commits

MailChimp  committed f759c13

Add preserve_recipients flag to the messages/send calls to include all recipients in the To header of each email

  • Participants
  • Parent commits d0dda77
  • Tags 1.0.5

Comments (0)

Files changed (2)

         params = json.dumps(params)
         self.log('POST to %s%s.json: %s' % (ROOT, url, params))
         start = time.time()
-        r = self.session.post('%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.4'})
+        r = self.session.post('%s%s.json' % (ROOT, url), data=params, headers={'content-type': 'application/json', 'user-agent': 'Mandrill-Python/1.0.5'})
         try:
             remote_addr = r.raw._original_response.fp._sock.getpeername() # grab the remote_addr before grabbing the text since the socket will go away
         except:
                message.track_clicks (boolean): whether or not to turn on click tracking for the message
                message.auto_text (boolean): whether or not to automatically generate a text part for messages that are not given text
                message.url_strip_qs (boolean): whether or not to strip the query string from URLs when aggregating tracked URL data
+               message.preserve_recipients (boolean): whether or not to expose all recipients in to "To" header for each email
                message.bcc_address (string): an optional address to receive an exact copy of each recipient's email
                message.merge (boolean): whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
                message.global_merge_vars (array): global merge variables to use for all recipients. You can override these per recipient.::
                message.track_clicks (boolean): whether or not to turn on click tracking for the message
                message.auto_text (boolean): whether or not to automatically generate a text part for messages that are not given text
                message.url_strip_qs (boolean): whether or not to strip the query string from URLs when aggregating tracked URL data
+               message.preserve_recipients (boolean): whether or not to expose all recipients in to "To" header for each email
                message.bcc_address (string): an optional address to receive an exact copy of each recipient's email
                message.global_merge_vars (array): global merge variables to use for all recipients. You can override these per recipient.::
                    message.global_merge_vars[] (struct): a single global merge variable::
 
 setup(
     name = 'mandrill',
-    version = '1.0.4',
+    version = '1.0.5',
     author = 'Mandrill Devs',
     author_email = 'community@mandrill.com',
     description = 'A CLI client and Python API library for the Mandrill email as a service platform.',