-2009-07-02 20:13 +0200 Rocco Rutte <pdmef@gmx.net> (a7ef17e2e493)
+2009-07-02 20:42 +0200 Rocco Rutte <pdmef@gmx.net> (042f2ce0b870)
+
+ * doc/manual.xml.head: Manual: minor fixes
+
+ * doc/manual.xml.head, doc/mutt.css: Manual: Render
+ comments in examples a lighter for readability
* doc/manual.xml.head, doc/manual.xml.tail: Manual: Reformat
paragraphs, fix ˜ -> ~ breakage
-2009-07-02 19:36 +0200 Rocco Rutte <pdmef@gmx.net> (d40e288e3fbf)
-
* doc/manual.xml.head: Manual: rework MIME chapter a bit
-2009-07-02 16:20 +0200 Rocco Rutte <pdmef@gmx.net> (705534ee1479)
-
* doc/gen-map-doc, doc/manual.xml.tail, functions.h: Manual: Generate
more pretty titles/ids for key binding tables
-2009-07-02 13:02 +0200 Rocco Rutte <pdmef@gmx.net> (4771a4fb4c0e)
-
* doc/manual.xml.head: Manual: fix supported version
numbers for mixmaster
if input is required in batch mode. Replaces [0a3de4d9a009]. See
#3289.
-2009-07-01 23:24 +0200 Rocco Rutte <pdmef@gmx.net> (9a5f4364c166)
-
* doc/manual.xml.head: Manual: Add detailed section on charset
handling
static short BuffyCount = 0; /* how many boxes with new mail */
static short BuffyNotify = 0; /* # of unnotified new boxes */
+static BUFFY* buffy_get (const char *path);
+
/* Find the last message in the file.
* upon success return 0. If no message found - return -1 */
return (0);
}
+void mutt_buffy_setnotified (const char *path)
+{
+ BUFFY *buffy;
+
+ buffy = buffy_get(path);
+ if (!buffy)
+ return;
+
+ buffy->notified = 1;
+}
+
int mutt_buffy_notify (void)
{
if (mutt_buffy_check (0) && BuffyNotify)
/* no folders with new mail */
*s = '\0';
}
+
+/* fetch buffy object for given path, if present */
+static BUFFY* buffy_get (const char *path)
+{
+ BUFFY *cur;
+ char *epath;
+
+ if (!path)
+ return NULL;
+
+ epath = safe_strdup(path);
+ mutt_expand_path(epath, mutt_strlen(epath));
+
+ for (cur = Incoming; cur; cur = cur->next)
+ {
+ /* must be done late because e.g. IMAP delimiter may change */
+ mutt_expand_path (cur->path, sizeof (cur->path));
+ if (!mutt_strcmp(cur->path, path))
+ {
+ FREE (&epath);
+ return cur;
+ }
+ }
+
+ FREE (&epath);
+ return NULL;
+}
/* fixes up atime + mtime after mbox/mmdf mailbox was modified
according to stat() info taken before a modification */
void mutt_buffy_cleanup (const char *buf, struct stat *st);
+
+/* mark mailbox just left as already notified */
+void mutt_buffy_setnotified (const char *path);
if(!ctx)
return;
+ /* never announce that a mailbox we've just left has new mail. #3290
+ * XXX: really belongs in mx_close_mailbox, but this is a nice hook point */
+ mutt_buffy_setnotified(ctx->path);
+
if (ctx->mx_close)
ctx->mx_close (ctx);