[imp] Strip Attachment not working in Horde Webmail 5.0.2 (IMP 6.0.2)

T A tazza70 at hotmail.com
Fri Jan 4 14:13:22 UTC 2013


Hi,

I'm in the process of upgrading from Horde/IMP H3 to the latest versions. This is all going on a new server, built and configured from scratch: CentOS 6.3, Apache 2.2.15, PHP 5.3.3, Dovecot 2.1.1, Postfix 2.6.6.

I've successfully installed Horde Webmail 5.0 about a month ago (through pear) and then upgraded to 5.0.2 (again through pear) today. Most of it is working fine, but there's one annoying bug that I can't seem to resolve: strip attachment functionality is not working.

In 5.0, it wasn't returning a clear error message - it was actually doubling up on the attachments every time you try to delete it.

In 5.0.2, it's not working and I'm getting an actual error: An error occured (sic) while attempting to strip the attachment. This happens in both Dynamic and Basic views.

When I enable debug logging in Horde and IMP (IMAP), I get the errors below.

I've also tried the following combinations:
1. Connecting Horde 5.0.2 to my current server running H3 + Dovecot 1.0.7 - I can't strip the attachments
2. Connecting Thunderbird v17 with the new server (Dovecot 2.1.1) - I can strip the attachments
3. Connecting Horde H3 from the current server to the new server (Dovecot 2.1.1) - I can strip the attachments

So, the issue seems to be somewhere in the new version of Horde (Horde Imap Client 2.4.1).

Does anyone have any ideas about where to look for the solution to this problem?

Thanks,
Tazza


horde log:
------------
2013-01-04T22:52:10+11:00 DEBUG: HORDE [imp] Load config file (nls.php; app: horde) [pid 23518 on line 476 of "/usr/share/pear/Horde.php"]
2013-01-04T22:52:10+11:00 DEBUG: HORDE [imp] Load config file (conf.php; app: imp) [pid 23518 on line 476 of "/usr/share/pear/Horde.php"]
2013-01-04T22:52:10+11:00 DEBUG: HORDE [imp] Load config file (hooks.php; app: imp) [pid 23518 on line 476 of "/usr/share/pear/Horde.php"]
2013-01-04T22:52:12+11:00 ERR: HORDE [imp] IMAP error reported by server. Can't save a zero byte message. [pid 23518 on line 390 of "/var/www/html/horde/imp/lib/Imap.php"]
2013-01-04T22:52:12+11:00 DEBUG: HORDE  1. Horde_Core_Ajax_Application->doAction() /var/www/html/horde/services/ajax.php:56
 2. call_user_func() /usr/share/pear/Horde/Core/Ajax/Application.php:155
 3. IMP_Ajax_Application_Handler_Dynamic->stripAttachment()
 4. IMP_Message->stripPart() /var/www/html/horde/imp/lib/Ajax/Application/Handler/Dynamic.php:812
 5. IMP_Imap->append() /var/www/html/horde/imp/lib/Message.php:589
 6. IMP_Imap->__call() /var/www/html/horde/imp/lib/Message.php:589
 7. Horde_Core_Ajax_Application->doAction() /var/www/html/horde/services/ajax.php:56
 8. call_user_func() /usr/share/pear/Horde/Core/Ajax/Application.php:155
 9. IMP_Ajax_Application_Handler_Dynamic->stripAttachment()
10. IMP_Message->stripPart() /var/www/html/horde/imp/lib/Ajax/Application/Handler/Dynamic.php:812
11. IMP_Imap->append() /var/www/html/horde/imp/lib/Message.php:589
12. IMP_Imap->__call() /var/www/html/horde/imp/lib/Message.php:589
13. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:388
14. Horde_Imap_Client_Base->append()
15. Horde_Imap_Client_Socket->_append() /usr/share/pear/Horde/Imap/Client/Base.php:1803
16. Horde_Imap_Client_Socket->_sendLine() /usr/share/pear/Horde/Imap/Client/Socket.php:1560
17. Horde_Imap_Client_Socket->_getLine() /usr/share/pear/Horde/Imap/Client/Socket.php:3668

