#include <lib-lib/buffer.h>
#include <lib-lib/file.h>
+#include <lib-mime/mime.h>
+
#include "mutt.h"
#include "enter.h"
#include "mutt_curses.h"
-#include "mime.h"
#include "mx.h"
#include "url.h"
#include "attach.h"
case '@':
{
HEADER *h;
- ADDRESS *alias;
+ address_t *alias;
if ((alias = mutt_lookup_alias (s + 1))) {
h = mutt_new_header ();
for (q = *p; q; q = q->next) {
if (ascii_strcasecmp (attribute, q->attribute) == 0) {
- str_replace (&q->value, value);
+ m_strreplace(&q->value, value);
return;
}
}
{
if (!*p)
return;
- rfc822_free_address (&(*p)->return_path);
- rfc822_free_address (&(*p)->from);
- rfc822_free_address (&(*p)->to);
- rfc822_free_address (&(*p)->cc);
- rfc822_free_address (&(*p)->bcc);
- rfc822_free_address (&(*p)->sender);
- rfc822_free_address (&(*p)->reply_to);
- rfc822_free_address (&(*p)->mail_followup_to);
+ address_delete (&(*p)->return_path);
+ address_delete (&(*p)->from);
+ address_delete (&(*p)->to);
+ address_delete (&(*p)->cc);
+ address_delete (&(*p)->bcc);
+ address_delete (&(*p)->sender);
+ address_delete (&(*p)->reply_to);
+ address_delete (&(*p)->mail_followup_to);
p_delete(&(*p)->list_post);
p_delete(&(*p)->subject);
t = *p;
*p = (*p)->next;
p_delete(&t->name);
- rfc822_free_address (&t->addr);
+ address_delete (&t->addr);
p_delete(&t);
}
}
(_("File is a directory, save under it? [(y)es, (n)o, (a)ll]"),
_("yna"))) {
case 3: /* all */
- str_replace (directory, fname);
+ m_strreplace(directory, fname);
break;
case 1: /* yes */
p_delete(directory);
return 0;
}
-void mutt_save_path (char *d, size_t dsize, ADDRESS * a)
+void mutt_save_path (char *d, size_t dsize, address_t * a)
{
if (a && a->mailbox) {
m_strcpy(d, dsize, a->mailbox);
*d = 0;
}
-void mutt_safe_path (char *s, size_t l, ADDRESS * a)
+void mutt_safe_path (char *s, size_t l, address_t * a)
{
char *p;
}
/* return 1 if address lists are strictly identical */
-int mutt_cmp_addr (const ADDRESS * a, const ADDRESS * b)
+int mutt_cmp_addr (const address_t * a, const address_t * b)
{
while (a && b) {
if (m_strcmp(a->mailbox, b->mailbox) ||