Changeset 63

Show
Ignore:
Timestamp:
11/07/07 01:11:02 (1 year ago)
Author:
amcgregor
Message:

Updated meta information.

Location:
branches/3.0/turbomail
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/turbomail/__init__.py

    r52 r63  
    1818from turbomail.message import Message 
    1919from turbomail.control import interface 
    20 from turbomail.util import send 
     20from turbomail.util import Address, AddressList, send 
    2121 
    22 import pkg_resources 
    23  
    24 __all__ = ['exceptions', 'extensions', 'managers', 'providers', 'release', 'manager', 'provider', 'config', 'Message', 'interface', 'send'] 
    25  
     22__all__ = [ 
     23                'Address', 
     24                'AddressList', 
     25                'interface', 
     26                'Message', 
     27                'send', 
     28                 
     29                'api', 
     30                'exceptions', 
     31                'extensions', 
     32                'managers', 
     33                'providers', 
     34                'release', 
     35                'smime', 
     36                 
     37                'config', 
     38                'manager', 
     39                'provider', 
     40        ] 
    2641 
    2742manager = None 
  • branches/3.0/turbomail/api.py

    r40 r63  
    33"""TurboMail extension API.""" 
    44 
     5__version__ = "$Revision: 1 $" 
     6__all__ = ['Extension', 'ProviderFactory', 'Provider', 'Manager'] 
     7 
    58 
    69class Extension(object): 
     10        name = "GenericExtension" 
     11        version = "0.1" 
     12        url = "http://www.python-turbomail.org/wiki/3.0/Extensions" 
     13         
    714        def __init__(self): 
    815                super(Extension, self).__init__() 
  • branches/3.0/turbomail/exceptions.py

    r40 r63  
    33"""Exceptions used by TurboMail to report common errors.""" 
    44 
    5  
     5__version__ = "$Revision: 1 $" 
    66__all__ = ['MailException', 'MailNotEnabledError', 'MailConfigurationError', 'ProviderException', 'ProviderExhaustedException', 'ManagerException'] 
    77 
  • branches/3.0/turbomail/managers/demand.py

    r52 r63  
    22 
    33"""TurboMail extension API.""" 
     4 
     5__version__ = "$Revision: 1 $" 
    46 
    57import logging 
     
    2527        name = "Demand" 
    2628        version = "1.0" 
    27         url = "http://www.python-turbomail.org/wiki/DemandManager" 
     29        url = "http://www.python-turbomail.org/wiki/3.0/DemandManager" 
    2830         
    2931        def __init__(self): 
  • branches/3.0/turbomail/managers/immediate.py

    r52 r63  
    22 
    33"""TurboMail extension API.""" 
     4 
     5__version__ = "$Revision: 1 $" 
    46 
    57import logging 
     
    2022        name = "Immediate" 
    2123        version = "1.0" 
    22         url = "http://www.python-turbomail.org/wiki/ImmediateManager" 
     24        url = "http://www.python-turbomail.org/wiki/3.0/ImmediateManager" 
    2325         
    2426        def __init__(self): 
  • branches/3.0/turbomail/providers/debug.py

    r52 r63  
    22 
    33"""TurboMail extension API.""" 
     4 
     5__version__ = "$Revision: 1 $" 
    46 
    57import logging 
  • branches/3.0/turbomail/providers/smtp.py

    r52 r63  
    22 
    33"""TurboMail extension API.""" 
     4 
     5__version__ = "$Revision: 1 $" 
    46 
    57import logging 
     
    7072                log.info("Attempting delivery of message %s." % message.id) 
    7173                deliverylog.info("%s DELIVER" % message.id) 
    72                 deliverylog.debug("%s SUBJECT \"%s\"" % (message.id, message.subject)) 
    73                 deliverylog.debug("%s FROM%s %s" % (message.id, len(message.author) != 1 and "S" or "", str(message.author.addresses).replace("\n", ""))) 
    74                 if message.senders: 
    75                         deliverylog.debug("%s SENDER%s %s" % (message.id, len(message.sender) != 1 and "S" or "", str(message.sender.addresses).replace("\n", ""))) 
    76                 deliverylog.debug("%s RECIPIENTS %s" % (message.id, str(message.recipients.addresses).replace("\n", ""))) 
    7774                 
    7875                if self.count == 0: 
  • branches/3.0/turbomail/release.py

    r52 r63  
    11# encoding: utf-8 
    22 
    3 """Release information about the Turbo-Mail mail queue.""" 
     3"""Release information about TurboMail.""" 
     4 
     5__version__ = "$Revision: 1 $" 
    46 
    57name = "TurboMail" 
    68version = "3.0" 
     9api_version = "1.0" 
    710description = "TurboMail is a multi-threaded mail delivery subsystem and MIME message generation framework for Python." 
    8 long_description = "TurboMail is a TurboGears extension, meaning that it starts up and shuts down alongside any TurboGears applications you write, in the same way that visit tracking and identity do. TurboMail uses built-in Python modules for SMTP communication and MIME e-mail creation, but greatly simplifies these tasks by performing the grunt-work for you. Additionally, TurboMail is multi-threaded, allowing for single or batch enqueueing and background delivery of mail." 
     11long_description = """TurboMail 3 offers: 
     12 
     13* Simplified creation of complex messages, including rich text, attachments, and more. 
     14* Modular delivery managers including the blocking immediate manager, or the two threading managers: on-demand, and polling. 
     15* Modular back-ends including SMTP, Sendmail, or on-disk. 
     16* Easier debugging when using the debug back-end in concert with the immediate manager. 
     17* A plugin architecture with a sample plugin for altered message encoding 
     18* S/MIME encryption and digital signatures. 
     19* Automatic integration into TurboGears 1.x. 
     20 
     21Python includes several standard packages for handling e-mail. These libraries are independent of each-other, their documentation is hard-to-follow, and their examples are hardly real-world. TurboMail ties these dispersant elements together with an elegant and extensible API, freeing you (the developer) from drudge-work, strained eyes, and loss of hair, even for the most complicated use-cases. 
     22""" 
    923author = "Alice Bevan-McGregor" 
    1024email = "alice+turbomail@gothcandy.com" 
  • branches/3.0/turbomail/util.py

    r41 r63  
    33"""MIME-encoded electronic mail message classes.""" 
    44 
    5 import re, turbomail 
     5__version__ = "$Revision: 1 $" 
     6 
     7import re 
     8import turbomail 
    69from turbomail.exceptions import MailNotEnabledError 
    710from email.Header import Header 
    811from email.utils import parseaddr, formataddr 
    912 
    10 __all__ = ['Address', 'AddressList', 'protected', 'send'] 
     13__all__ = ['Address', 'AddressList', 'send'] 
    1114 
    1215