move rfc2047.c into lib-mime, reindent it.
[apps/madmutt.git] / recvattach.c
index 1121d2d..91428f1 100644 (file)
@@ -19,6 +19,8 @@
 #include <lib-lib/file.h>
 #include <lib-lib/mapping.h>
 
+#include <lib-mime/mime.h>
+
 #include "mutt.h"
 #include "enter.h"
 #include "handler.h"
@@ -26,7 +28,6 @@
 #include "mutt_curses.h"
 #include "mutt_menu.h"
 #include "rfc1524.h"
-#include "mime.h"
 #include "attach.h"
 #include "mx.h"
 #include "copy.h"
@@ -104,7 +105,7 @@ void mutt_update_tree (ATTACHPTR ** idx, short idxlen)
 
     if (idx[x]->tree) {
       if (m_strcmp(idx[x]->tree, buf) != 0)
-        str_replace (&idx[x]->tree, buf);
+        m_strreplace(&idx[x]->tree, buf);
     }
     else
       idx[x]->tree = m_strdup(buf);