Tracker: Patches

5 Error when sending read receipts - ID: 1637572
Last Update: Comment added ( kink )

Hi,

On SquirrelMail 1.4.9a there is a bug when a user tries to send a read
receipt.

when you click on

Read receipt: requested [Send read receipt now]

then squirrel returns the following error message:

ERROR: Could not complete request.
Query: SELECT ""
Reason Given: SELECT failed: Can't open mailbox : no such mailbox



This happens because of a bug in read_body.php

The following lines


$mdn_url = set_url_var($PHP_SELF, 'mailbox',
urlencode($mailbox));
$mdn_url = set_url_var($PHP_SELF, 'passed_id',
$passed_id);
$mdn_url = set_url_var($PHP_SELF, 'passed_ent_id',
$passed_ent_id);
$mdn_url = set_url_var($PHP_SELF, 'sendreceipt',
1);


should be changed with

$mdn_url = set_url_var($mdn_url, 'mailbox',
urlencode($mailbox));
$mdn_url = set_url_var($mdn_url, 'passed_id',
$passed_id);
$mdn_url = set_url_var($mdn_url, 'passed_ent_id',
$passed_ent_id);
$mdn_url = set_url_var($mdn_url, 'sendreceipt',
1);


Note that in the 1.4.9a version, only the last parameter is added to the
url :)


Regards,
Ce1ta


Ce1ta ( ce1ta ) - 2007-01-17 10:55

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2007-01-18 15:20
Sender: kinkProject AdminAccepting Donations


Hi,

Indeed, you're very right. I've fixed this in SVN and will be in our next
release. Thanks!

Thijs


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-01-18 15:20 kink
resolution_id None 2007-01-18 15:20 kink
close_date - 2007-01-18 15:20 kink