[imp] problem with stripping Attachment from a mail

Michael M Slusarz slusarz at horde.org
Fri Dec 7 21:59:55 UTC 2012


Quoting ANANT S ATHAVALE <asa at isac.gov.in>:

> I enabled debugging IMP IMAP debug.  What I think below is the relevent info.
>
> [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox

Irrelevant.  This affects caching but doesn't have anything to do with  
your issue.

>>> I get error: Unexpectedly disconnected from the mail server. But,  
>>> a new mail gets generated with stripped attachment.  The original  
>>> mail remains as it is (which should have got deleted).  This also  
>>> results in sudden spike in CPU usage.

>>> I get the following errors in Horde logs:
>>>
>>> PHP error: fwrite(): send of 2 bytes failed with errno=32 Broken  
>>> pipe on the line 3923 of  
>>> /usr/share/pear/Horde/Imap/Client/Socket.php
>>>
>>> ERR: HORDE [imp] Mail server closed the connection unexpectedly.

Yeah - looks like your IMAP server is broken.  This is in your logs:

C: 5 APPEND INBOX (\seen) "5-Dec-2012 17:30:14 +0530" CATENATE (URL  
/INBOX;UIDVALIDITY=1246769611/;UID=185840/;SECTION=HEADER TEXT {31+}
C: [LITERAL DATA - 31 bytes]
C:  URL /INBOX;UIDVALIDITY=1246769611/;UID=185840/;SECTION=1.MIME URL  
/INBOX;UIDVALIDITY=1246769611/;UID=185840/;SECTION=1 TEXT {31+}
C: [LITERAL DATA - 31 bytes]
C:  TEXT {135+}
C: [LITERAL DATA - 135 bytes]
C:  TEXT {33+}
C: [LITERAL DATA - 33 bytes]
C: )
S: 5 OK [APPENDUID 1246769611 185860] Completed

So a message was added to your INBOX.  However, the INBOX is later  
attempted to be selected:

C: 8 SELECT INBOX
ERROR: IMAP read/timeout error.
C: 9 LOGOUT
ERROR: Server closed the connection.

For some reason your IMAP server is crashing when the INBOX is  
selected.  Not much we can do when the server is flat out crashing  
without providing an error message.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list