<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>5763</bug_id>
          
          <creation_ts>2004-12-21 19:12:14 +0300</creation_ts>
          <short_desc>Patch which preven broken socket error in MS Outlook on empty messages</short_desc>
          <delta_ts>2005-07-31 06:17:29 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>courier-imap</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel S. Khmelinsky">hmepas</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>lakostis</cc>
    
    <cc>mithraen</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20639</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel S. Khmelinsky">hmepas</who>
    <bug_when>2004-12-21 19:12:14 +0300</bug_when>
    <thetext>Есть такая проблема, если на сервере под управлением courier-imap лежит письмо с
пустым телом сообщения, то MS Outlook (также было замечено с The Bat!) при
попытке получить это сообщение пишет что &quot;Связь с сервером была неожиданно
прервана....&quot; соответственно уже полученные сообщения с сервера не удаляются и
при повторной попытке доставить почту забираются заного. В итоге у юзверя полный
ящик одинаковых сообщений. Лечится все это дело простейшим патчем

$ cat ../SOURCES/courier-imap-3.0.7-emptymessage.patch 
--- courier-imap-3.0.7/imap/pop3dserver.c.orig  2004-12-21 18:07:44 +0300
+++ courier-imap-3.0.7/imap/pop3dserver.c       2004-12-21 18:07:56 +0300
@@ -681,7 +681,7 @@
                exit(1);
        }
        if (lastc != &apos;\n&apos;)      printf(&quot;\r\n&quot;);
-       printf(&quot;.\r\n&quot;);
+       printf(&quot;\r\n.\r\n&quot;);
        fflush(stdout);
        fclose(f);
        if (lptr)       return;

srpm моей сборки с приложенным патчем можно скачать тут:
http://www.hmepas.yauza.ru/courier-imap-3.0.7-alt2.2.src.rpm

Отдельно спек и патч:
http://www.hmepas.yauza.ru/courier-imap3.spec
http://www.hmepas.yauza.ru/courier-imap-3.0.7-emptymessage.patch

У меня работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22911</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Smirnov">mithraen</who>
    <bug_when>2005-04-01 13:46:37 +0400</bug_when>
    <thetext>Есть возражения против NMU?
Если нет, залью сегодня же.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22912</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Lebkov">dlebkov</who>
    <bug_when>2005-04-01 13:53:37 +0400</bug_when>
    <thetext>Оопс, совсем забыл про этот патч ... :( На выходных сделаю новую сборку и
отправлю в Сизиф.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22988</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Lebkov">dlebkov</who>
    <bug_when>2005-04-04 02:57:50 +0400</bug_when>
    <thetext>В incoming/Sisyphus отправлена новая сборка 4.0.2-alt3 с соответствующим патчем.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>