diff options
Diffstat (limited to 'ayatanawebmail/application.py')
-rwxr-xr-x | ayatanawebmail/application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ayatanawebmail/application.py b/ayatanawebmail/application.py index 5d53eb7..e62fa30 100755 --- a/ayatanawebmail/application.py +++ b/ayatanawebmail/application.py @@ -870,7 +870,7 @@ class AyatanaWebmail(object): thread_id = '' msg = None - try: + if any(s in oConnection.strHost for s in ['gmail', 'google']):: typ, msg_data = oConnection.oImap.uid('FETCH', m, '(X-GM-THRID BODY.PEEK[HEADER.FIELDS (DATE SUBJECT FROM MESSAGE-ID)])') @@ -881,7 +881,7 @@ class AyatanaWebmail(object): thread_id = '%x' % int(m_reThrid.search(lstField[0]).group(1)) break - except imaplib.IMAP4.error: + else: typ, msg_data = oConnection.oImap.uid('FETCH', m, '(BODY.PEEK[HEADER.FIELDS (DATE SUBJECT FROM MESSAGE-ID)])') |