Changeset 27 for branches

Show
Ignore:
Timestamp:
10/16/07 03:19:40 (1 year ago)
Author:
amcgregor
Message:

Applied messages_as_strings.patch as per ticket #16 and added test_testmode.py from ticket #18.

Location:
branches/2.0.5
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.0.5/turbomail/dispatch.py

    r24 r27  
    156156                pack.update(packUpdate) 
    157157                 
     158                if not pack.has_key('to'): 
     159                        pack['to'] = pack['recipients'] 
     160 
    158161                if len(pack['to']) > 1: 
    159162                        pack.update(dict(addrto="- (%d)" % len(pack['to']))) 
     
    163166                        else: 
    164167                                pack.update(dict(addrto='- %s' % pack['to'][0])) 
     168                                 
     169                if not pack.has_key('subject'): 
     170                        pack['subject'] = '' 
    165171 
    166172                log.info(