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

sayantan pal <sayantan.pal19@gmail.com> Thu, 14 June 2018 04:34 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 3A4D013106A for <imapext@ietfa.amsl.com>; Wed, 13 Jun 2018 21:34:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.438
X-Spam-Level:
X-Spam-Status: No, score=-2.438 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, 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=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 PW_Klew8EMMW for <imapext@ietfa.amsl.com>; Wed, 13 Jun 2018 21:34:21 -0700 (PDT)
Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (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 98285130DDD for <imapext@ietf.org>; Wed, 13 Jun 2018 21:34:20 -0700 (PDT)
Received: by mail-lf0-x236.google.com with SMTP id n15-v6so7223622lfn.10 for <imapext@ietf.org>; Wed, 13 Jun 2018 21:34:20 -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=qlkXftS7q+35n4GqSd1LUtWj+nBgUd5vIzypeeluhKI=; b=JVZOxEvDDRgUu1VOd+TqCEGxBINycHsmRA/YTfEb+p7NnkUqLSsW3cFKamvRsxCsa7 BgYVKYZ5g/4YF/Jo1tIaVfc62WI21eknZaqpmlXscYNKU1WS/UbtcjKdBzOqN2IiniGw nO4aV/u7YRgBpG5w0ri75KsOSmprIou/LbX55fSi4WucbXMsu7THrUyf9dYrfkFYUV0Q bj4xxWimFTk2Mn8tQef2egBP4J02S+UPfiHeUzL2ekhRJGl1q7lfTNgVLOT+MnwKxdM6 HQJaD8r7O99mOwD4S9rsVaqKgmuKv3nJ20Bl9kofaCANsGE7mF1KYmGPWqbAeuqtlWAI VmgA==
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=qlkXftS7q+35n4GqSd1LUtWj+nBgUd5vIzypeeluhKI=; b=D/ExoNzdJKV6etHs9nljjSiqeRla1nYeUgsXWdA4s6tOecb3ykhYb3r6B5TR4xy7Ts YaKT6TfXw7m/x/fzeDNxH03hfrN56iHUxDmdkZ0B3gMX/F98LB8W/t+vqZjCWEQQeMMP r3Yr0ht1pWOHiQjAPEjqfAjl42S4v6wyXmOltRGQDhwuEvTTJraVorRHB8JA0J/Ks/J9 hQ256rSmNQ36wYpU3Ac58Xo8I0ab+Xv4hfd5QOs5kQPH6GYKg834wDSi4isPISKuTASz MrgenIG/t75oKfwXNE1YAfmcA6YwqrzQsD4UzrFSpsUIE/HI0R4UZRpzS07qCXiIxqzM 3qzw==
X-Gm-Message-State: APt69E1hprJ6S2hZRy85HDzEdTnAuUprWfR4nr+WfnL44Y05ZmKfQ+Uo 9DGc1R7ouOVUyZ3gnZii9MkT+ZEBdSafaAtmd2s=
X-Google-Smtp-Source: ADUXVKIW1V4g5cbJFJ0+rUEGe5qogx4iCZw5f9KPyechFolyZOEKjpDn3tv9oJoSbwnUgZC84LdToa8JXO+Hjw8WbKE=
X-Received: by 2002:a2e:95d5:: with SMTP id y21-v6mr468807ljh.90.1528950858685; Wed, 13 Jun 2018 21:34:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a2e:8614:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 21:34:18 -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 10:04:18 +0530
Message-ID: <CACsjV1z3GVT7vAYDLs1SMU_VXtaZvYBpLv-RSDj3UxrLrL879A@mail.gmail.com>
To: Chris Newman <chris.newman@oracle.com>
Cc: imapext@ietf.org
Content-Type: multipart/mixed; boundary="000000000000cfd31a056e929c80"
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/eHlBNhXitdXgf_k5bPPPtVxsnnE>
X-Mailman-Approved-At: Thu, 14 Jun 2018 08:08:48 -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:34:24 -0000

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>; 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
>>
>