$options = array(
'identity' => $identity,
- 'readreceipt' => ($conf['compose']['allow_receipts'] && ($prefs->getValue('disposition_request_read') == 'always')),
+ 'readreceipt' => ($prefs->getValue('request_mdn') == 'always'),
'save_sent' => $save_sent_mail,
'sent_folder' => $sent_mail_folder
);
}
}
- $d_read = $prefs->getValue('disposition_request_read');
- $t->set('rrr', $conf['compose']['allow_receipts'] && ($d_read != 'never'));
+ $d_read = $prefs->getValue('request_mdn');
+ $t->set('rrr', ($d_read != 'never'));
if ($t->get('rrr')) {
$t->set('rrr_selected', ($d_read != 'ask') || $request_read_receipt);
$t->set('rrr_label', Horde::label('rrr', _("Request a _Read Receipt")));
<configtab name="compose" desc="Compose">
<configsection name="compose">
- <configboolean name="allow_receipts" desc="Can the user request a return
- receipt?">true</configboolean>
<configboolean name="use_vfs" desc="Should we use the Horde VFS system for
storing uploaded attachments?">false</configboolean>
<configswitch name="link_attachments" desc="Should we allow the users to
'compose_confirm', 'set_priority', 'compose_popup', 'compose_html',
'compose_html_font_family', 'compose_html_font_size', 'mail_domain',
'compose_cursor', 'encryptselect', 'save_attachments',
- 'disposition_request_read'
+ 'request_mdn'
)
);
);
// Disposition Notification Preferences
-$_prefs['disposition_request_read'] = array(
+$_prefs['request_mdn'] = array(
'value' => 'ask',
'type' => 'enum',
'enum' => array(
'always' => _("Always")
),
'desc' => _("Request read receipts?"),
- 'help' => 'prefs-disposition_request_read'
+ 'help' => 'prefs-request_mdn'
);
// The list of buttons to show in CKeditor
The following configuration options have been removed:
+ allow_receipts
append_trailer
cache_folders
limit_factor
alternative_display
attachment_display
auto_delete_drafts
+ disposition_request_read
disposition_send_mdn
fckeditor_buttons
fetchmail_link
$flags = array('\\seen');
/* RFC 3503 [3.3] - set $MDNSent flag on sent message. */
- if ($conf['compose']['allow_receipts']) {
+ if ($prefs->getValue('request_mdn') != 'never') {
$mdn = new Horde_Mime_Mdn($headers);
if ($mdn->getMdnReturnAddr()) {
$flags[] = array('$MDNSent');
/* Add Return Receipt Headers. */
if (!empty($opts['readreceipt']) &&
- $GLOBALS['conf']['compose']['allow_receipts']) {
+ ($GLOBALS['prefs']->getValue('request_mdn') != 'never')) {
$mdn = new Horde_Mime_Mdn($ob);
$mdn->addMdnRequestHeaders(Horde_Mime_Address::bareAddress($ob->getValue('from'), $GLOBALS['session']->get('imp', 'maildomain')));
}
public function execute()
{
$this->_upgradeAbookPrefs();
+ $this->_upgradeComposePrefs();
$this->_upgradeForwardPrefs();
$this->_upgradeLoginTasksPrefs();
$this->_upgradeMsgDisplayPrefs();
}
/**
+ * Upgrade to the new compose preferences.
+ */
+ protected function _upgradeComposePrefs()
+ {
+ global $prefs;
+
+ if ($prefs->isDefault('request_mdn') &&
+ ($val = $prefs->getValue('disposition_request_read'))) {
+ $prefs->setValue('request_mdn', $val);
+ }
+ }
+
+ /**
* Upgrade to the new forward preferences.
*/
protected function _upgradeForwardPrefs()
if ($prefs->isLocked('default_encrypt')) {
$ui->suppress[] = 'encryptselect';
}
- if (empty($conf['compose']['allow_receipts'])) {
- $ui->suppress[] = 'disposition_request_read';
- }
if (!$prefs->getValue('compose_html')) {
$ui->suppress[] = 'compose_html_font_family';
'title' => _("Save as Draft")
)));
- $d_read = $prefs->getValue('disposition_request_read');
- if ($conf['compose']['allow_receipts'] &&
- ($d_read != 'never')) {
+ $d_read = $prefs->getValue('request_mdn');
+ if ($d_read != 'never') {
$t->set('read_receipt', true);
- $t->set('read_receipt_set', $d_read != 'ask');
+ $t->set('read_receipt_set', ($d_read != 'ask'));
}
$t->set('save_sent_mail', ($conf['user']['allow_folders'] && !$prefs->isLocked('save_sent_mail')));
</para>
</entry>
-<entry id="prefs-disposition_request_read">
+<entry id="prefs-request_mdn">
<title>Preferences: Request Read Receipts</title>
<para>
- "Request a Read Receipt" sends a request to the recipients of this message to notify you when this message is opened by the recipients. Not all clients support / honor this.
+ "Request a Read Receipt" sends a read receipt request (also known as a Message Dispositon Notification) to the recipients of a composed message to notify you when this message is opened by the recipients. Not all clients support / honor this.
</para>
</entry>
<entry id="prefs-send_mdn">
<title>Preferences: Send Read Receipt</title>
<para>
- "Send a MDN" sends a read receipt (also known as a Message Disposition Notification) when you view a message in which the user has requested that they receive notification that you have read the message. By default, you will be prompted to send the notification.
+ "Send a Read Receipt" sends a read receipt (also known as a Message Disposition Notification) when you view a message in which the user has requested that they receive notification that you have read the message. By default, you will be prompted to send the notification.
</para>
</entry>