projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
nntp
/
newsrc.c
diff --git
a/nntp/newsrc.c
b/nntp/newsrc.c
index
e20fff2
..
0978381
100644
(file)
--- a/
nntp/newsrc.c
+++ b/
nntp/newsrc.c
@@
-18,7
+18,6
@@
#include "sort.h"
#include "mx.h"
#include "mime.h"
#include "sort.h"
#include "mx.h"
#include "mime.h"
-#include "mailbox.h"
#include "nntp.h"
#include "rfc822.h"
#include "rfc1524.h"
#include "nntp.h"
#include "rfc822.h"
#include "rfc1524.h"
@@
-27,6
+26,7
@@
#include "lib/mem.h"
#include "lib/str.h"
#include "lib/intl.h"
#include "lib/mem.h"
#include "lib/str.h"
#include "lib/intl.h"
+#include "lib/debug.h"
#include <unistd.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
@@
-125,7
+125,7
@@
static int nntp_parse_newsrc_line (NNTP_SERVER * news, char *line)
data->lastMessage = data->entries[x - 1].last;
data->num = x;
mutt_newsgroup_stat (data);
data->lastMessage = data->entries[x - 1].last;
data->num = x;
mutt_newsgroup_stat (data);
- d
print (2, (debugfile, "parse_line:
Newsgroup %s\n", data->group));
+ d
ebug_print (2, ("
Newsgroup %s\n", data->group));
return 0;
}
return 0;
}
@@
-438,7
+438,7
@@
void nntp_get_status (CONTEXT * ctx, HEADER * h, char *group, int article)
if (!data) {
#ifdef DEBUG
if (group)
if (!data) {
#ifdef DEBUG
if (group)
- d
print (3, (debugfile,
"newsgroup %s not found\n", group));
+ d
ebug_print (3, (
"newsgroup %s not found\n", group));
#endif
return;
}
#endif
return;
}
@@
-645,7
+645,7
@@
int mutt_newsrc_update (NNTP_SERVER * news)
if (!data || !data->rc)
continue;
nntp_create_newsrc_line (data, &buf, &line, &llen);
if (!data || !data->rc)
continue;
nntp_create_newsrc_line (data, &buf, &line, &llen);
- d
print (2, (debugfile, "Added to newsrc: %s
", line));
+ d
ebug_print (2, ("Added to newsrc: %s\n
", line));
line += safe_strlen (line);
}
/* newrc being fully rewritten */
line += safe_strlen (line);
}
/* newrc being fully rewritten */
@@
-716,7
+716,7
@@
void nntp_clear_cacheindex (NNTP_SERVER * news)
if (!data || data->subscribed || !data->cache)
continue;
nntp_delete_cache (data);
if (!data || data->subscribed || !data->cache)
continue;
nntp_delete_cache (data);
- d
print (2, (debugfile,
"Removed from .index: %s\n", data->group));
+ d
ebug_print (2, (
"Removed from .index: %s\n", data->group));
}
return;
}
}
return;
}