From ae25968cdaa05abb847d45e4532b5e6ba8b4be03 Mon Sep 17 00:00:00 2001 From: ullgren Date: Sat, 9 Feb 2002 21:38:21 +0000 Subject: [PATCH] Added support for requesting on delivery reciepts git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2398 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 4 ++-- src/compose.php | 38 ++++++++++++++++++++------------------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/config/conf.pl b/config/conf.pl index a9238792..6a051588 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -389,7 +389,7 @@ while (($command ne "q") && ($command ne "Q")) { print "6. Usernames in Lowercase : $WHT$force_username_lowercase$NRM\n"; print "7. Allow use of priority : $WHT$default_use_priority$NRM\n"; print "8. Hide SM attributions : $WHT$hide_sm_attributions$NRM\n"; - print "9. Allow use of MDN : $WHT$default_use_mdn$NRM\n"; + print "9. Allow use of receipts : $WHT$default_use_mdn$NRM\n"; print "\n"; print "R Return to Main Menu\n"; } elsif ($menu == 5) { @@ -1547,7 +1547,7 @@ sub command39 { $default_value = "n"; } - print "Enable read receipt support (y/n) [$WHT$default_value$NRM]: $WHT"; + print "Enable support for read/delivery receipt support (y/n) [$WHT$default_value$NRM]: $WHT"; $new_show = ; if (($new_show =~ /^y\n/i) || (($new_show =~ /^\n/) && ($default_value eq "y"))) { return "true"; diff --git a/src/compose.php b/src/compose.php index e499efe8..5f4a3f13 100644 --- a/src/compose.php +++ b/src/compose.php @@ -558,14 +558,6 @@ function showInputForm () { showComposeButtonRow(); } else { echo ' '; - - $mdn_user_support=getPref($data_dir, $username, 'mdn_user_support',$default_use_mdn); - if ($default_use_mdn) { - if ($mdn_user_support) { - echo _("Confirm reading:"). - ""; - } - } echo '   ' . "\n"; } @@ -616,6 +608,26 @@ function showComposeButtonRow() global $use_javascript_addr_book, $save_as_draft, $default_use_priority, $mailprio, $default_use_mdn, $data_dir, $username; + + echo " \n\n"; + if ($default_use_priority) { + if(!isset($mailprio)) { + $mailprio = "3"; + } + echo _("Priority") .':"; + } + $mdn_user_support=getPref($data_dir, $username, 'mdn_user_support',$default_use_mdn); + if ($default_use_mdn) { + if ($mdn_user_support) { + echo "\n\t". _("Receipt") .': '. + ''. _("On read"). + ' '. _("On Delivery"); + } + } echo " \n \n"; if ($use_javascript_addr_book) { @@ -635,16 +647,6 @@ function showComposeButtonRow() if ($save_as_draft) { echo '\n"; } - if ($default_use_priority) { - if(!isset($mailprio)) { - $mailprio = "3"; - } - echo _("Priority") .':"; - } do_hook('compose_button_row'); -- 2.25.1