2013-01-04T22:52:12+11:00 DEBUG: HORDE [imp] An error occured while attempting to strip the attachment. [pid 23518 on line 27 of "/usr/share/pear/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]

imap.log:
-----------
>> Sat, 05 Jan 2013 00:18:26 +1100
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 STARTTLS
S: 1 OK Begin TLS negotiation now.
C: [LOGIN Command - username: user at example.com]
S: 2 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SEARCH=FUZZY SPECIAL-USE QUOTA] Logged in
C: 3 ENABLE QRESYNC
S: * ENABLED QRESYNC
S: 3 OK Enabled.
C: 4 SELECT "INBOX" (QRESYNC (1229731371 35 4458,19447,19453,19456,19891,20310,20450,20774,20846,21029,21061,21064,21186,21210,21217,21219:21220,21236:21239))
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded \*)] Flags permitted.
S: * 21 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1229731371] UIDs valid
S: * OK [UIDNEXT 21240] Predicted next UID
S: * OK [HIGHESTMODSEQ 35] Highest
S: 4 OK [READ-WRITE] Select completed.
>> CACHE: Retrieved messages (mailbox: INBOX; UIDs: 21239)
>> CACHE: Retrieved messages (mailbox: INBOX; UIDs: 21239)
C: 5 UID FETCH 21239 (INTERNALDATE)
S: * 21 FETCH (UID 21239 INTERNALDATE "05-Jan-2013 00:17:47 +1100")
S: 5 OK Fetch completed.
>> CACHE: Stored messages (mailbox: INBOX; UIDs: 21239)
C: 6 UNSELECT
S: 6 OK Unselect completed.
C: 8 STATUS "INBOX" (UIDVALIDITY)
S: * STATUS "INBOX" (UIDVALIDITY 1229731371)
S: 8 OK Status completed.
C: 9 EXAMINE "INBOX" (QRESYNC (1229731371 35 4458,19447,19453,19456,19891,20310,20450,20774,20846,21029,21061,21064,21186,21210,21217,21219:21220,21236:21239))
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 21 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1229731371] UIDs valid
S: * OK [UIDNEXT 21240] Predicted next UID
S: * OK [HIGHESTMODSEQ 35] Highest
S: 9 OK [READ-ONLY] Select completed.
C: 10 UID FETCH 21239 (BODY.PEEK[])
S: * 21 FETCH (UID 21239 BODY[] {4119}
S: [LITERAL DATA: 4119 bytes]
S: )
S: 10 OK Fetch completed.
C: 11 UID FETCH 21239 (BODY.PEEK[])
S: * 21 FETCH (UID 21239 BODY[] {4119}
S: [LITERAL DATA: 4119 bytes]
S: )
S: 11 OK Fetch completed.
C: 12 UID FETCH 21239 (BODY.PEEK[])
S: * 21 FETCH (UID 21239 BODY[] {4119}
S: [LITERAL DATA: 4119 bytes]
S: )
S: 12 OK Fetch completed.
C: 7 APPEND "INBOX" (\seen) "5-Jan-2013 00:17:47 +1100" {0+}
C: [LITERAL DATA: 0 bytes]
C:
S: 7 NO Can't save a zero byte message.
C: 13 LOGOUT
S: * BYE Logging out
S: 13 OK Logout completed.

imp/config/backends.php
-----------------------------
$servers['imap'] = array(
    // ENABLED by default
    'disabled' => false,
    'name' => 'IMAP Server',
    'hostspec' => 'localhost',
    'hordeauth' => false,
    'protocol' => 'imap',
    'port' => 143,
    // Plaintext logins are disabled by default on IMAP servers (see RFC 3501
    // [6.2.3]), so TLS is the only guaranteed authentication available by
    // default.
    'secure' => 'tls',
    'maildomain' => '',
    'debug' => '/var/log/imap.log',
    'smtp' => array(
    //    'auth' => true,
    //    'localhost' => 'localhost',
    //    'host' => 'smtp.example.com',
    //    'password' => null,
    //    'port' => 25,
    //    'username' => null
    ),
    'cache' => true,
);


 		 	   		  


More information about the imp mailing list