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

sayantan pal <sayantan.pal19@gmail.com> Thu, 14 June 2018 04:21 UTC

Return-Path: <sayantan.pal19@gmail.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 4424413105F for <imapext@ietfa.amsl.com>; Wed, 13 Jun 2018 21:21:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.448
X-Spam-Level:
X-Spam-Status: No, score=-2.448 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 nwgcnLr8vBjC for <imapext@ietfa.amsl.com>; Wed, 13 Jun 2018 21:21:46 -0700 (PDT)
Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B7DAE13105D for <imapext@ietf.org>; Wed, 13 Jun 2018 21:21:45 -0700 (PDT)
Received: by mail-lf0-x22f.google.com with SMTP id n3-v6so7184105lfe.12 for <imapext@ietf.org>; Wed, 13 Jun 2018 21:21:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zQMrBRYWy7l8DlwjE7HdD1n1q0I6wbtyZaCJ3JX95Gs=; b=t9gltXH1RuBbtzDHMFL21k9pSdA7rhZAe6db5+LJLtI5e75v85cZPSYAwdwM7BKKv3 /5DB07U9YUeC4SRJXy2nGqDGAdw88kCHa0QSwPg06hHBvVnXHMz+Y+NR9ndqyXQNpGEd AnU6R5ocw+LCs8Fdi4L301rekGqflwOzL2ZySZSluqSZxeAL6y3J5BpPosVpRoNwu7/J r++qQwOgcUd2L36FireZz9PhI/8AnbMyhEyImHFsOvIdi8CFLZlO3YyZYxOnqJ2zdadD UknZwWINFfnaf4sYMk8Us3K499OWJfNQTfRpar/WAHzfX76jWVPmv2X/96cOsIESdaZq nJzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zQMrBRYWy7l8DlwjE7HdD1n1q0I6wbtyZaCJ3JX95Gs=; b=Z8RSBIBj6uLbDlzALtUaOPDgVqlSwnjEzEthdkwvi9m20gPbnNx5+nm5qkE5+TyiCc AvIoLGHST60pAofnUMcGWgH1N+t0EI7OfEBLPF4MMC352FyYIqV6BRR5BXHd1K5coCx4 YqRSSNxGtAgApWAwhAOPZBm6t97vgmzO7qIIM+jMtoHaarNOdRioiizqODEPt3/3+G7p vUTmb68CIzItEpWc+FfmlGptIy8wBFGBp2OOXh1RoBZoqYWxs2rIIOSxdFQz5WGB1tfr fwS9E8dmmwT2AGXBxv3vtKAmxssTYHng68boJOmafybO3T5io1k2A0ltZCXucCf/azuF XGmw==
X-Gm-Message-State: APt69E2QAG4Zmr+aZBNgKTCO+14+9/aJJ8e+O1bZAtMbMHVfJiTb2qTN k4tSpqOUdQHH+NydMnQqiHeG8yIz4ZWQecZqD9g=
X-Google-Smtp-Source: ADUXVKIoYBNF1+tkE8zJv26J/sykOXp/lQ5gjqqA7L2LUDozOZTLFcQuQN1ivuW9Qzk10Bm8L6SbVhncRi4zDC//E1s=
X-Received: by 2002:a2e:93c9:: with SMTP id p9-v6mr495525ljh.117.1528950103842; Wed, 13 Jun 2018 21:21:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a2e:8614:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 21:21:42 -0700 (PDT)
In-Reply-To: <3358ED02-9B0E-419D-9BD2-EA9FD459D7B6@oracle.com>
References: <CACsjV1zdMJkgsUFrdB8tUbkLw-_N0JzVxd5zQUErV_LhxT_R_Q@mail.gmail.com> <3358ED02-9B0E-419D-9BD2-EA9FD459D7B6@oracle.com>
From: sayantan pal <sayantan.pal19@gmail.com>
Date: Thu, 14 Jun 2018 09:51:42 +0530
Message-ID: <CACsjV1yxLOvVnZV_UEpuzykamqgvZrK+=fpCjEfWFcePymjS=Q@mail.gmail.com>
To: Chris Newman <chris.newman@oracle.com>
Cc: imapext@ietf.org
Content-Type: multipart/mixed; boundary="000000000000d1ccb8056e926f38"
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/ZevuayG3DKfbxzC7H9_Bn-tikuM>
X-Mailman-Approved-At: Thu, 14 Jun 2018 08:08:28 -0700
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 04:21:48 -0000

Dear Chris,

     I appriciate your suggestions. I developed a smtp and pop3 services
using C#. They are working good. Now I stepped for IMAP. I successfuly
implemented capa, auth, login, list and lsub command. I am using Microsoft
Outlook 2007 as client. Now I received two commands
xx UID FETCH 2:8 (UID FLAGS RFC822.SIZE BODY.PEEK[HEADER])

yy UID FETCH 8 (UID FLAGS RFC822.SIZE BODY.PEEK[])

For the header command I am sending the entire message header and for body
command I am sending the entire message as string but I am getting a parse
error problem. My question is what is the exact string format which will
match the RFC standard. I couldn't find any example in RFC3501 and 1705. I
am using c# and writing my own library following RFC logics. Please find
the outlook log file.

On Wed, 13 Jun 2018, 23:49 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
>