- Fixed small bug in handeling timezone (bug #536149)
- MDN message now RFC compatible (bug #537662)
- Fixed html tables in printer_friendly_bottom.php (patch #542367)
+ - Fixed return address of MDN receipts when having multiple identities
+ (patch #530139)
Version 1.2.5 -- 22 February 2002
---------------------------------
function createReceiptHeaders($receipt) {
- GLOBAL $data_dir, $username;
+ GLOBAL $data_dir, $username, $identity;
$receipt_headers = Array();
- $from_addr = getPref($data_dir, $username, 'email_address');
- $from = getPref($data_dir, $username, 'full_name');
+ if (isset($identity) && $identity != 'default') {
+ $from = getPref($data_dir, $username, 'full_name' . $identity);
+ $from_addr = getPref($data_dir, $username, 'email_address' . $identity);
+ } else {
+ $from = getPref($data_dir, $username, 'full_name');
+ $from_addr = getPref($data_dir, $username, 'email_address');
+ }
+ if ($from_addr == '') {
+ $from_addr = $popuser.'@'.$domain;
+ }
if ($from == '') {
$from = "<$from_addr>";