6.0.0-beta1
7/10/25

[#1057] MIME.php Choking on Improper Headers
Summary MIME.php Choking on Improper Headers
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners Horde Developers (at)
Requester brandon.uhlman (at) ssrlibrary (dot) ca
Created 01/03/2005 (7493 days ago)
Due
Updated 11/30/2005 (7162 days ago)
Assigned 01/18/2005 (7478 days ago)
Resolved 01/20/2005 (7476 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/30/2005 04:27:37 PM bruno (at) livernais (dot) org Comment #12 Reply to this comment
I've just hacked my $PEAR/Mail/RFC822.php as show below. It's a bit 
different and works well!!!



     function _validateAddress($address)

     {

        if ($address['address'] == 'Recipient list not shown:' ||

            $address['address'] == '"Recipient list not shown"@' ||

            $address['address'] == 'undisclosed-recipients:') {

             $address['address'] = 'undisclosed-recipients';

             $address['group'] = false;

        }




05/08/2005 03:26:00 AM beaujolais (at) tht (dot) net Comment #11 Reply to this comment
I had a typo there, it's undisclosed-recipients:
05/08/2005 03:25:11 AM beaujolais (at) tht (dot) net Comment #10 Reply to this comment
Is tehre a better resolution to this issue?

My e-mails are choking on ndisclosed-recipients:



thx
02/03/2005 09:40:35 PM rschlesi (at) opentechinc (dot) com Comment #9 Reply to this comment
Here is a fix (read: hack) for this problem.  This is not a permanent 
fix and is only intended to demonstrate what I did to remove the 
errors until Horde/IMP is fixed.  Use at your own risk.



In $(pear_dir)/Mail/RFC822.php in function _validateAddress add these 
lines to the beginning before the first line (note the single and 
double quotes together on the second line):

if( $address['address'] == 'Recipient list not shown:' ||

$addres['address'] == '"Recipient list not shown"@' )

{

$address['address'] = 'undisclosed-recipients';

$address['group'] = false;

}

(rest of function goes here)
02/01/2005 08:44:05 PM rschlesi (at) opentechinc (dot) com Comment #8 Reply to this comment
Forgot to include versions:



Apache 2.0.50

Php 5.0.3  (Can't find documentation to find out when php 5 
was/is/will be supported)

Horde 3.0.2

IMP H3 (4.0.1)



Ryan
02/01/2005 08:32:45 PM rschlesi (at) opentechinc (dot) com Comment #7 Reply to this comment
I have this problem as well.



When a message containing a to field like "Recipient list not shown"@ 
appears, I get the errors:

Notice: Trying to get property of non-object in 
/var/www/dev/horde/lib/Horde/MIME.php on line 664



Notice: Trying to get property of non-object in 
/var/www/dev/horde/lib/Horde/MIME.php on line 666



Notice: Trying to get property of non-object in 
/var/www/dev/horde/lib/Horde/MIME.php on line 666



These errors appear on the message index as well as message detail 
pages (those 3 per offending message).
01/20/2005 03:24:25 PM Chuck Hagenbuch Comment #6
State ⇒ Resolved
Reply to this comment
I don't see any errors with that message.
01/18/2005 02:50:31 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
01/18/2005 02:34:01 PM spam (at) tnonline (dot) net Comment #5
New Attachment: email.MSG Download
Reply to this comment
I found an email that causes this error to occur always. No matter 
which mail folder I put it in.
01/13/2005 03:28:04 AM Chuck Hagenbuch Comment #4
State ⇒ Feedback
Reply to this comment
And those notices, with line numbers, are ... ?
01/12/2005 01:47:23 AM mwhitlock (at) whitsoftdev (dot) com Comment #3 Reply to this comment
Nope, still does it in Horde 3.0.2 and IMP 4.0.1, and now there are 
three notices for every message in the inbox with a mailing list "To" 
recipient.
01/04/2005 02:54:12 AM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in HEAD; will appear in Horde 3.0.1.
01/04/2005 02:49:24 AM Michael Slusarz State ⇒
 
01/03/2005 04:00:43 PM brandon (dot) uhlman (at) ssrlibrary (dot) ca Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ MIME.php Choking on Improper Headers
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
One gets the following notice



   Notice: Trying to get property of non-object in 
/usr/local/lib/php/Horde/MIME.php on line 664



twhen viewing a mailbox containing messages with improperly formatted 
To: headers (specifically To: undisclosed-recipients: or something 
similar). The notice is generated twice for each non-compliant message.

Saved Queries