Re: [lemonade] [Lemonade] Forwarded Flag support for Gmail account

Jan Kundrát <jkt@flaska.net> Wed, 16 July 2014 16:21 UTC

Return-Path: <jkt@flaska.net>
X-Original-To: lemonade@ietfa.amsl.com
Delivered-To: lemonade@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 115371A000F for <lemonade@ietfa.amsl.com>; Wed, 16 Jul 2014 09:21:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.25
X-Spam-Level:
X-Spam-Status: No, score=-2.25 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, MIME_QP_LONG_LINE=0.001, RP_MATCHES_RCVD=-0.651] autolearn=ham
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 dGL215Zvnnjs for <lemonade@ietfa.amsl.com>; Wed, 16 Jul 2014 09:21:26 -0700 (PDT)
Received: from latimerie.flaska.net (latimerie.flaska.net [IPv6:2a02:2b88:2:1::4a7:333]) (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 5C6F51A0004 for <lemonade@ietf.org>; Wed, 16 Jul 2014 09:21:26 -0700 (PDT)
Received: by latimerie.flaska.net (Postfix, from userid 1000) id 4F6F361678; Wed, 16 Jul 2014 18:21:22 +0200 (CEST)
From: Jan Kundrát <jkt@flaska.net>
To: lemonade@ietf.org
Date: Wed, 16 Jul 2014 18:21:18 +0200
User-Agent: Trojita/v0.4.1-291-g36605d4; Qt/4.8.5; X11; Linux;
MIME-Version: 1.0
Message-ID: <68a72087-13a8-41aa-a9b1-a748e172cca2@flaska.net>
In-Reply-To: <02454F842DD7B449B96715A2AD90C0361A1B1FBF@exMB5.telecom.sna.samsung.com>
References: <02454F842DD7B449B96715A2AD90C0361A1B1ED5@exMB5.telecom.sna.samsung.com> <CAKHUCzyELWGCRSVX7mtTkv=MSRa2RPG=PT4Pa-2TWqz63oLneA@mail.gmail.com> <02454F842DD7B449B96715A2AD90C0361A1B1F51@exMB5.telecom.sna.samsung.com> <CAKHUCzy-ntqTt19HoxffVhOLo0cDJaNW3PpeyHvv+r8PTt65gg@mail.gmail.com> <02454F842DD7B449B96715A2AD90C0361A1B1FBF@exMB5.telecom.sna.samsung.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/lemonade/i6XLtLg20yxV7pjDNrbRV4VTHwA
Subject: Re: [lemonade] [Lemonade] Forwarded Flag support for Gmail account
X-BeenThere: lemonade@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Enhancements to Internet email to support diverse service enivronments <lemonade.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lemonade>, <mailto:lemonade-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/lemonade/>
List-Post: <mailto:lemonade@ietf.org>
List-Help: <mailto:lemonade-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lemonade>, <mailto:lemonade-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Jul 2014 16:21:29 -0000

On Wednesday, 16 July 2014 18:04:27 CEST, Jayantheesh S B wrote:
> So, to differentiate between supported and unsupported IMAP 
> server, we decide based on the PERMANENTFLAG response contains 
> “FORWARDED” flag or not.
>
> Is this the right approach ?

Nope.

> This approach works with all the 
> available servers like AOL, YAHOO, Telia, Isode etc. But Gmail 
> behaves differently.

Wrong.

> If the above approach is not correct to decide this feature is 
> supported by the IMAP server, How client can decide the 
> availability of this feature in server ?

As Dave have told you, if the server says in the PERMANENTFLAGS response 
that it accepts \*, it means that you can create arbitrary flags. Yes, this 
means that you can create a flag named "$Forwarded".

Of course if the PERMANENTFLAGS already contains $Forwarded, you can create 
that flag even when the server does not say that you can create arbitrary 
flags. You can also asume the same when there is no PERMANENTFLAGS 
response, btw.

Hope this helps. It's also described in 
http://tools.ietf.org/html/rfc3501#page-64 . Have you read that? Do you 
understand the textual description of the PERMANENTFLAGS response code?

With kind regards,
Jan

-- 
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/