Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 7 Mar 2005 17:17:54 +0000 (17:17 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 7 Mar 2005 17:17:54 +0000 (17:17 +0000)
added $force_buffy_check (force buffy check on <buffy-list>)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@153 e385b8ad-14ed-0310-8656-cc95a2468c6d

UPGRADING
buffy.c
init.h
mutt.h

index 6bc6dab..1ed2f73 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -16,11 +16,14 @@ this still likely is incomplete. Please report missing items to
 
 2005-03-07
 
-  New Variable: $imap_mail_check is split from $mail_check
+  New Variables: 
+    - $imap_mail_check is split from $mail_check
+    - $force_buffy_check forces check on <buffy-list>
 
 2005-03-05
 
-  New Color: 'sidebar [fg] [bg]' for the delimiter
+  New Color:
+    - 'sidebar [fg] [bg]' for the delimiter
 
 2005-03-01 (init)
 
diff --git a/buffy.c b/buffy.c
index dd090fb..37f479d 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -599,9 +599,11 @@ int mutt_buffy_list (void)
   char buffylist[160];
   int pos;
   int first;
-
   int have_unnotified = BuffyNotify;
-  
+
+  if (option (OPTFORCEBUFFYCHECK))
+    mutt_buffy_check (1);
+
   pos = 0;
   first = 1;
   buffylist[0] = 0;
diff --git a/init.h b/init.h
index e05347c..8a49051 100644 (file)
--- a/init.h
+++ b/init.h
@@ -697,6 +697,16 @@ struct option_t MuttVars[] = {
   ** .pp
   ** Also see the ``$$record'' variable.
   */
+  { "force_buffy_check", DT_BOOL, R_NONE, OPTFORCEBUFFYCHECK, 0 },
+  /*
+  ** .pp
+  ** When \fIset\fP, it causes mutt-ng to check for new mail when the
+  ** \fIbuffy-list\fP command is invoked. When \fIunset\fP, \fIbuffy_list\fP
+  ** will just list all mailboxes which are already known to have new mail.
+  ** .pp
+  ** Also see the following variables: ``$$timeout'', ``$$mail_check'' and
+  ** ``$$imap_mail_check''.
+  */
   { "forward_decode",  DT_BOOL, R_NONE, OPTFORWDECODE, 1 },
   /*
   ** .pp
@@ -980,7 +990,6 @@ struct option_t MuttVars[] = {
   ** This variable configures how often (in seconds) mutt-ng should look for
   ** new mail in IMAP folders. This is split from the ``$mail_check'' variable
   ** to generate less traffic and get more accurate information for local folders.
-  **
   ** .pp
   ** To not brake current setups, this defaults to the value of ``$mail_check''.
   ** Depending on your connection and speed of your IMAP server, you may want to
diff --git a/mutt.h b/mutt.h
index f632b08..a97bdc9 100644 (file)
--- a/mutt.h
+++ b/mutt.h
@@ -377,6 +377,7 @@ enum
   OPTFCCATTACH,
   OPTFCCCLEAR,
   OPTFOLLOWUPTO,
+  OPTFORCEBUFFYCHECK,
   OPTFORCENAME,
   OPTFORWDECODE,
   OPTFORWQUOTE,