mandrill-api 1.0.20 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +22 -5
  2. metadata +6 -5
@@ -275,7 +275,17 @@ module Mandrill
275
275
  # - [String] created_at when the email was added to the blacklist
276
276
  # - [String] expires_at when the blacklist entry will expire (this may be in the past)
277
277
  # - [Boolean] expired whether the blacklist entry has expired
278
- # - [Hash] Sender sender the sender that this blacklist entry applies to, or null if none.
278
+ # - [Hash] sender the sender that this blacklist entry applies to, or null if none.
279
+ # - [String] address the sender's email address
280
+ # - [String] created_at the date and time that the sender was first seen by Mandrill as a UTC date string in YYYY-MM-DD HH:MM:SS format
281
+ # - [Integer] sent the total number of messages sent by this sender
282
+ # - [Integer] hard_bounces the total number of hard bounces by messages by this sender
283
+ # - [Integer] soft_bounces the total number of soft bounces by messages by this sender
284
+ # - [Integer] rejects the total number of rejected messages by this sender
285
+ # - [Integer] complaints the total number of spam complaints received for messages by this sender
286
+ # - [Integer] unsubs the total number of unsubscribe requests received for messages by this sender
287
+ # - [Integer] opens the total number of times messages by this sender have been opened
288
+ # - [Integer] clicks the total number of times tracked URLs in messages by this sender have been clicked
279
289
  def list(email=nil, include_expired=false)
280
290
  _params = {:email => email, :include_expired => include_expired}
281
291
  return @master.call 'rejects/list', _params
@@ -321,16 +331,20 @@ module Mandrill
321
331
  return @master.call 'inbound/routes', _params
322
332
  end
323
333
 
324
- # Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP $sparam string $to[] the email address of the recipient @validate trim $sparam string $mail_from the address specified in the MAIL FROM stage of the SMTP conversation @validate email. Optional; required for the SPF check. $sparam string $helo the identification provided by the client mta in the MTA state of the SMTP conversation. Optional; required for the SPF check. $sparam string $client_address the remote MTA's ip address. Optional; required for the SPF check.
334
+ # Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP
325
335
  # @param [String] raw_message the full MIME document of an email message
326
336
  # @param [Array, nil] to optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document
337
+ # - [String] to[] the email address of the recipient
338
+ # @param [String] mail_from the address specified in the MAIL FROM stage of the SMTP conversation. Required for the SPF check.
339
+ # @param [String] helo the identification provided by the client mta in the MTA state of the SMTP conversation. Required for the SPF check.
340
+ # @param [String] client_address the remote MTA's ip address. Optional; required for the SPF check.
327
341
  # @return [Array] an array of the information for each recipient in the message (usually one) that matched an inbound route
328
342
  # - [Hash] return[] the individual recipient information
329
343
  # - [String] email the email address of the matching recipient
330
344
  # - [String] pattern the mailbox route pattern that the recipient matched
331
345
  # - [String] url the webhook URL that the message was posted to
332
- def send_raw(raw_message, to=nil)
333
- _params = {:raw_message => raw_message, :to => to}
346
+ def send_raw(raw_message, to=nil, mail_from=nil, helo=nil, client_address=nil)
347
+ _params = {:raw_message => raw_message, :to => to, :mail_from => mail_from, :helo => helo, :client_address => client_address}
334
348
  return @master.call 'inbound/send-raw', _params
335
349
  end
336
350
 
@@ -508,6 +522,7 @@ module Mandrill
508
522
  # - [String] email the email address of the recipient
509
523
  # - [String] name the optional display name to use for the recipient
510
524
  # - [Hash] headers optional extra headers to add to the message (currently only Reply-To and X-* headers are allowed)
525
+ # - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
511
526
  # - [Boolean] track_opens whether or not to turn on open tracking for the message
512
527
  # - [Boolean] track_clicks whether or not to turn on click tracking for the message
513
528
  # - [Boolean] auto_text whether or not to automatically generate a text part for messages that are not given text
@@ -576,6 +591,7 @@ module Mandrill
576
591
  # - [String] email the email address of the recipient
577
592
  # - [String] name the optional display name to use for the recipient
578
593
  # - [Hash] headers optional extra headers to add to the message (currently only Reply-To and X-* headers are allowed)
594
+ # - [Boolean] important whether or not this message is important, and should be delivered ahead of non-important messages
579
595
  # - [Boolean] track_opens whether or not to turn on open tracking for the message
580
596
  # - [Boolean] track_clicks whether or not to turn on click tracking for the message
581
597
  # - [Boolean] auto_text whether or not to automatically generate a text part for messages that are not given text
@@ -586,6 +602,7 @@ module Mandrill
586
602
  # - [String] bcc_address an optional address to receive an exact copy of each recipient's email
587
603
  # - [String] tracking_domain a custom domain to use for tracking opens and clicks instead of mandrillapp.com
588
604
  # - [String] signing_domain a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
605
+ # - [Boolean] merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
589
606
  # - [Array] global_merge_vars global merge variables to use for all recipients. You can override these per recipient.
590
607
  # - [Hash] global_merge_vars[] a single global merge variable
591
608
  # - [String] name the global merge variable's name. Merge variable names are case-insensitive and may not start with _
@@ -616,7 +633,7 @@ module Mandrill
616
633
  # - [String] type the MIME type of the image - must start with "image/"
617
634
  # - [String] name the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content
618
635
  # - [String] content the content of the image as a base64-encoded string
619
- # @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/sendTemplate will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
636
+ # @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
620
637
  # @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
621
638
  # - [Hash] return[] the sending results for a single recipient
622
639
  # - [String] email the email address of the recipient
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 20
10
- version: 1.0.20
9
+ - 21
10
+ version: 1.0.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandrill Devs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-28 00:00:00 Z
18
+ date: 2013-04-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
@@ -90,9 +90,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements: []
91
91
 
92
92
  rubyforge_project:
93
- rubygems_version: 1.8.15
93
+ rubygems_version: 1.8.24
94
94
  signing_key:
95
95
  specification_version: 3
96
96
  summary: A Ruby API library for the Mandrill email as a service platform.
97
97
  test_files: []
98
98
 
99
+ has_rdoc: