Skip to content

Commit

Permalink
Merge pull request #67 from kshnurov/migrate_from_mandrill
Browse files Browse the repository at this point in the history
Migrate from Mandrill! Release 1.3.8
  • Loading branch information
kshnurov authored Mar 16, 2022
2 parents 4f9aba4 + fb0dc81 commit d41f790
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.3.8 (2022-03-16)

- [MIGRATE from Mandrill IMMEDIATELY](https://github.com/kshnurov/mandrill_dm/MIGRATE)

### 1.3.7 (2020-03-23)

- [#66](https://github.com/spovich/mandrill_dm/pull/66) Switch to security-patched fork of mandrill-api gem (mandrill-api-json). Patches CVE-2020-10663.
Expand Down
27 changes: 27 additions & 0 deletions MIGRATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
####################################################
# !!! MIGRATE from Mandrill IMMEDIATELY! #
####################################################

On 15.03.2022 Mailchimp blocked tens of thousands of accounts
for one reason: their nationality. There's no law that required that.
(email: https://github.com/kshnurov/mandrill_dm/mailchimp_email.png)

They didn't give any prior notice, time to migrate, or an option to
download our data and email lists. We're unable to log in despite
using Mailchimp & Mandrill for 8 years and an excellent account score.

WE'VE LOST ALL OUR DATA and our operations were disrupted.

Mailchimp's actions are completely unlawful, violate business ethics and
moral norms. This is pure racism and Nazism. It should not be tolerated.

We urge you to MIGRATE to other services IMMEDIATELY until your account
is blocked because of your race, sex, nationality, or T-shirt color.

This gem will continue to work, but will log error on every sent message.

You're free to fork it and keep using Mandrill if you support
punishing innocent people for being born in a particular country,
no matter what they think about their government and recent events.

####################################################
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@
Mandrill DM allows you to use ActionMailer with the Mandrill API. Created by [Jonathan Berglund](https://github.com/jlberglund)
and maintained by [John Dell](https://github.com/spovich), and [Kirill Shnurov](https://github.com/kshnurov) and various [contributors](https://github.com/spovich/mandrill_dm/graphs/contributors).

## !!! MIGRATE from Mandrill IMMEDIATELY!

On 15.03.2022 Mailchimp blocked tens of thousands of accounts for one reason: their nationality.
There's no law that required that. [See the email](https://github.com/kshnurov/mandrill_dm/mailchimp_email.png)

They didn't give any prior notice, time to migrate, or an option to download our data and email lists.
We're unable to log in despite using Mailchimp & Mandrill for 8 years and an excellent account score.

WE'VE LOST ALL OUR DATA and our operations were disrupted.

Mailchimp's actions are completely unlawful, violate business ethics and moral norms.
This is pure racism and Nazism. It should not be tolerated.

We urge you to MIGRATE to other services IMMEDIATELY until your account is blocked because of your race, sex, nationality, or T-shirt color.

This gem will continue to work, but will log error on every sent message.

You're free to fork it and keep using Mandrill if you support punishing innocent people for being born in a particular country,
no matter what they think about their government and recent events.

## Rails Setup

First, add the gem to your Gemfile and run the `bundle` command to install it.
Expand Down
4 changes: 4 additions & 0 deletions lib/mandrill_dm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class << self
# config.api_key = '1234567890'
# end
def self.configure
logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
logger.error '!!! MIGRATE from Mandrill IMMEDIATELY: https://github.com/kshnurov/mandrill_dm/MIGRATE'
Warning.warn "!!! MIGRATE from Mandrill IMMEDIATELY: https://github.com/kshnurov/mandrill_dm/MIGRATE\n"

self.configuration ||= Configuration.new
yield(configuration)
end
Expand Down
3 changes: 3 additions & 0 deletions lib/mandrill_dm/delivery_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def initialize(options = {})
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
def deliver!(mail)
logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
logger.error '!!! MIGRATE from Mandrill IMMEDIATELY: https://github.com/kshnurov/mandrill_dm/MIGRATE'

mandrill_api = Mandrill::API.new(settings[:api_key])
message = Message.new(mail)
@response = if message.template
Expand Down
Binary file added mailchimp_email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion mandrill_dm.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'mandrill_dm'
s.version = '1.3.7'
s.version = '1.3.8'
s.date = '2020-03-20'
s.summary = 'A basic Mandrill delivery method for Rails.'
s.description = 'A basic Mandrill delivery method for Rails.'
Expand All @@ -13,6 +13,8 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.required_ruby_version = '>= 2.0'

s.post_install_message = File.read("MIGRATE") if File.exist?("MIGRATE")

s.add_dependency 'mail', '>= 2.6'
s.add_dependency 'mandrill-api-json', '~> 1.0.54'

Expand Down

0 comments on commit d41f790

Please sign in to comment.