/[drupal]/contributions/modules/mailhandler/mailhandler.module
ViewVC logotype

Diff of /contributions/modules/mailhandler/mailhandler.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.87.2.15, Sat Aug 9 11:56:00 2008 UTC revision 1.87.2.16, Sun Sep 14 15:26:07 2008 UTC
# Line 1  Line 1 
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.
# Line 720  function mailhandler_admin() { Line 720  function mailhandler_admin() {
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)

Legend:
Removed from v.1.87.2.15  
changed lines
  Added in v.1.87.2.16

  ViewVC Help
Powered by ViewVC 1.1.2