6.0.0-git
2019-04-21

[#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 2005-01-03 (5221 days ago)
Due
Updated 2005-11-30 (4890 days ago)
Assigned 2005-01-18 (5206 days ago)
Resolved 2005-01-20 (5204 days ago)
Milestone
Patch No

History
2005-11-30 16:27:37 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;

        }




2005-05-08 03:26:00 beaujolais (at) tht (dot) net Comment #11 Reply to this comment
I had a typo there, it's undisclosed-recipients:
2005-05-08 03:25:11 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
2005-02-03 21:40:35 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)
2005-02-01 20:44:05 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
2005-02-01 20:32:45 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).
2005-01-20 15:24:25 Chuck Hagenbuch Comment #6
State ⇒ Resolved
Reply to this comment
I don't see any errors with that message.
2005-01-18 14:50:31 Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
2005-01-18 14:34:01 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.
2005-01-13 03:28:04 Chuck Hagenbuch Comment #4
State ⇒ Feedback
Reply to this comment
And those notices, with line numbers, are ... ?
2005-01-12 01:47:23 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.
2005-01-04 02:54:12 Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in HEAD; will appear in Horde 3.0.1.
2005-01-04 02:49:24 Michael Slusarz State ⇒
 
2005-01-03 16:00:43 brandon (dot) uhlman (at) ssrlibrary (dot) ca Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ MIME.php Choking on Improper Headers
Queue ⇒ IMP
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