MBOX-Line: From arnt at gulbrandsen.priv.no  Wed Jan 29 06:55:06 2014
To: imap-protocol@u.washington.edu
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Date: Fri Jun  8 12:34:52 2018
Subject: [Imap-protocol] ABNF Question regarding parsing of BODYSTRUCTURE
	FETCH responses
In-Reply-To: <b0ab0850338d4c523024e7c6cd274a50@xylon.de>
References: <b0ab0850338d4c523024e7c6cd274a50@xylon.de>
Message-ID: <5ceef93d-2727-462b-8ddb-fc02344c6a72@gulbrandsen.priv.no>

On Wednesday, January 29, 2014 2:57:41 PM CEST, xims@xylon.de wrote:
> which to me seems as after every body a SP and media-subtype 
> etc should follow. So I parse the first body-type-1part 
> correctly, but then my parser expects a space afterwards. Where 
> did I go wrong when following the ABNF rules or what am I 
> missing?

1*body means "one or more instances of body". The SP media-subtype matches 
things like ' "alternative"' and ' "related"' in your example.

Arnt


