X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.cpkg;h=65e20bb041a429b5c6a50528d0d4c0ce27b758ae;hp=dc5f6c2665823654a19de155cf1b830e089b94a1;hb=7768c028980b5fb468decf4fbfbd640082c321b2;hpb=1951199b744b2104bf7fe60effe5dd0f455aee9c diff --git a/buffy.cpkg b/buffy.cpkg index dc5f6c2..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) @@ -174,7 +174,7 @@ int buffy_check(int force) switch (tmp->magic) { case M_MBOX: /* 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++; @@ -204,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; @@ -263,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) {