-function squirrelmail_plugin_init_listcommands ()
-{
- global $squirrelmail_plugin_hooks;
-
- $squirrelmail_plugin_hooks['read_body_header']['listcommands'] = 'plugin_listcommands_menu';
-}
-
-
-function plugin_listcommands_menu () {
-
- global $imapConnection, $passed_id, $color, $mailbox,
- $subject, $ent_num, $priority_level;
-
- /* Array of commands we can deal with from the header. The Reply option is
- * added later because we generate it using the Post information.
- */
- $fieldsdescr = array( 'Help' => _("Help"),
- 'Unsubscribe' => _("Unsubscribe"),
- 'Subscribe' => _("Subscribe"),
- 'Post' => _("Post to the list"),
- 'Archive' => _("List Archives"),
- 'Owner' => _("Contact Listowner") );
- $fields = array_keys ($fieldsdescr);
- $fieldsdescr['Reply'] = _("Reply to the list");
-
- $cmds = array();
- $output = array();