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
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)
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++;
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;
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) {