Hello Manuel,
Saturday, April 23, 2005, 8:35:45 AM, you wrote:

> Hey Allie,

> just now (on 04/23/2005 at 15:18) [EMAIL PROTECTED] wrote:

>> If I select a message with a large attachment, the message
>> body loads alone.
> <snip>
>> Finally, as mentioned in a previous message, there's the
>> ability of downloading only one attachment at a time that
>> should be there.

> I agree in all points, Allie.
> The way Mulberry (I know you have it) handles this is great. One can
> selectively download an attachment and more than that, the size is
> shown before downloading.

I doubt it'd be that difficult.  Just add BODYSTRUCTURE to the IMAP
call when fetching the original message information.  That'd also
quickly establish if there were attachments, and if there are pgp/mime
parts too... For example:

A01 UID FETCH 30066 (BODYSTRUCTURE BODY[HEADER.FIELDS (DATE FROM)])

* 160 FETCH (UID 30066 BODYSTRUCTURE ((("text" "plain" ("charset" "us-ascii") 
NIL NIL "quoted-printable" 528 22 NIL NIL NIL)("text" "html" ("charset" 
"us-ascii") NIL NIL "quoted-printable" 3836 122 NIL NIL NIL) "alternative" 
("boundary" "----_=_NextPart_002_01C545BF.03350AD0") NIL NIL)("image" "jpeg" 
("name" "pearls.JPG") NIL "pearls.JPG" "base64" 50500 NIL ("attachment" 
("filename" "pearls.JPG")) NIL) "mixed" ("boundary" 
"----_=_NextPart_001_01C545BF.03350AD0") NIL NIL) BODY[HEADER.FIELDS ("DATE" 
"FROM")] {97}
Date: Wed, 20 Apr 2005 10:38:34 -0500
From: [name protected]


)
OK FETCH completed.

Shows that email consists of one plain text part, one html part, and
one attachment (an image named perls.jpg), and if I remember my
bodystructure stuff... I think the 50500 is the size of the file.
BODYSTRUCTURE gives me a headache after a while :)  Of course, I could
be way off the mark, and they could already be doing this, I've not
looked at the output from an imap conversation in a while, and I saw
they introduced a few features that might mean they are already doing
this.

> The only way to "guess" the size of an attachment is to view the whole
> message size... :/

It's all in the BODYSTRUCTURE ;)

> When retrieving an attachment it would be great to go on reading. This
> is not possibly because of the "download progress bar" which shows up
> and "replaces" the message.
> I mentioned this a long time ago, but didn't get any response.
> mid:[EMAIL PROTECTED]

  You could, if your server supports it, add more connections. Under
  Account Properties, there is an IMAP Fine Tune where you can
  increase the number of connections. There is even an option to
  dedicate a connection to reading messages, but if they wrote the
  whole connection stuff in a smart manor, it'd use whichever
  connection is free, and always reserve one for reading.

-- 
Jonathan Angliss
<[EMAIL PROTECTED]>

Attachment: pgpky6RjKgR95.pgp
Description: PGP signature

________________________________________________________
 Current beta is 3.0.9.18 Return | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to