+2008-03-09 14:01 -0700 Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org> (c4212a17fad6)
+
+ * compose.c, mx.c: Remove pointless NULL checks against
+ arrays. This silences a warning on newer GCCs.
+
2008-03-04 22:00 -0800 Petr Písař <petr.pisar@atlas.cz> (fdad7b9fa741)
* po/cs.po: Updated Czech translation
buf[sizeof (buf) - 1] = 0;
- snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ }
FOREVER
{
date received */
tz = mutt_local_tz (0);
- snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ }
loc = ftello (ctx->fp);
while (fgets (buf, sizeof (buf), ctx->fp) != NULL)
newOffset = safe_calloc (ctx->msgcount - first, sizeof (struct m_update_t));
oldOffset = safe_calloc (ctx->msgcount - first, sizeof (struct m_update_t));
- snprintf (msgbuf, sizeof (msgbuf), _("Writing %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, WriteInc, ctx->msgcount);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Writing %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, WriteInc, ctx->msgcount);
+ }
for (i = first, j = 0; i < ctx->msgcount; i++)
{
progress_t progress;
memset (&mhs, 0, sizeof (mhs));
- snprintf (msgbuf, sizeof (msgbuf), _("Scanning %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Scanning %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ }
if (!ctx->data)
{
if (maildir_parse_dir (ctx, &last, subdir, &count, &progress) == -1)
return -1;
- snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, count);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, count);
+ }
maildir_delayed_parsing (ctx, &md, &progress);
if (ctx->magic == M_MH)
hc = mutt_hcache_open(HeaderCache, ctx->path, NULL);
#endif /* USE_HCACHE */
- snprintf (msgbuf, sizeof (msgbuf), _("Writing %s..."), ctx->path);
- mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, WriteInc, ctx->msgcount);
+ if (!ctx->quiet)
+ {
+ snprintf (msgbuf, sizeof (msgbuf), _("Writing %s..."), ctx->path);
+ mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, WriteInc, ctx->msgcount);
+ }
for (i = 0; i < ctx->msgcount; i++)
{
}
}
- mutt_progress_init (&progress, _("Fetching message headers..."),
- M_PROGRESS_MSG, ReadInc, new_count - old_count);
+ if (!ctx->quiet)
+ mutt_progress_init (&progress, _("Fetching message headers..."),
+ M_PROGRESS_MSG, ReadInc, new_count - old_count);
if (ret == 0)
{