Richard Bang writes:
Hi,

Would the following be considered a valid request

BODY.PEEK[1.1,1.4,1.3,1.2]<25...647>

No. The bit inside [] is not a section-spec, and it should be "." not "...".


However, you can do something roughly equvalent (from memory, might be off a little):

a FETCH 1 (BODY.PEEK[1.1]<25.647> BODY.PEEK[1.4]<25.647>)

More realistically, you might say e.g. prefetch the subject and first 4k of the message body using a command such as this:

a FETCH 1 (BODY.PEEK[HEADER.FIELDS[subject]] BODY.PEEK[1]<0.4096>

(Note that you'd usually use e.g. FETCH BODYSTRUCTURE to get the message's MIME structure before you start telling the server about bodypart numbers and lengths.)

--Arnt

Reply via email to