~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mail/incoming.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-28 09:45:41 UTC
  • mfrom: (14028.1.4 bug-847485)
  • Revision ID: launchpad@pqm.canonical.com-20110928094541-0cii5t4cimdimnej
[r=gmb][bug=847485] [r=gmb][bug=847485] Use %r for logging mail
 from/to/message-id in DKIM verification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
    dkim_log = cStringIO()
128
128
    log.info(
129
 
        'Attempting DKIM authentication of message id=%s from=%s sender=%s'
 
129
        'Attempting DKIM authentication of message id=%r from=%r sender=%r'
130
130
        % (signed_message['Message-ID'],
131
 
            signed_message['From'],
132
 
            signed_message['Sender']))
 
131
           signed_message['From'],
 
132
           signed_message['Sender']))
133
133
    signing_details = []
134
134
    try:
135
135
        # NB: if this fails with a keyword argument error, you need the
242
242
                          signature_timestamp_checker):
243
243
    """Check GPG signature.
244
244
 
245
 
    :param principal: Claimed sender of the mail; to be checked against the
246
 
        actual signature.
 
245
    :param principal: Claimed sender of the mail; to be checked against
 
246
        the actual signature.
247
247
    :returns: principal, either strongly or weakly authenticated.
248
248
    """
249
249
    log = logging.getLogger('process-mail')