Removed references to unused default procs and commented config/config.c
[mmh] / sbr / folder_delmsgs.c
index 77131b1..4950330 100644 (file)
@@ -54,7 +54,7 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook)
                vec[vecp] = NULL;
 
                fflush(stdout);
-               vec[0] = r1bindex(rmmproc, '/');
+               vec[0] = mhbasename(rmmproc);
 
                switch (pid = vfork()) {
                case -1:
@@ -92,8 +92,9 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook)
                        */
 
                        if (!nohook) {
-                               (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum);
-                               (void)ext_hook("del-hook", msgpath, (char *)0);
+                               snprintf(msgpath, sizeof (msgpath), "%s/%d",
+                                               mp->foldpath, msgnum);
+                               ext_hook("del-hook", msgpath, NULL);
                        }
 
                        dp = m_name(msgnum);