| 1 |
<?php |
<?php |
| 2 |
// $Id: mailhandler.module,v 1.87.2.14 2008/07/17 19:44:59 weitzman Exp $ |
// $Id: mailhandler.module,v 1.87.2.15 2008/08/09 11:56:00 weitzman Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Retrieve all msgs from a given mailbox and process them. |
* Retrieve all msgs from a given mailbox and process them. |
| 720 |
*/ |
*/ |
| 721 |
function mailhandler_display() { |
function mailhandler_display() { |
| 722 |
$destination = drupal_get_destination(); |
$destination = drupal_get_destination(); |
| 723 |
$header = array(t('Mailbox'), array('data' => t('Operations'), 'colspan' => 3)); |
$header = array(t('Mailbox'), t('Folder'), array('data' => t('Operations'), 'colspan' => 3)); |
| 724 |
$rows = array(); |
$rows = array(); |
| 725 |
$result = db_query('SELECT * FROM {mailhandler} ORDER BY mail'); |
$result = db_query('SELECT * FROM {mailhandler} ORDER BY mail'); |
| 726 |
while ($mailbox = db_fetch_object($result)) { |
while ($mailbox = db_fetch_object($result)) { |
| 727 |
$rows[] = array( |
$rows[] = array( |
| 728 |
"<a href=\"mailto:$mailbox->mail\">$mailbox->mail</a>", |
"<a href=\"mailto:$mailbox->mail\">$mailbox->mail</a>", |
| 729 |
|
$mailbox->folder ? check_plain($mailbox->folder) : '', |
| 730 |
l(t('Retrieve'), "admin/content/mailhandler/retrieve/$mailbox->mid", array('title' => t('Retrieve and process pending e-mails in this mailbox')), $destination), |
l(t('Retrieve'), "admin/content/mailhandler/retrieve/$mailbox->mid", array('title' => t('Retrieve and process pending e-mails in this mailbox')), $destination), |
| 731 |
l(t('Edit'), "admin/content/mailhandler/edit/$mailbox->mid", array('title' => t('Edit this mailbox configuration')), $destination), |
l(t('Edit'), "admin/content/mailhandler/edit/$mailbox->mid", array('title' => t('Edit this mailbox configuration')), $destination), |
| 732 |
l(t('Delete'), "admin/content/mailhandler/delete/$mailbox->mid", array('title' => t('Delete this mailbox')), $destination) |
l(t('Delete'), "admin/content/mailhandler/delete/$mailbox->mid", array('title' => t('Delete this mailbox')), $destination) |