rename a bunch of modules
[apps/madmutt.git] / buffy.cpkg
index dc5f6c2..65e20bb 100644 (file)
@@ -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) {