Fixed bug that was producing an incorrect path for the external hook.
authorJon Steinhart <jon@fourwinds.com>
Tue, 12 Oct 2004 20:31:14 +0000 (20:31 +0000)
committerJon Steinhart <jon@fourwinds.com>
Tue, 12 Oct 2004 20:31:14 +0000 (20:31 +0000)
sbr/folder_delmsgs.c

index 4567f6d..20ac1a5 100644 (file)
@@ -93,7 +93,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
             */
 
            if (!nohook) {
-                   (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", getcwd(msgpath, sizeof (msgpath)), msgnum);
+                   (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum);
                    (void)ext_hook("del-hook", msgpath, (char *)0);
                }