Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.03.19;
Скачать: CL | DM;

Вниз

POP3 сервер возвращает неправильные размеры содержимого письма   Найти похожие ветки 

 
cyborg ©   (2005-12-09 16:03) [0]

Странно очень.
Например на одном письме команда LIST возвращает +OK 1 4006, команда RETR этого же письма +OK 3952 octets, полученные данные письма имеют размер 4 012 байт.

Почему такое случается? Непонятно.

Даже не знаю в какой раздел написать.


 
umbra ©   (2005-12-09 16:52) [1]

В RFC  1939 (http://www.rfc-editor.org/cgi-bin/rfcdoctype.pl?loc=RFC&letsgo=1939&type=http&file_format=txt)

написано

  It is important to note that the octet count for a message on the
  server host may differ from the octet count assigned to that message
  due to local conventions for designating end-of-line.  Usually,
  during the AUTHORIZATION state of the POP3 session, the POP3 server
  can calculate the size of each message in octets when it opens the
  maildrop.  For example, if the POP3 server host internally represents
  end-of-line as a single character, then the POP3 server simply counts
  each occurrence of this character in a message as two octets.  Note
  that lines in the message which start with the termination octet need
  not (and must not) be counted twice, since the POP3 client will
  remove all byte-stuffed termination characters when it receives a
  multi-line response.


 
cyborg ©   (2005-12-09 17:05) [2]

Мда, я думал сделали как лучше, а получилось как всегда :). Значит полагаться на эти данные при приёме не нужно.
Понятно, спасибо.



Страницы: 1 вся ветка

Текущий архив: 2006.03.19;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.046 c
15-1139828884
Megabyte
2006-02-13 14:08
2006.03.19
Тема работы в аспирантуре


6-1133221717
Volf_555
2005-11-29 02:48
2006.03.19
Как в Delphi изменить IP и MAC-адреса сетевой карты?


5-1127730027
DimaBr
2005-09-26 14:20
2006.03.19
Пункт меню редактора компонента 2


1-1139925539
BFG9k
2006-02-14 16:58
2006.03.19
Событие с несколькими обработчиками


3-1138095220
dtm
2006-01-24 12:33
2006.03.19
Кодировка поля таблицы типа "text" - can not transliterate