1
0
Fork 0

Moving documentation to RTD.

This commit is contained in:
Adam Coddington 2013-01-22 20:37:11 -08:00
parent 74aaf467ee
commit 3bada8f1a8
12 changed files with 631 additions and 191 deletions

13
docs/topics/signal.rst Normal file
View 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, )