/** declare plugin globals */
global $mail_fetch_allow_unsubscribed;
+/**
+ * Add link to menu at top of content pane
+ *
+ * @return void
+ *
+ */
+function mail_fetch_link_do() {
+
+ global $oTemplate, $nbsp;
+ $output = makeInternalLink('plugins/mail_fetch/fetch.php', _("Fetch"), '')
+ . $nbsp . $nbsp;
+ return array('menuline' => $output);
+
+}
+
/**
* Controls use of unsubscribed folders in plugin
* @global boolean $mail_fetch_allow_unsubscribed
$mailfetch_login_[$i_loop] = getPref($data_dir, $username, "mailfetch_login_$i_loop");
$mailfetch_fref_[$i_loop] = getPref($data_dir, $username, "mailfetch_fref_$i_loop");
$mailfetch_pass_[$i_loop] = getPref($data_dir, $username, "mailfetch_pass_$i_loop");
- if( $mailfetch_cypher == 'on' )
+ if( $mailfetch_cypher == 'on' ) {
$mailfetch_pass_[$i_loop] = decrypt( $mailfetch_pass_[$i_loop] );
+ }
if( $mailfetch_pass_[$i_loop] <> '' && // Empty passwords no allowed
( ( $mailfetch_login_[$i_loop] == 'on' && $mailfetch_newlog == 'on' ) || $mailfetch_fref_[$i_loop] == 'on' ) ) {