return 0;
mutt_addrlist_to_local(a);
- rfc2047_decode_adrlist(a);
+ rfc2047_decode_addrlist(a);
for (cur = a; cur; cur = cur->next)
if (cur->personal)
mutt_str_dequote_comment(cur->personal);
}
}
-static void group_add_adrlist(struct Group *g, struct Address *a)
+static void group_add_addrlist(struct Group *g, struct Address *a)
{
struct Address **p = NULL, *q = NULL;
*p = q;
}
-static int group_remove_adrlist(struct Group *g, struct Address *a)
+static int group_remove_addrlist(struct Group *g, struct Address *a)
{
struct Address *p = NULL;
return mutt_regexlist_remove(&g->rs, s);
}
-void mutt_group_context_add_adrlist(struct GroupContext *ctx, struct Address *a)
+void mutt_group_context_add_addrlist(struct GroupContext *ctx, struct Address *a)
{
for (; ctx; ctx = ctx->next)
- group_add_adrlist(ctx->g, a);
+ group_add_addrlist(ctx->g, a);
}
-int mutt_group_context_remove_adrlist(struct GroupContext *ctx, struct Address *a)
+int mutt_group_context_remove_addrlist(struct GroupContext *ctx, struct Address *a)
{
int rc = 0;
for (; (!rc) && ctx; ctx = ctx->next)
{
- rc = group_remove_adrlist(ctx->g, a);
+ rc = group_remove_addrlist(ctx->g, a);
if (empty_group(ctx->g))
group_remove(ctx->g);
}
void mutt_group_context_add(struct GroupContext **ctx, struct Group *group);
void mutt_group_context_destroy(struct GroupContext **ctx);
-void mutt_group_context_add_adrlist(struct GroupContext *ctx, struct Address *a);
+void mutt_group_context_add_addrlist(struct GroupContext *ctx, struct Address *a);
int mutt_group_context_add_regex(struct GroupContext *ctx, const char *s, int flags, struct Buffer *err);
bool mutt_group_match(struct Group *g, const char *s);
int mutt_group_context_clear(struct GroupContext **ctx);
int mutt_group_context_remove_regex(struct GroupContext *ctx, const char *s);
-int mutt_group_context_remove_adrlist(struct GroupContext *ctx, struct Address *a);
+int mutt_group_context_remove_addrlist(struct GroupContext *ctx, struct Address *a);
struct Group *mutt_pattern_group(const char *k);
goto bail;
}
if (data == MUTT_GROUP)
- mutt_group_context_add_adrlist(gc, addr);
+ mutt_group_context_add_addrlist(gc, addr);
else if (data == MUTT_UNGROUP)
- mutt_group_context_remove_adrlist(gc, addr);
+ mutt_group_context_remove_addrlist(gc, addr);
mutt_addr_free(&addr);
break;
}
goto bail;
}
- mutt_group_context_add_adrlist(gc, tmp->addr);
+ mutt_group_context_add_addrlist(gc, tmp->addr);
mutt_alias_add_reverse(tmp);
if (debuglevel >= 2)
* | mutt_map_get_value() | Lookup the constant for a string
*/
-#include "mapping.h"
#include <stddef.h>
+#include "mapping.h"
#include "string2.h"
/**
hdr->content->offset = ftello(f);
/* do RFC2047 decoding */
- rfc2047_decode_adrlist(e->from);
- rfc2047_decode_adrlist(e->to);
- rfc2047_decode_adrlist(e->cc);
- rfc2047_decode_adrlist(e->bcc);
- rfc2047_decode_adrlist(e->reply_to);
- rfc2047_decode_adrlist(e->mail_followup_to);
- rfc2047_decode_adrlist(e->return_path);
- rfc2047_decode_adrlist(e->sender);
- rfc2047_decode_adrlist(e->x_original_to);
+ rfc2047_decode_addrlist(e->from);
+ rfc2047_decode_addrlist(e->to);
+ rfc2047_decode_addrlist(e->cc);
+ rfc2047_decode_addrlist(e->bcc);
+ rfc2047_decode_addrlist(e->reply_to);
+ rfc2047_decode_addrlist(e->mail_followup_to);
+ rfc2047_decode_addrlist(e->return_path);
+ rfc2047_decode_addrlist(e->sender);
+ rfc2047_decode_addrlist(e->x_original_to);
if (e->subject)
{
return false;
}
-static int match_adrlist(struct Pattern *pat, int match_personal, int n, ...)
+static int match_addrlist(struct Pattern *pat, int match_personal, int n, ...)
{
va_list ap;
case MUTT_SENDER:
if (!h->env)
return 0;
- return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1,
- h->env->sender));
+ return (pat->not ^ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1,
+ h->env->sender));
case MUTT_FROM:
if (!h->env)
return 0;
return (pat->not ^
- match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->from));
+ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->from));
case MUTT_TO:
if (!h->env)
return 0;
return (pat->not ^
- match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->to));
+ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->to));
case MUTT_CC:
if (!h->env)
return 0;
return (pat->not ^
- match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->cc));
+ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 1, h->env->cc));
case MUTT_SUBJECT:
if (!h->env)
return 0;
case MUTT_ADDRESS:
if (!h->env)
return 0;
- return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 4,
- h->env->from, h->env->sender, h->env->to,
- h->env->cc));
+ return (pat->not ^ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 4,
+ h->env->from, h->env->sender,
+ h->env->to, h->env->cc));
case MUTT_RECIPIENT:
if (!h->env)
return 0;
- return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 2,
- h->env->to, h->env->cc));
+ return (pat->not ^ match_addrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 2,
+ h->env->to, h->env->cc));
case MUTT_LIST: /* known list, subscribed or not */
if (!h->env)
return 0;
*pd = e;
}
-void rfc2047_encode_adrlist(struct Address *addr, const char *tag)
+void rfc2047_encode_addrlist(struct Address *addr, const char *tag)
{
struct Address *ptr = addr;
int col = tag ? strlen(tag) + 2 : 32;
mutt_str_adjust(pd);
}
-void rfc2047_decode_adrlist(struct Address *a)
+void rfc2047_decode_addrlist(struct Address *a)
{
while (a)
{
int convert_nonmime_string(char **ps);
void rfc2047_encode_string(char **pd, int encode_specials, int col);
-void rfc2047_encode_adrlist(struct Address *addr, const char *tag);
+void rfc2047_encode_addrlist(struct Address *addr, const char *tag);
#define rfc2047_encode_string32(a) rfc2047_encode_string(a, 0, 32);
void rfc2047_decode(char **pd);
-void rfc2047_decode_adrlist(struct Address *a);
+void rfc2047_decode_addrlist(struct Address *a);
#endif /* _MUTT_RFC2047_H */
}
/* Take care of 8-bit => 7-bit conversion. */
- rfc2047_encode_adrlist(env->to, "To");
- rfc2047_encode_adrlist(env->cc, "Cc");
- rfc2047_encode_adrlist(env->bcc, "Bcc");
- rfc2047_encode_adrlist(env->from, "From");
- rfc2047_encode_adrlist(env->mail_followup_to, "Mail-Followup-To");
- rfc2047_encode_adrlist(env->reply_to, "Reply-To");
+ rfc2047_encode_addrlist(env->to, "To");
+ rfc2047_encode_addrlist(env->cc, "Cc");
+ rfc2047_encode_addrlist(env->bcc, "Bcc");
+ rfc2047_encode_addrlist(env->from, "From");
+ rfc2047_encode_addrlist(env->mail_followup_to, "Mail-Followup-To");
+ rfc2047_encode_addrlist(env->reply_to, "Reply-To");
if (env->subject)
#ifdef USE_NNTP
mutt_addr_free(&env->mail_followup_to);
/* back conversions */
- rfc2047_decode_adrlist(env->to);
- rfc2047_decode_adrlist(env->cc);
- rfc2047_decode_adrlist(env->bcc);
- rfc2047_decode_adrlist(env->from);
- rfc2047_decode_adrlist(env->reply_to);
+ rfc2047_decode_addrlist(env->to);
+ rfc2047_decode_addrlist(env->cc);
+ rfc2047_decode_addrlist(env->bcc);
+ rfc2047_decode_addrlist(env->from);
+ rfc2047_decode_addrlist(env->reply_to);
rfc2047_decode(&env->subject);
}
if (fqdn)
mutt_addr_qualify(from, fqdn);
- rfc2047_encode_adrlist(from, "Resent-From");
+ rfc2047_encode_addrlist(from, "Resent-From");
if (mutt_addrlist_to_intl(from, &err))
{
mutt_error(_("Bad IDN %s while preparing resent-from."), err);
* list being bounced to.
*/
resent_to = mutt_addr_copy_list(to, false);
- rfc2047_encode_adrlist(resent_to, "Resent-To");
+ rfc2047_encode_addrlist(resent_to, "Resent-To");
ret = bounce_message(fp, h, resent_to, resent_from, from);
}
/* RFC2047 decode after the RFC822 parsing */
- rfc2047_decode_adrlist(e->from);
- rfc2047_decode_adrlist(e->to);
- rfc2047_decode_adrlist(e->cc);
- rfc2047_decode_adrlist(e->bcc);
- rfc2047_decode_adrlist(e->reply_to);
- rfc2047_decode_adrlist(e->mail_followup_to);
- rfc2047_decode_adrlist(e->return_path);
- rfc2047_decode_adrlist(e->sender);
+ rfc2047_decode_addrlist(e->from);
+ rfc2047_decode_addrlist(e->to);
+ rfc2047_decode_addrlist(e->cc);
+ rfc2047_decode_addrlist(e->bcc);
+ rfc2047_decode_addrlist(e->reply_to);
+ rfc2047_decode_addrlist(e->mail_followup_to);
+ rfc2047_decode_addrlist(e->return_path);
+ rfc2047_decode_addrlist(e->sender);
rfc2047_decode(&e->x_label);
rfc2047_decode(&e->subject);