This file is indexed.

/usr/share/pyshared/django_mailer-0.2a1.dev3.egg-info is in python-django-mailer 0.2a1.dev3-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
Metadata-Version: 1.1
Name: django-mailer
Version: 0.2a1.dev3
Summary: A reusable Django app for queuing the sending of email
Home-page: http://code.google.com/p/django-mailer/
Author: James Tauber
Author-email: jtauber@jtauber.com
License: UNKNOWN
Description: 
        =====
        Usage
        =====
        
        django-mailer is asynchronous so in addition to putting mail on the queue you
        need to periodically tell it to clear the queue and actually send the mail.
        
        The latter is done via a command extension.
        
        Putting Mail On The Queue
        =========================
        
        Because django-mailer currently uses the same function signature as Django's
        core mail support you can do the following in your code::
        
            # favour django-mailer but fall back to django.core.mail
            from django.conf import settings
        
            if "mailer" in settings.INSTALLED_APPS:
                from mailer import send_mail
            else:
                from django.core.mail import send_mail
        
        and then just call send_mail like you normally would in Django::
        
            send_mail(subject, message_body, settings.DEFAULT_FROM_EMAIL, recipients)
        
        or to send a HTML e-mail (this function is **not** in Django)::
        
            send_html_mail(subject, message_plaintext, message_html, settings.DEFAULT_FROM_EMAIL, recipients)
        
        Additionally you can send all the admins as specified in the ``ADMIN``
        setting by calling::
        
            mail_admins(subject, message_body)
        
        or all managers as defined in the ``MANAGERS`` setting by calling::
        
            mail_managers(subject, message_body)
        
        Clear Queue With Command Extensions
        ===================================
        
        With mailer in your INSTALLED_APPS, there will be two new manage.py commands
        you can run:
        
         * ``send_mail`` will clear the current message queue. If there are any
           failures, they will be marked deferred and will not be attempted again by
           ``send_mail``.
        
         * ``retry_deferred`` will move any deferred mail back into the normal queue
           (so it will be attempted again on the next ``send_mail``).
        
        You may want to set these up via cron to run regularly::
        
            * * * * * (cd $PINAX; /usr/local/bin/python2.5 manage.py send_mail >> $PINAX/cron_mail.log 2>&1)
            0,20,40 * * * * (cd $PINAX; /usr/local/bin/python2.5 manage.py retry_deferred >> $PINAX/cron_mail_deferred.log 2>&1)
        
        This attempts to send mail every minute with a retry on failure every 20 minutes.
        
        ``manage.py send_mail`` uses a lock file in case clearing the queue takes
        longer than the interval between calling ``manage.py send_mail``.
        
        Note that if your project lives inside a virtualenv, you also have to execute
        this command from the virtualenv. The same, naturally, applies also if you're
        executing it with cron. The `Pinax documentation`_ explains that in more
        details.
        
        .. _pinax documentation: http://pinaxproject.com/docs/dev/deployment.html#sending-mail-and-notices
        
        Using EMAIL_BACKEND
        ===================
        
        To automatically switch all your mail to use django-mailer, instead of changing imports
        you can also use the EMAIL_BACKEND feature that was introduced in Django 1.2. In
        your settings file, you first have to set EMAIL_BACKEND::
        
            EMAIL_BACKEND = "mailer.backend.DbBackend"
        
        If you were previously using a non-default EMAIL_BACKEND, you need to configure
        the MAILER_EMAIL_BACKEND setting, so that django-mailer knows how to actually send
        the mail::
        
            MAILER_EMAIL_BACKEND = "your.actual.EmailBackend"
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Framework :: Django