/* When in mailboxes mode, disables this feature */
if (Folder)
{
- mutt_debug(5, "= hit! Folder: %s, LastDir: %s\n", Folder, LastDir);
+ mutt_debug(3, "= hit! Folder: %s, LastDir: %s\n", Folder, LastDir);
if (GotoSwapper[0] == '\0')
{
if (mutt_str_strcmp(LastDir, Folder) != 0)
if (!*s)
return false;
- mutt_debug(3, "\nis_from(): parsing: %s\n", s);
+ mutt_debug(5, "\nis_from(): parsing: %s\n", s);
if (!mutt_date_is_day_name(s))
{
len = pathlen - 1;
memcpy(path, s, len);
path[len] = '\0';
- mutt_debug(3, "got return path: %s\n", path);
+ mutt_debug(5, "got return path: %s\n", path);
}
s = p + 1;
if (mutt_str_word_casecmp(Capabilities[i], s) == 0)
{
adata->capabilities |= (1 << i);
- mutt_debug(4, " Found capability \"%s\": %d\n", Capabilities[i], i);
+ mutt_debug(3, " Found capability \"%s\": %d\n", Capabilities[i], i);
break;
}
}
b->data[0] = '\0';
int rc = mutt_hcache_store_raw(mdata->hcache, "/UIDSEQSET", 10, b->data, seqset_size + 1);
- mutt_debug(5, "Stored /UIDSEQSET %s\n", b->data);
+ mutt_debug(3, "Stored /UIDSEQSET %s\n", b->data);
mutt_buffer_free(&b);
return rc;
}
char *hc_seqset = mutt_hcache_fetch_raw(mdata->hcache, "/UIDSEQSET", 10);
char *seqset = mutt_str_strdup(hc_seqset);
mutt_hcache_free(mdata->hcache, (void **) &hc_seqset);
- mutt_debug(5, "Retrieved /UIDSEQSET %s\n", NONULL(seqset));
+ mutt_debug(3, "Retrieved /UIDSEQSET %s\n", NONULL(seqset));
return seqset;
}
op = km_dokey(MENU_MAIN);
- mutt_debug(4, "[%d]: Got op %d\n", __LINE__, op);
+ mutt_debug(3, "[%d]: Got op %d\n", __LINE__, op);
/* either user abort or timeout */
if (op < 0)
return MUTT_CMD_ERROR;
}
- mutt_debug(5, "added %s/%s [%d]\n", a->major, a->minor, a->major_int);
+ mutt_debug(3, "added %s/%s [%d]\n", a->major, a->minor, a->major_int);
mutt_list_insert_tail(head, (char *) a);
} while (MoreArgs(s));
STAILQ_FOREACH_SAFE(np, head, entries, tmp2)
{
a = (struct AttachMatch *) np->data;
- mutt_debug(5, "check %s/%s [%d] : %s/%s [%d]\n", a->major, a->minor,
+ mutt_debug(3, "check %s/%s [%d] : %s/%s [%d]\n", a->major, a->minor,
a->major_int, tmp, minor, major);
if (a->major_int == major && (mutt_str_strcasecmp(minor, a->minor) == 0))
{
- mutt_debug(5, "removed %s/%s [%d]\n", a->major, a->minor, a->major_int);
+ mutt_debug(3, "removed %s/%s [%d]\n", a->major, a->minor, a->major_int);
regfree(&a->minor_regex);
FREE(&a->major);
STAILQ_REMOVE(head, np, ListNode, entries);
}
mutt_extract_token(buf, s, MUTT_TOKEN_QUOTE | MUTT_TOKEN_SPACE | MUTT_TOKEN_SEMICOLON);
- mutt_debug(3, "Second token is '%s'.\n", buf->data);
+ mutt_debug(5, "Second token is '%s'.\n", buf->data);
tmp->addr = mutt_addr_parse_list2(tmp->addr, buf->data);
for (struct Address *a = tmp->addr; a && a->mailbox; a = a->next)
{
if (!a->group)
- mutt_debug(3, " %s\n", a->mailbox);
+ mutt_debug(5, " %s\n", a->mailbox);
else
- mutt_debug(3, " Group %s\n", a->mailbox);
+ mutt_debug(5, " Group %s\n", a->mailbox);
}
}
mutt_grouplist_destroy(&gc);
}
else
{
- mutt_debug(5, "Corrupted buffer");
+ mutt_debug(1, "Corrupted buffer");
return MUTT_CMD_ERROR;
}
}
}
else
{
- mutt_debug(5, "Corrupted buffer");
+ mutt_debug(1, "Corrupted buffer");
return MUTT_CMD_ERROR;
}
}
{
if (!m || !md || !*md || (m->magic != MUTT_MH) || (Sort != SORT_ORDER))
return;
- mutt_debug(4, "maildir: sorting %s into natural order\n", m->path);
+ mutt_debug(3, "maildir: sorting %s into natural order\n", m->path);
*md = maildir_sort(*md, (size_t) -1, md_cmp_path);
}
if (!sort)
{
- mutt_debug(4, "maildir: need to sort %s by inode\n", m->path);
+ mutt_debug(3, "maildir: need to sort %s by inode\n", m->path);
p = maildir_sort(p, (size_t) -1, md_cmp_inode);
if (!last)
*md = p;
while (ptr < (buf + len))
{
event = (const struct inotify_event *) ptr;
- mutt_debug(5, "+ detail: descriptor=%d mask=0x%x\n", event->wd,
+ mutt_debug(3, "+ detail: descriptor=%d mask=0x%x\n", event->wd,
event->mask);
if (event->mask & IN_IGNORED)
monitor_handle_ignore(event->wd);
STAILQ_FOREACH(np, checklist, entries)
{
a = (struct AttachMatch *) np->data;
- mutt_debug(5, "%s %d/%s ?? %s/%s [%d]... ", dflt ? "[OK] " : "[EXCL] ", b->type,
+ mutt_debug(3, "%s %d/%s ?? %s/%s [%d]... ", dflt ? "[OK] " : "[EXCL] ", b->type,
b->subtype ? b->subtype : "*", a->major, a->minor, a->major_int);
if ((a->major_int == TYPE_ANY || a->major_int == b->type) &&
(!b->subtype || !regexec(&a->minor_regex, b->subtype, 0, NULL, 0)))
{
- mutt_debug(5, "yes\n");
+ mutt_debug(3, "yes\n");
return true;
}
else
{
- mutt_debug(5, "no\n");
+ mutt_debug(3, "no\n");
}
}
count++;
bp->attach_qualifies = shallcount ? true : false;
- mutt_debug(5, "%p shallcount = %d\n", (void *) bp, shallcount);
+ mutt_debug(3, "%p shallcount = %d\n", (void *) bp, shallcount);
if (shallrecurse)
{
- mutt_debug(5, "%p pre count = %d\n", (void *) bp, count);
+ mutt_debug(3, "%p pre count = %d\n", (void *) bp, count);
bp->attach_count = count_body_parts(bp->parts, flags & ~MUTT_PARTS_TOPLEVEL);
count += bp->attach_count;
- mutt_debug(5, "%p post count = %d\n", (void *) bp, count);
+ mutt_debug(3, "%p post count = %d\n", (void *) bp, count);
}
}
- mutt_debug(5, "return %d\n", count < 0 ? 0 : count);
+ mutt_debug(3, "return %d\n", count < 0 ? 0 : count);
return (count < 0) ? 0 : count;
}
buf[n] = 0;
while ((n > 0) && (buf[n - 1] == '\n' || buf[n - 1] == '\r'))
buf[--n] = '\0';
- mutt_debug(3, "fmtpipe < %s\n", buf);
+ mutt_debug(5, "fmtpipe < %s\n", buf);
/* If the result ends with '%', this indicates that the filter
* generated %-tokens that neomutt can expand. Eliminate the '%'
if (abilities && !(k->flags & abilities))
{
- mutt_debug(5, " insufficient abilities: Has %x, want %x\n", k->flags, abilities);
+ mutt_debug(2, " insufficient abilities: Has %x, want %x\n", k->flags, abilities);
continue;
}
return k;
bail:
- mutt_debug(5, "invalid number: '%s'\n", p);
+ mutt_debug(1, "invalid number: '%s'\n", p);
return NULL;
}
int ch;
char *expected_charset = gpgcharset && *gpgcharset ? gpgcharset : "utf-8";
- mutt_debug(4, "pgp: recoding inline from [%s] to [%s]\n", expected_charset, Charset);
+ mutt_debug(3, "pgp: recoding inline from [%s] to [%s]\n", expected_charset, Charset);
rewind(pgpout);
state_set_prefix(s);
if (abilities && !(k->flags & abilities))
{
- mutt_debug(5, " insufficient abilities: Has %x, want %x\n", k->flags, abilities);
+ mutt_debug(3, " insufficient abilities: Has %x, want %x\n", k->flags, abilities);
continue;
}
if (sscanf(line, "%1023s " ANUM " " ANUM " %c %8191[^\n]", group, &last,
&first, &mod, desc) < 4)
{
- mutt_debug(4, "Cannot parse server line: %s\n", line);
+ mutt_debug(2, "Cannot parse server line: %s\n", line);
return 0;
}
else
snprintf(posstr, sizeof(posstr), "%ld", pos);
- mutt_debug(5, "updating progress: %s\n", posstr);
+ mutt_debug(4, "updating progress: %s\n", posstr);
progress->pos = pos;
if (now)
width = quote_width(s, ql);
last = line[mutt_str_strlen(line) - 1];
- mutt_debug(4, "f=f: line [%s], width = %ld, spaces = %lu\n", line,
+ mutt_debug(5, "f=f: line [%s], width = %ld, spaces = %lu\n", line,
(long) width, fst->spaces);
for (words = 0; (p = strsep(&line, " "));)
{
- mutt_debug(4, "f=f: word [%s], width: %lu, remaining = [%s]\n", p, fst->width, line);
+ mutt_debug(5, "f=f: word [%s], width: %lu, remaining = [%s]\n", p, fst->width, line);
/* remember number of spaces */
if (!*p)
{
- mutt_debug(4, "f=f: additional space\n");
+ mutt_debug(3, "f=f: additional space\n");
fst->spaces++;
continue;
}
if (!(!fst->spaces && fst->delsp && last != ' ') && w < width &&
w + fst->width + fst->spaces > width)
{
- mutt_debug(4, "f=f: break line at %lu, %lu spaces left\n", fst->width, fst->spaces);
+ mutt_debug(3, "f=f: break line at %lu, %lu spaces left\n", fst->width, fst->spaces);
/* only honor trailing spaces for format=flowed replies */
if (TextFlowed)
for (; fst->spaces; fst->spaces--)
fst.delsp = 1;
}
- mutt_debug(4, "f=f: DelSp: %s\n", delsp ? "yes" : "no");
+ mutt_debug(3, "f=f: DelSp: %s\n", delsp ? "yes" : "no");
while ((buf = mutt_file_read_line(buf, &sz, s->fpin, NULL, 0)))
{
c = buf[len - 1];
buf[len - 1] = '\0';
}
- mutt_debug(4, "f=f: line %d needs space-stuffing: '%s'\n", lc, buf);
+ mutt_debug(5, "f=f: line %d needs space-stuffing: '%s'\n", lc, buf);
if (len > 0)
buf[len - 1] = c;
}
int first = 1, col = 0, l = 0;
const bool display = (flags & CH_DISPLAY);
- mutt_debug(4, "pfx=[%s], tag=[%s], flags=%d value=[%s]\n", pfx, tag, flags, NONULL(value));
+ mutt_debug(5, "pfx=[%s], tag=[%s], flags=%d value=[%s]\n", pfx, tag, flags, NONULL(value));
if (tag && *tag && fprintf(fp, "%s%s: ", NONULL(pfx), tag) < 0)
return -1;
if (!(flags & CH_DISPLAY) && (pfxw + max <= wraplen || is_from))
{
valbuf = mutt_str_substr_dup(start, end);
- mutt_debug(4, "buf[%s%s] short enough, max width = %d <= %d\n", NONULL(pfx),
+ mutt_debug(5, "buf[%s%s] short enough, max width = %d <= %d\n", NONULL(pfx),
valbuf, max, wraplen);
if (pfx && *pfx)
{
valbuf = mutt_str_substr_dup(t, end);
}
- mutt_debug(4, "buf[%s%s] too long, max width = %d > %d\n", NONULL(pfx),
+ mutt_debug(2, "buf[%s%s] too long, max width = %d > %d\n", NONULL(pfx),
NONULL(valbuf), max, wraplen);
if (fold_one_header(fp, tagbuf, valbuf, pfx, wraplen, flags) < 0)
{
/* if header is short enough, simply print it */
if (!display && mutt_strwidth(tag) + 2 + pfxw + mutt_strwidth(v) <= wraplen)
{
- mutt_debug(4, "buf[%s%s: %s] is short enough\n", NONULL(pfx), tag, v);
+ mutt_debug(5, "buf[%s%s: %s] is short enough\n", NONULL(pfx), tag, v);
if (fprintf(fp, "%s%s: %s\n", NONULL(pfx), tag, v) <= 0)
goto out;
rc = 0;