ignor wrong mail from gmail. fixes #2587

This commit is contained in:
Yann Leboulanger 2006-10-17 21:56:59 +00:00
parent edf0ea9f4d
commit f3b6fa94e9
1 changed files with 4 additions and 1 deletions

View File

@ -1308,7 +1308,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco)
if gm.getTag('mailbox').getTag('mail-thread-info'): if gm.getTag('mailbox').getTag('mail-thread-info'):
gmail_messages = gm.getTag('mailbox').getTags('mail-thread-info') gmail_messages = gm.getTag('mailbox').getTags('mail-thread-info')
for gmessage in gmail_messages: for gmessage in gmail_messages:
gmail_from = gmessage.getTag('senders').getTag('sender').getAttr('address') sender = gmessage.getTag('senders').getTag('sender')
if not sender:
continue
gmail_from = sender.getAttr('address')
gmail_subject = gmessage.getTag('subject').getData() gmail_subject = gmessage.getTag('subject').getData()
gmail_snippet = gmessage.getTag('snippet').getData() gmail_snippet = gmessage.getTag('snippet').getData()
gmail_messages_list.append({ \ gmail_messages_list.append({ \