X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=rfc1524.c;h=6c6d31746f5db55762bef188f734208fab6bc1dc;hb=97677c08933e16e25ecb3c12473ef1efdab7962b;hp=d45c4745c8a45799a59dc26f2ac795b997754ef1;hpb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13;p=apps%2Fmadmutt.git diff --git a/rfc1524.c b/rfc1524.c index d45c474..6c6d317 100644 --- a/rfc1524.c +++ b/rfc1524.c @@ -21,27 +21,28 @@ # include "config.h" #endif +#include +#include +#include + +#include +#include +#include +#include + #include #include #include #include #include +#include + +#include #include "mutt.h" #include "rfc1524.h" #include "attach.h" -#include "lib/debug.h" - -#include -#include -#include - -#include -#include -#include -#include - /* The command semantics include the following: * %s is the filename that contains the mail body data * %t is the content type, like text/plain @@ -132,7 +133,7 @@ static char *get_field (char *s) break; } } - str_skip_trailws (s); + m_strrtrim(s); return ch; } @@ -143,7 +144,7 @@ static int get_field_text (char *field, char **entry, if (*field == '=') { if (entry) { field = vskipspaces(field + 1); - str_replace (entry, field); + m_strreplace(entry, field); } return 1; }