mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Moving documentation to RTD.
This commit is contained in:
parent
74aaf467ee
commit
3bada8f1a8
12 changed files with 631 additions and 191 deletions
13
docs/topics/signal.rst
Normal file
13
docs/topics/signal.rst
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
Subscribing to the incoming mail signal
|
||||
=======================================
|
||||
|
||||
To subscribe to the incoming mail signal, following this lead::
|
||||
|
||||
from django_mailbox.signals import message_received
|
||||
from django.dispatch import receiver
|
||||
|
||||
@receiver(message_received)
|
||||
def dance_jig(sender, message, **args):
|
||||
print "I just recieved a message titled %s from a mailbox named %s" % (message.subject, message.mailbox.name, )
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue