projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deep rework of nntp_data_t (ex-NNTP_DATA) to make it list-able.
[apps/madmutt.git]
/
buffy.cpkg
diff --git
a/buffy.cpkg
b/buffy.cpkg
index
5ea4188
..
65e20bb
100644
(file)
--- 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;
static short BuffyNotify = 0; /* # of unnotified new boxes */
buffy_array Incoming;
-@package
B
uffy {
+@package
mod_b
uffy {
/*
** .pp
** This variable configures how often (in seconds) Madmutt should look for
/*
** .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);
return 0;
now = time (NULL);
- if (force == 0 && (now - BuffyTime <
B
uffy.mail_check)
+ if (force == 0 && (now - BuffyTime <
mod_b
uffy.mail_check)
&& (now - ImapBuffyTime < ImapBuffyTimeout))
return BuffyCount;
last1 = BuffyTime;
&& (now - ImapBuffyTime < ImapBuffyTimeout))
return BuffyCount;
last1 = BuffyTime;
- if (force == 1 || now - BuffyTime >=
B
uffy.mail_check)
+ if (force == 1 || now - BuffyTime >=
mod_b
uffy.mail_check)
BuffyTime = now;
last2 = ImapBuffyTime;
if (force == 1 || now - ImapBuffyTime >= ImapBuffyTimeout)
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:
m_strcmp(tmp->path, Context->path))) {
switch (tmp->magic) {
case M_MBOX:
- case M_MMDF:
/* only check on force or $mail_check reached */
/* only check on force or $mail_check reached */
- if (force == 1 || (now - last1 >=
B
uffy.mail_check)) {
+ if (force == 1 || (now - last1 >=
mod_b
uffy.mail_check)) {
if (!count) {
if (STAT_CHECK) {
BuffyCount++;
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 */
case M_MAILDIR:
/* only check on force or $mail_check reached */
- if (force == 1 || (now - last1 >=
B
uffy.mail_check)) {
+ if (force == 1 || (now - last1 >=
mod_b
uffy.mail_check)) {
snprintf (path, sizeof (path), "%s/new", tmp->path);
if ((dirp = opendir (path)) == NULL) {
tmp->magic = 0;
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 */
case M_MH:
/* only check on force or $mail_check reached */
- if (force == 1 || (now - last1 >=
B
uffy.mail_check)) {
+ if (force == 1 || (now - last1 >=
mod_b
uffy.mail_check)) {
if ((tmp->new = mh_buffy (tmp->path)) > 0)
BuffyCount++;
if (count) {
if ((tmp->new = mh_buffy (tmp->path)) > 0)
BuffyCount++;
if (count) {