Revert part of commit 43b3392162
, so that we still send if there are no PGP recipients.
This commit is contained in:
parent
955f8b8c9f
commit
980ee8c407
|
@ -36,7 +36,7 @@ if raw_message.has_key('X-GPG-Encrypt-Cc'):
|
||||||
|
|
||||||
def send_msg( message, recipients = None ):
|
def send_msg( message, recipients = None ):
|
||||||
if recipients == None:
|
if recipients == None:
|
||||||
return
|
recipients = to_addrs
|
||||||
if cfg.has_key('logging') and cfg['logging'].has_key('file'):
|
if cfg.has_key('logging') and cfg['logging'].has_key('file'):
|
||||||
log = open(cfg['logging']['file'], 'a')
|
log = open(cfg['logging']['file'], 'a')
|
||||||
log.write("Sending email to: <%s>\n" % '> <'.join( recipients ))
|
log.write("Sending email to: <%s>\n" % '> <'.join( recipients ))
|
||||||
|
|
Loading…
Reference in New Issue