projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more documentation.
[apps/madmutt.git]
/
nntp
/
newsrc.c
diff --git
a/nntp/newsrc.c
b/nntp/newsrc.c
index
349e3e7
..
178594e
100644
(file)
--- a/
nntp/newsrc.c
+++ b/
nntp/newsrc.c
@@
-242,7
+242,7
@@
const char *nntp_format_str (char *dest, ssize_t destlen, char op,
const char *ifstring, const char *elsestring,
unsigned long data, format_flag flags)
{
const char *ifstring, const char *elsestring,
unsigned long data, format_flag flags)
{
- char fn[S
HORT_STRING], tmp[SHORT_
STRING];
+ char fn[S
TRING], tmp[
STRING];
switch (op) {
case 's':
switch (op) {
case 's':
@@
-511,15
+511,6
@@
static void nntp_create_newsrc_line (NNTP_DATA * data, char **buf,
len--;
}
len--;
}
-#if 0
- if (data->entries[x].first == data->entries[x].last)
- snprintf (line, len, "%d%n", data->entries[x].first, &i);
- else
- snprintf (line, len, "%d-%d%n",
- data->entries[x].first, data->entries[x].last, &i);
- len -= i;
- line += i;
-#else
i = puti (line, data->entries[x].first);
line += i;
len -= i;
i = puti (line, data->entries[x].first);
line += i;
len -= i;
@@
-530,7
+521,6
@@
static void nntp_create_newsrc_line (NNTP_DATA * data, char **buf,
line += i;
len -= i;
}
line += i;
len -= i;
}
-#endif
}
*line++ = '\n';
*line = '\0';
}
*line++ = '\n';
*line = '\0';
@@
-906,7
+896,7
@@
int nntp_save_cache_group (CONTEXT * ctx)
if (!ctx->hdrs[i]->deleted && ctx->hdrs[i]->article_num != prev) {
h = ctx->hdrs[i];
addr[0] = 0;
if (!ctx->hdrs[i]->deleted && ctx->hdrs[i]->article_num != prev) {
h = ctx->hdrs[i];
addr[0] = 0;
- rfc822_
write_address (addr, sizeof
(addr), h->env->from, 0);
+ rfc822_
addrcat(addr, sizeof
(addr), h->env->from, 0);
tm = gmtime (&h->date_sent);
snprintf (buf, sizeof (buf),
"%d\t%s\t%s\t%d %s %d %02d:%02d:%02d GMT\t%s\t",
tm = gmtime (&h->date_sent);
snprintf (buf, sizeof (buf),
"%d\t%s\t%s\t%d %s %d %02d:%02d:%02d GMT\t%s\t",