Module: MList::List::Callbacks

Included in:
MList::List
Defined in:
lib/mlist/list.rb

Overview

Methods that will be invoked on your implementation of Mlist::List when certain events occur during the processing of email sent to a list.

Instance Method Summary collapse

Instance Method Details

#blocked_subscriber_post(email, subscriber) ⇒ Object

Called when an email is a post to the list by a subscriber whom the list claims is blocked (answers true to _blocked?(subscriber)_). This will not be called if the list is inactive (answers false to active?);



160
161
# File 'lib/mlist/list.rb', line 160

def blocked_subscriber_post(email, subscriber)
end

#bounce(email) ⇒ Object



163
164
# File 'lib/mlist/list.rb', line 163

def bounce(email)
end

#inactive_post(email) ⇒ Object

Called when an email is a post to the list while the list is inactive (answers false to active?). This will not be called if the email is from a non-subscribed sender. Instead, non_subscriber_post will be called.



171
172
# File 'lib/mlist/list.rb', line 171

def inactive_post(email)
end

#non_subscriber_post(email) ⇒ Object

Called when an email is a post to the list from a non-subscribed sender. This will be called even if the list is inactive.



177
178
# File 'lib/mlist/list.rb', line 177

def non_subscriber_post(email)
end