[#7673] mail-filter.php produce errors and bounces to the sender
Summary mail-filter.php produce errors and bounces to the sender
Queue Whups
Queue Version 1.0
Type Bug
State Resolved
Priority 1. Low
Owners Jan Schneider <jan (at) horde (dot) org>
Requester stevens (at) stevens (dot) it
Created 11/12/08 (485 days ago)
Due
Updated 11/12/08 (485 days ago)
Assigned
Resolved 11/12/08 (485 days ago)
Attachments whups_lib_driver.diff Download
Milestone
Patch Yes

History
11/12/08 Jan Schneider Comment #3
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Tweaked and committed, thanks.
11/12/08 CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/whups/lib/Driver.php?r1=1.200&r2=1.201&ty=u
11/12/08 stevens (at) stevens (dot) it Comment #1
State ⇒ Unconfirmed
New Attachment: whups_lib_driver.diff Download
Patch ⇒ 1
Milestone ⇒
Queue ⇒ Whups
Summary ⇒ mail-filter.php produce errors and bounces to the sender
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
I found into mail.log lines like the following:



postfix/local[25654]: 18BF4168C29: to=<xxxxxx@xxxxx.xxxxx.xx>, 
relay=local, delay=0.59, delays=0.05/0.01/0/0.53, dsn=5.3.0, 
status=bounced (Command died with status 255: 
"/var/www/horde/whups/scripts/mail-filter.php --default-auth 
'xxxxx@xxx.xx' --queue-name xxxxxx --queue-id 99". Command output:   
Fatal error: Call to undefined method PEAR_Error::get() in 
/var/www/horde-3.3/whups-h3-1.0/lib/Driver.php on line 359 )



It should be related to Whups_Ticket::makeTicket() returing a 
PEAR_Error object for a reason or another. So the fix should be to 
test if the results is a PEAR_Error object or not.