getAddress());
}
function abook_take_read() {
global $message;
echo '
' . addForm(SM_PATH . 'plugins/abook_take/take.php') .
'
' . "\n";
if (isset($message->rfc822_header->reply_to))
abook_take_read_array($message->rfc822_header->reply_to);
if (isset($message->rfc822_header->from))
abook_take_read_array($message->rfc822_header->from);
if (isset($message->rfc822_header->cc))
abook_take_read_array($message->rfc822_header->cc);
if (isset($message->rfc822_header->to))
abook_take_read_array($message->rfc822_header->to);
echo addSubmit(_("Take Address")) .
'
';
}
function abook_take_pref() {
global $username, $data_dir, $abook_take_verify;
$abook_take_verify = getPref($data_dir, $username, 'abook_take_verify', false);
}
function abook_take_options() {
global $optpage_data;
$optpage_data['grps']['abook_take'] = _("Address Book Take");
$optionValues = array();
$optionValues[] = array(
'name' => 'abook_take_verify',
'caption' => _("Try to verify addresses"),
'type' => SMOPT_TYPE_BOOLEAN,
'refresh' => SMOPT_REFRESH_NONE
);
$optpage_data['vals']['abook_take'] = $optionValues;
}