6.0.0-beta1
7/10/25

[#8767] errors opening a message
Summary errors opening a message
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 12/11/2009 (5690 days ago)
Due
Updated 12/15/2009 (5686 days ago)
Assigned 12/11/2009 (5690 days ago)
Resolved 12/15/2009 (5686 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/15/2009 10:07:42 AM rsalmon (at) mbpgroup (dot) com Comment #10 Reply to this comment
Well that's embarrassing.  We've been searching for '/' as the 
escape character instead of '\' for at least a year.  Luckily, most 
IMAP servers use literal strings instead of quoted strings.  Anyway, 
this has been fixed.
works great, thanks.
12/15/2009 09:38:57 AM Michael Slusarz Assigned to Michael Slusarz
 
12/15/2009 09:38:49 AM Michael Slusarz Comment #9
Version ⇒ Git master
Queue ⇒ Horde Framework Packages
State ⇒ Resolved
Reply to this comment
Well that's embarrassing.  We've been searching for '/' as the escape 
character instead of '\' for at least a year.  Luckily, most IMAP 
servers use literal strings instead of quoted strings.  Anyway, this 
has been fixed.
12/15/2009 08:31:58 AM rsalmon (at) mbpgroup (dot) com Comment #7
New Attachment: imap.log Download
Reply to this comment
To enable debugging, see instructions contained in 
imp/config/servers.php (the 'debug' config parameter).
Ah, I wasn't aware of this info. Is it possible to add a comment about 
this in imp/docs/INSTALL ?
Debugging should not be enabled on a production server,   
Attach/post only the portion of the log that directly deals with the 
problem reported (it may be simplest to clear the log file and then 
perform the event that causes the error).
I've attached the imap log when opening message email2.elm
we use courier-imap-4.3/php-5.2.11

I have an old cvs copy (07 oct 2008) of Horde/IMP and I don't have any 
issue opening those messages.

12/14/2009 07:12:18 PM Michael Slusarz Comment #6 Reply to this comment
             [message-id] => Ronan NIL
This indicates that there is an issue either with your IMAP server, or 
with the way we are parsing the IMAP data.

To further debug this issue, we need details of the IMP -> IMAP/POP 
communication.

To enable debugging, see instructions contained in 
imp/config/servers.php (the 'debug' config parameter).

Debugging should not be enabled on a production server,   Attach/post 
only the portion of the log that directly deals with the problem 
reported (it may be simplest to clear the log file and then perform 
the event that causes the error).
12/14/2009 03:38:44 PM rsalmon (at) mbpgroup (dot) com Comment #5
New Attachment: Capture.png Download
Reply to this comment
cache is disable, and I clear /tmp folder all the time.

using email2.elm, If I reformat the subject header (see below), 
warning/error is gone.
-- Subject: Re: Nouvelle Offre commerciale "Busines
++ Subject: Re: Nouvelle Offre commerciale Busines
I can't read the subject of email.elm as it is encoded, but I'm pretty 
sure it is the same issue.

I've attached a screenshot of what it looks like. It seems that IMP is 
having trouble processing the subject.

I've added a print_r($ob) in imp/mailbox.php line 731 (just before the 
try[flags]) and here is the output for email2.elm :
Array
(
     [uid] => 3
     [seq] => 1
     [envelope] => Array
         (
             [date] => Tue, 01 Dec 2009 15:54:56 +0100
             [subject] => Re: Nouvelle Offre commerciale \
             [in-reply-to] => example.com)) ((
             [message-id] => Ronan NIL
             [from] => Array
                 (
                 )

             [sender] => Array
                 (
                 )

             [reply-to] => Array
                 (
                 )

             [to] => Array
                 (
                 )

             [cc] => Array
                 (
                 )

             [bcc] => Array
                 (
                 )

         )

     [mailbox] => INBOX.Drafts
     [preview] =>

Re-bonjour,


Merci,
Ronan
XXX

toto.tito@example.com a écrit :

[Show Quoted Text - 16 lines]
     [previewcut] => 1
)


12/14/2009 03:20:28 PM rsalmon (at) mbpgroup (dot) com Comment #4 Reply to this comment
Works fine here.  You might want to try clearing the imp imap cache, 
if using that.  Or else check to see if your IMAP server is 
returning bad information.  Otherwise, you will need to debug 
yourself and provide information on what these variables are 
actually set to on your installation.
cache is disable, and I clear /tmp folder all the time.

using email2.elm, If I reformat the subject header (see below), 
warning/error is gone.
-- Subject: Re: Nouvelle Offre commerciale "Busines
++ Subject: Re: Nouvelle Offre commerciale Busines


12/11/2009 05:13:30 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
Works fine here.  You might want to try clearing the imp imap cache, 
if using that.  Or else check to see if your IMAP server is returning 
bad information.  Otherwise, you will need to debug yourself and 
provide information on what these variables are actually set to on 
your installation.
12/11/2009 09:35:42 AM rsalmon (at) mbpgroup (dot) com Comment #2
New Attachment: email2.elm Download
Reply to this comment
I've attach a second email. I'm getting different errors with this one :

** IMP messages list  :
Warning: array_merge() [function.array-merge]: Argument #1 is not an 
array in /var/www/html/horde/imp/mailbox.php on line 734
** IMP open message :
Warning: reset() [function.reset]: Passed variable is not an array or 
object in /var/www/html/horde/imp/message.php on line 216
Fatal error: Call to a member function getValue() on a non-object in 
/var/www/html/horde/imp/message.php on line 242
** DIMP messages list :
PHP Warning:  in_array() [<a 
href='function.in-array'>function.in-array</a>]: Wrong datatype for 
second argument in /var/www/html/horde/imp/lib/Views/ListMessages.php 
on line 314, referer: http://127.0.0.1/horde/imp/
PHP Fatal error:  Call to a member function getValue() on a non-object 
in /var/www/html/horde/imp/lib/Views/ListMessages.php on line 336, 
referer: http://127.0.0.1/horde/imp/


12/11/2009 08:46:56 AM rsalmon (at) mbpgroup (dot) com Comment #1
New Attachment: email.elm Download
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ errors opening a message
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
I get the following warning when opening the mailbox :
Warning: array_merge() [function.array-merge]: Argument #1 is not an 
array in /var/www/html/horde/imp/mailbox.php on line 734


I get the following error when opening the email :
Warning: reset() [function.reset]: Passed variable is not an array or 
object in /var/www/html/horde/imp/message.php on line 216
Fatal error: Call to a member function getValue() on a non-object in 
/var/www/html/horde/imp/message.php on line 242

Saved Queries