Quantcast
Channel: Zimbra Forums
Viewing all articles
Browse latest Browse all 168

Developers • IMAP Inbox shows messages that are no longer in IMAP

$
0
0
I have a system of having an Inbox and Archive folder. When I'm done with a message, I move it to archive. My phone's IMAP client keeps showing a lot of them in Inbox.

I wrote a little Python script to list all the IMAP messages. Snippet of it:

Code:

import sys, os, imaplib, getopt, time
import email

def run():
    M.login(user, password)
    print(M.select(mailbox='INBOX', readonly=True))

    for i in range(1, 30):
        typ, msg_data = M.fetch(str(i), '(RFC822)')
        for response_part in msg_data:
            if isinstance(response_part, tuple):
                msg = email.message_from_string(response_part[1])
                print(msg_data[0][0])
                for header in [ 'subject', 'to', 'from' ]:
                    print('%-8s: %s' % (header.upper(), msg[header]))
                print("")


And it shows this message:

Code:

5 (RFC822 {8169}
SUBJECT : Hexagon xxxxxxxxxxxxxxxxxx
TO      : Wiebe xxxxxxxxxxxxxxxxx
FROM    : Jxxxx Pxxxx


But it's in Archive:

Zimbra_Imap_bug.png


This looks like a bug to me? Can Open Source users still report bugs?

Zimbra version: Release 8.8.15.GA.3869.UBUNTU16.64 UBUNTU16_64 FOSS edition, Patch 8.8.15_P22.

Statistics: Posted by halfgaar — Fri Jun 25, 2021 8:39 am



Viewing all articles
Browse latest Browse all 168

Trending Articles