16 lines
243 B
Ruby
16 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
module EmailAction
|
|
class MailingListMapping < Base
|
|
|
|
def process(email)
|
|
if email.header_values("List-Unsubscribe").present?
|
|
email.mailing_list = true
|
|
end
|
|
|
|
email
|
|
end
|
|
|
|
end
|
|
end
|