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?);



168
169
# File 'lib/mlist/list.rb', line 168

def blocked_subscriber_post(email, subscriber)
end

#bounce(email) ⇒ Object



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

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.



179
180
# File 'lib/mlist/list.rb', line 179

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.



185
186
# File 'lib/mlist/list.rb', line 185

def non_subscriber_post(email)
end