-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;
-
- /* 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();