X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.cpkg;h=65e20bb041a429b5c6a50528d0d4c0ce27b758ae;hp=5ea41888fdd2e6e8cc2c8ec34d90d2f4feee081e;hb=57352369229a00b32f5331cdd12f4ea1ace60f78;hpb=c9f72ab0cd65f517a2047feb942ad85025c1b7e8 diff --git a/buffy.cpkg b/buffy.cpkg index 5ea4188..65e20bb 100644 --- a/buffy.cpkg +++ b/buffy.cpkg @@ -32,7 +32,7 @@ static short BuffyCount = 0; /* how many boxes with new mail */ static short BuffyNotify = 0; /* # of unnotified new boxes */ buffy_array Incoming; -@package Buffy { +@package mod_buffy { /* ** .pp ** This variable configures how often (in seconds) Madmutt should look for @@ -132,12 +132,12 @@ int buffy_check(int force) return 0; now = time (NULL); - if (force == 0 && (now - BuffyTime < Buffy.mail_check) + if (force == 0 && (now - BuffyTime < mod_buffy.mail_check) && (now - ImapBuffyTime < ImapBuffyTimeout)) return BuffyCount; last1 = BuffyTime; - if (force == 1 || now - BuffyTime >= Buffy.mail_check) + if (force == 1 || now - BuffyTime >= mod_buffy.mail_check) BuffyTime = now; last2 = ImapBuffyTime; if (force == 1 || now - ImapBuffyTime >= ImapBuffyTimeout) @@ -173,9 +173,8 @@ int buffy_check(int force) m_strcmp(tmp->path, Context->path))) { switch (tmp->magic) { case M_MBOX: - case M_MMDF: /* only check on force or $mail_check reached */ - if (force == 1 || (now - last1 >= Buffy.mail_check)) { + if (force == 1 || (now - last1 >= mod_buffy.mail_check)) { if (!count) { if (STAT_CHECK) { BuffyCount++; @@ -205,7 +204,7 @@ int buffy_check(int force) case M_MAILDIR: /* only check on force or $mail_check reached */ - if (force == 1 || (now - last1 >= Buffy.mail_check)) { + if (force == 1 || (now - last1 >= mod_buffy.mail_check)) { snprintf (path, sizeof (path), "%s/new", tmp->path); if ((dirp = opendir (path)) == NULL) { tmp->magic = 0; @@ -264,7 +263,7 @@ int buffy_check(int force) case M_MH: /* only check on force or $mail_check reached */ - if (force == 1 || (now - last1 >= Buffy.mail_check)) { + if (force == 1 || (now - last1 >= mod_buffy.mail_check)) { if ((tmp->new = mh_buffy (tmp->path)) > 0) BuffyCount++; if (count) {