<?php
- require_once('../functions/url_parser.php');
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../../');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'functions/url_parser.php');
/* Address Take -- steals addresses from incoming email messages. Searches
the To, Cc, From and Reply-To headers, also searches the body of the
$i = 0;
while ($i < count($array))
{
- abook_take_read_string($array[$i]);
+ abook_take_read_string($array[$i]->getAddress());
$i ++;
}
}
html_tag( 'tr' ) .
html_tag( 'td' );
- abook_take_read_string($message->header->from);
- abook_take_read_array($message->header->cc);
- abook_take_read_array($message->header->reply_to);
- abook_take_read_array($message->header->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->reply_to))
+ abook_take_read_array($message->rfc822_header->reply_to);
+ if (isset($message->rfc822_header->to))
+ abook_take_read_array($message->rfc822_header->to);
$new_body = $body;
'<input type="checkbox" name="abook_take_abook_take_hide"';
if ($abook_take_hide)
echo ' checked';
- echo '>' . _("Hide the box") . '<br>' .
+ echo '> ' . _("Hide the box") . '<br>' .
'<input type=checkbox name="abook_take_abook_take_verify"';
if ($abook_take_verify)
echo ' checked';
- echo '>' . _("Try to verify addresses") . '</td></tr>';
+ echo '> ' . _("Try to verify addresses") . '</td></tr>';
}