You are here

function mailhandler_admin_retrieve in Mailhandler 5

Menu callback; Retrieve and process pending e-mails for a mailbox.

1 string reference to 'mailhandler_admin_retrieve'
mailhandler_menu in ./mailhandler.module
Implementation of hook_menu().

File

./mailhandler.module, line 710

Code

function mailhandler_admin_retrieve($mid = 0) {

  // store the original user
  mailhandler_switch_user();
  drupal_set_message(mailhandler_retrieve(mailhandler_get_mailbox($mid)));
  $output = mailhandler_display();

  // revert to the original user
  mailhandler_switch_user();
  return $output;
}