X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=4d45c0dc1142176c4e463d6cd4a228ade1a1850f;hp=e9709f74f15a4748a9a5e237fbc9c25ee494f4b3;hb=23e6291cb5d5b4cd2008403d8b628007fd75ff23;hpb=56025510c87ad388a257fcbd8b369b0edcf97c34 diff --git a/nntp/newsrc.c b/nntp/newsrc.c index e9709f7..4d45c0d 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -24,7 +24,6 @@ #include #include #include -#include #include @@ -126,7 +125,6 @@ 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); - debug_print (2, ("Newsgroup %s\n", data->group)); return 0; } @@ -437,10 +435,6 @@ void nntp_get_status (CONTEXT * ctx, HEADER * h, char *group, int article) data = (NNTP_DATA *) hash_find (data->nserv->newsgroups, group); if (!data) { -#ifdef DEBUG - if (group) - debug_print (3, ("newsgroup %s not found\n", group)); -#endif return; } @@ -640,7 +634,6 @@ static int mutt_update_list_file (char *filename, char *section, /* if file not exist, create it */ if ((ifp = safe_fopen (filename, "a"))) fclose (ifp); - debug_print (1, ("Opening %s\n", filename)); if (!(ifp = safe_fopen (filename, "r"))) { mutt_error (_("Unable to open %s for reading"), filename); return -1; @@ -658,7 +651,6 @@ static int mutt_update_list_file (char *filename, char *section, m_strcpy(buf, sizeof(buf), filename); m_strcpy(tmpfile, sizeof(tmpfile), basename(filename)); mutt_adv_mktemp ((const char*) dirname (buf), tmpfile, sizeof (tmpfile)); - debug_print (1, ("Opening %s\n", tmpfile)); if (!(ofp = fopen (tmpfile, "w"))) { fclose (ifp); mutt_error (_("Unable to open %s for writing"), tmpfile); @@ -732,7 +724,6 @@ static int mutt_update_list_file (char *filename, char *section, link[0] = '\0'; if ((l = readlink (filename, link, sizeof (link)-1)) > 0) link[l] = '\0'; - debug_print (1, ("Renaming %s to %s\n",tmpfile, l > 0 ? link : filename)); if (rename (tmpfile, l > 0 ? link : filename) < 0) { unlink (tmpfile); mutt_error (_("Can't rename %s to %s"), tmpfile, l > 0 ? link : filename); @@ -759,7 +750,6 @@ int mutt_newsrc_update (NNTP_SERVER * news) if (!data || !data->rc) continue; nntp_create_newsrc_line (data, &buf, &line, &llen); - debug_print (2, ("Added to newsrc: %s\n", line)); line += m_strlen(line); } /* newrc being fully rewritten */ @@ -831,7 +821,6 @@ void nntp_clear_cacheindex (NNTP_SERVER * news) if (!data || data->subscribed || !data->cache) continue; nntp_delete_cache (data); - debug_print (2, ("Removed from .index: %s\n", data->group)); } return; }