projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
begin to move rfc2047 into lib-mime.
[apps/madmutt.git]
/
sendlib.c
diff --git
a/sendlib.c
b/sendlib.c
index
33b7e9a
..
2a62bd3
100644
(file)
--- a/
sendlib.c
+++ b/
sendlib.c
@@
-25,7
+25,6
@@
#include "handler.h"
#include "recvattach.h"
#include "mutt_curses.h"
#include "handler.h"
#include "recvattach.h"
#include "mutt_curses.h"
-#include "rfc2047.h"
#include "mx.h"
#include "copy.h"
#include "pager.h"
#include "mx.h"
#include "copy.h"
#include "pager.h"
@@
-297,7
+296,7
@@
int mutt_write_mime_header (BODY * a, FILE * f)
buffer[0] = 0;
tmp = m_strdup(p->value);
encode = rfc2231_encode_string (&tmp);
buffer[0] = 0;
tmp = m_strdup(p->value);
encode = rfc2231_encode_string (&tmp);
- rfc822_
cat (buffer, sizeof
(buffer), tmp, MimeSpecials);
+ rfc822_
strcpy(buffer, sizeof
(buffer), tmp, MimeSpecials);
/* Dirty hack to make messages readable by Outlook Express
* for the Mac: force quotes around the boundary parameter
/* Dirty hack to make messages readable by Outlook Express
* for the Mac: force quotes around the boundary parameter
@@
-349,7
+348,7
@@
int mutt_write_mime_header (BODY * a, FILE * f)
buffer[0] = 0;
tmp = m_strdup(t);
encode = rfc2231_encode_string (&tmp);
buffer[0] = 0;
tmp = m_strdup(t);
encode = rfc2231_encode_string (&tmp);
- rfc822_
cat (buffer, sizeof
(buffer), tmp, MimeSpecials);
+ rfc822_
strcpy(buffer, sizeof
(buffer), tmp, MimeSpecials);
p_delete(&tmp);
fprintf (f, "; filename%s=%s", encode ? "*" : "", buffer);
}
p_delete(&tmp);
fprintf (f, "; filename%s=%s", encode ? "*" : "", buffer);
}
@@
-2148,13
+2147,13
@@
void mutt_prepare_envelope (ENVELOPE * env, int final)
* recipients if there is no To: or Cc: field, so attempt to suppress
* it by using an empty To: field.
*/
* recipients if there is no To: or Cc: field, so attempt to suppress
* it by using an empty To: field.
*/
- env->to =
rfc822_new_address
();
+ env->to =
address_new
();
env->to->group = 1;
env->to->group = 1;
- env->to->next =
rfc822_new_address
();
+ env->to->next =
address_new
();
buffer[0] = 0;
buffer[0] = 0;
- rfc822_
cat (buffer, sizeof
(buffer), "undisclosed-recipients",
- RFC822Specials);
+ rfc822_
strcpy(buffer, sizeof
(buffer), "undisclosed-recipients",
+
RFC822Specials);
env->to->mailbox = m_strdup(buffer);
}
env->to->mailbox = m_strdup(buffer);
}
@@
-2190,7
+2189,7
@@
void mutt_unprepare_envelope (ENVELOPE * env)
for (item = env->userhdrs; item; item = item->next)
rfc2047_decode (&item->data);
for (item = env->userhdrs; item; item = item->next)
rfc2047_decode (&item->data);
-
rfc822_free_address
(&env->mail_followup_to);
+
address_delete
(&env->mail_followup_to);
/* back conversions */
rfc2047_decode_adrlist (env->to);
/* back conversions */
rfc2047_decode_adrlist (env->to);
@@
-2282,7
+2281,7
@@
int mutt_bounce_message (FILE * fp, HEADER * h, address_t * to)
ret = _mutt_bounce_message (fp, h, to, resent_from, from);
ret = _mutt_bounce_message (fp, h, to, resent_from, from);
-
rfc822_free_address
(&from);
+
address_delete
(&from);
return ret;
}
return ret;
}
@@
-2311,7
+2310,7
@@
address_t *mutt_remove_duplicates (address_t * addr)
*last = addr->next;
addr->next = NULL;
*last = addr->next;
addr->next = NULL;
-
rfc822_free_address
(&addr);
+
address_delete
(&addr);
addr = *last;
}
addr = *last;
}