'FETCH command IMAP based on headers defined by RFC822
I have this command come from Thunderbird client email:
6 UID fetch 1 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority X-Priority References Newsgroups In-Reply-To Content-Type Reply-To)])
To respond it, I send the follows statements:
* 1 FETCH (UID 1 RFC822.SIZE 526 BODY[] {526}
* FLAGS (\Seen)
From: "Bob Smith" <[email protected]>
To: "John Smith" <[email protected]>
Cc: "Joe Aaron" <[email protected]>
Subject: Sintaxe correta para criação de cabeçalhos de email
Date: 30 Jul 1996 11:54:54 -0000
Message-ID: <OTJMCQtXnqgMaP1rLJi-cD9IvuH+xuVndE-DoWAZB0cbdffqHdw@mail.gmail.com>
Reply-To: <[email protected]>
After this, Thunderbird client not send any command, and don't fetch nothing more and messages don't appear in mailbox.
In Thunderbird client the message "download message" start and never dropout
Is the first time that I study IMAP servers and I no have any idea how to proceed in this question.
Thanks;
Solution 1:[1]
Did you send the " OK FETCH completed" response? You must do that to signal command completion to the client.
Check the FETCH command section in the IMAP RFC. More specifically page 58 reveals an OK response example.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
