static int parse_attach_list(struct Buffer *buf, struct Buffer *s, struct List **ldata, struct Buffer *err)
{
- ATTACH_MATCH *a = NULL;
+ struct AttachMatch *a = NULL;
struct List *listp = NULL, *lastp = NULL;
char *p = NULL;
char *tmpminor = NULL;
(void *) *ldata);
for (listp = *ldata; listp; listp = listp->next)
{
- a = (ATTACH_MATCH *) listp->data;
+ a = (struct AttachMatch *) listp->data;
mutt_debug(5, "parse_attach_list: skipping %s/%s\n", a->major, a->minor);
lastp = listp;
}
if (!buf->data || *buf->data == '\0')
continue;
- a = safe_malloc(sizeof(ATTACH_MATCH));
+ a = safe_malloc(sizeof(struct AttachMatch));
/* some cheap hacks that I expect to remove */
if (ascii_strcasecmp(buf->data, "any") == 0)
static int parse_unattach_list(struct Buffer *buf, struct Buffer *s, struct List **ldata, struct Buffer *err)
{
- ATTACH_MATCH *a = NULL;
+ struct AttachMatch *a = NULL;
struct List *lp = NULL, *lastp = NULL, *newlp = NULL;
char *tmp = NULL;
int major;
lastp = NULL;
for (lp = *ldata; lp;)
{
- a = (ATTACH_MATCH *) lp->data;
+ a = (struct AttachMatch *) lp->data;
mutt_debug(5, "parse_unattach_list: check %s/%s [%d] : %s/%s [%d]\n",
a->major, a->minor, a->major_int, tmp, minor, major);
if (a->major_int == major && (mutt_strcasecmp(minor, a->minor) == 0))
while (lp)
{
printf("attachments %c%s %s/%s\n", op, name,
- ((ATTACH_MATCH *) lp->data)->major, ((ATTACH_MATCH *) lp->data)->minor);
+ ((struct AttachMatch *) lp->data)->major, ((struct AttachMatch *) lp->data)->minor);
lp = lp->next;
}
static bool count_body_parts_check(struct List **checklist, struct Body *b, bool dflt)
{
struct List *type = NULL;
- ATTACH_MATCH *a = NULL;
+ struct AttachMatch *a = NULL;
/* If list is null, use default behavior. */
if (!*checklist)
for (type = *checklist; type; type = type->next)
{
- a = (ATTACH_MATCH *) type->data;
+ a = (struct AttachMatch *) type->data;
mutt_debug(5, "cbpc: %s %d/%s ?? %s/%s [%d]... ",
dflt ? "[OK] " : "[EXCL] ", b->type,
b->subtype ? b->subtype : "*", a->major, a->minor, a->major_int);