Re: [imapext] REQUESTING FOR SUPPORT TO IMPLEMENT IMAP FETCH COMMAND

"Chris Newman" <chris.newman@oracle.com> Thu, 14 June 2018 13:10 UTC

Return-Path: <chris.newman@oracle.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 128CD131007 for <imapext@ietfa.amsl.com>; Thu, 14 Jun 2018 06:10:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.299
X-Spam-Level:
X-Spam-Status: No, score=-4.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, T_MIME_MALF=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=oracle.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wfZqaF4cx83n for <imapext@ietfa.amsl.com>; Thu, 14 Jun 2018 06:10:20 -0700 (PDT)
Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3135C130E19 for <imapext@ietf.org>; Thu, 14 Jun 2018 06:10:20 -0700 (PDT)
Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5ED8ek4175490; Thu, 14 Jun 2018 13:10:18 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=corp-2017-10-26; bh=yq8ZUUU8aTHRGwyno6bBdomVv7aNth+ZfeQh0KAOUYc=; b=cBY9TA8StOiNKRphAkpZUzWwdgsa4ZKZqCq+YffAWlfbQHJDiMy6n0Onn5PmYdSX+VqS p5yqpz0wo0/07uvfN0AIvqWrbaoMlSg0qOZBe1Y1njn+jURW7vx2Haq5FkQ58FqcKGcc TvWxb367JNB7h7E8KdphAkQjf+7CbAb/6eijw1dznn1jqIhkEsO5gUEWJPx5u5pekelf TtGPNsWT1TjrAuBwKMunfr2hHOXSAXLj/1fQno377IYJrDxbJIgrdYN6ph/nV2MQLp4w jO02ErJs8BDNU8zBSq0ElDgbubFjQTp4ykiHumDworNQ1SueY/iUaAdvyeT0bjaqZWHV qw==
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2jk0xqw140-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 13:10:17 +0000
Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5EDAHhs019986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Jun 2018 13:10:17 GMT
Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5EDAGlG002124; Thu, 14 Jun 2018 13:10:16 GMT
Received: from [192.168.15.59] (/68.190.243.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Jun 2018 06:10:16 -0700
From: "Chris Newman" <chris.newman@oracle.com>
To: "sayantan pal" <sayantan.pal19@gmail.com>
Cc: imapext@ietf.org
Date: Thu, 14 Jun 2018 06:10:13 -0700
X-Mailer: MailMate (1.11.2r5479)
Message-ID: <EEBF22FC-AFCE-4535-A778-786E87CE09EC@oracle.com>
In-Reply-To: <CACsjV1z3GVT7vAYDLs1SMU_VXtaZvYBpLv-RSDj3UxrLrL879A@mail.gmail.com>
References: <CACsjV1zdMJkgsUFrdB8tUbkLw-_N0JzVxd5zQUErV_LhxT_R_Q@mail.gmail.com> <3358ED02-9B0E-419D-9BD2-EA9FD459D7B6@oracle.com> <CACsjV1z3GVT7vAYDLs1SMU_VXtaZvYBpLv-RSDj3UxrLrL879A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_MailMate_B92F7477-F9BB-4212-8C7C-59FE181D67DB_="
Embedded-HTML: [{"HTML":[1612, 3829], "plain":[314, 2109], "uuid":"454B3528-908E-469F-938E-06511AAAB39A"}]
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8923 signatures=668702
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=872 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806140148
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/kTxKwZBHYNWr_eT-nMX8YGmMtII>
Subject: Re: [imapext] REQUESTING FOR SUPPORT TO IMPLEMENT IMAP FETCH COMMAND
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Jun 2018 13:10:23 -0000

You may need to read the formal ABNF for RFC 5322 and RFC 3501 more 
carefully. The previous advice you received about test clients may also 
be helpful. This is a list to discuss the standards and their 
extensions, not to help debug your implementation.

		- Chris

On 13 Jun 2018, at 21:34, sayantan pal wrote:

> Dear Chris,
>
>         This is being a client server conversation:
>
> client: xx UID FETCH 2:8 (UID FLAGS RFC822.SIZE BODY.PEEK[HEADER])
> server: * 1 FETCH (UID 2 FLAGS (\SEEN) RFC822.SIZE 4794 BODY[HEADER] 
> {4348}
> X-Recent: Recent
> Received: by mail-lf0-f48.google.com with SMTP id 
> n15-v6so29788633lfn.10
> for <A@cogitomail.com>om>; Mon, 11 Jun 2018 03:47:22 -0700 (PDT)
> MIME-Version: 1.0
> From: sayantan pal <sayantan.pal19@gmail.com>
> Date: Mon, 11 Jun 2018 16:17:04 +0530
> Message-ID: <CACsjV1wAbBpE2dJ_xzB6qUf2O2nsXsqqGuufLd=
> zG0L13TXeQA@mail.gmail.com>
> Subject: 2
> To: A <A@cogitomail.com>
> Content-Type: multipart/alternative; 
> boundary="0000000000006f01d7056e5b788f"
>
>
> )
>
> This reply is somehow wrong w.r.t a server reply and I am getting 
> parse
> error from Outlook. I am attaching a .msg file which my server 
> received by
> the smtp service I have developed. Please check. I have not written 
> all the
> headers in this mail. I am retrieving all the header using mailbee
> extension. It has a property named RawHeaders which retrieves all the
> headers.
>
> Thank You,
> Sayantan Pal
>
> On Wed, Jun 13, 2018 at 11:49 PM, Chris Newman 
> <chris.newman@oracle.com>
> wrote:
>
>> Implementing a mail server is probably much harder than you think it 
>> is.
>> Good luck!
>>
>> I recommend using an IMAP client that provides good diagnostics for
>> testing. Some programming languages, such as Python, include a 
>> limited IMAP
>> client library you can use for simple testing.
>>
>>                 - Chris
>>
>>
>> On 13 Jun 2018, at 5:29, sayantan pal wrote:
>>
>>  Dear Team,
>>>
>>>     I am implementing my own mail server and thereby developing IMAP
>>> service by own following RFC3501 and 1705. I am unable to implement 
>>> the
>>> IMAP fetch header and body command. I am using Outlook 2007 as email
>>> client. I have the log file for reference. I thereby requesting for 
>>> your
>>> kind support to successfully fetch the header and body of a mail.
>>>
>>> Thanking You,
>>> Sayantan Pal
>>> _______________________________________________
>>> imapext mailing list
>>> imapext@ietf.org
>>>
>>