ignor wrong mail from gmail. fixes #2587
This commit is contained in:
parent
edf0ea9f4d
commit
f3b6fa94e9
|
@ -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({ \
|
||||||
|
|
Loading…
Reference in New Issue