X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=f94fe4c5a597c0e96f5b7f4cc1230b4a7945316c;hp=6ecac7f6105be7b1bfedacb15e5f2e055aa1d2a0;hb=91d0c04349c9345f0ee29a61cc18dfc144b60edc;hpb=238b70e39b78f585c586bd51aef41988b3cc73d1 diff --git a/compose.c b/compose.c index 6ecac7f..f94fe4c 100644 --- a/compose.c +++ b/compose.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "mutt.h" #include "enter.h" @@ -29,7 +30,6 @@ #include "mime.h" #include "attach.h" #include "recvattach.h" -#include "mapping.h" #include "sort.h" #include "charset.h" #include "mx.h" @@ -622,7 +622,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ && buf[0]) { p_delete(&msg->env->newsgroups); str_skip_trailws (buf); - msg->env->newsgroups = m_strdup(str_skip_initws (buf)); + msg->env->newsgroups = m_strdup(vskipspaces(buf)); move (HDR_TO, HDR_XOFFSET); clrtoeol (); if (msg->env->newsgroups) @@ -640,7 +640,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ && buf[0]) { p_delete(&msg->env->followup_to); str_skip_trailws (buf); - msg->env->followup_to = m_strdup(str_skip_initws (buf)); + msg->env->followup_to = m_strdup(vskipspaces(buf)); move (HDR_CC, HDR_XOFFSET); clrtoeol (); if (msg->env->followup_to)