I am now implementing (server / client) based on IMAP2 protocol RFC 1064 through SSL TCP / IP sockets and can not know how to calculate RFC822.SIZE in FETCH command and without using JavaMail API - IMAP Servers. If possible explanation or way to calculate, thanks.
Asked
Active
Viewed 244 times
0
-
What are your messages? Are they files? – Max Jun 23 '22 at 00:32
-
Im export my email messages in (.pst) file format – Ahmad Yhia Jun 23 '22 at 05:02
-
1RFC 1064? Really? Most people find 3501 preferable. I don't think anyone here will be able to help you with 1064, that really is obsolete. – arnt Jun 23 '22 at 08:46
-
The questions how to calculate the rfc822.size !! In rfc 1064 and rfc 3501 the fetch command will return the rfc822.size – Ahmad Yhia Jun 23 '22 at 11:34
-
2RFC822.SIZE is just the number of bytes in the message – user253751 Jun 23 '22 at 11:53
-
As @user253751 says, calculate what you would send for the RFC822 item (which is just the entire message, headers and all), and take the byte length of that. No parsing required. – Max Jun 23 '22 at 15:03