X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/102679e27468bf6f8e1da24ccb9b0d93c489ec7e..6d281f8bdeb78dbc40dc04bf9ad714d0aefb6163:/sbr/folder_addmsg.c diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index 401896a8..1af116cb 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -20,7 +20,7 @@ int folder_addmsg (struct msgs **mpp, char *msgfile, int selected, - int unseen, int preserve, int deleting) + int unseen, int preserve, int deleting, char *from_dir) { int infd, outfd, linkerr, first_time, msgnum; char *nmsg, newmsg[BUFSIZ]; @@ -142,7 +142,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected, if (link (msgfile, newmsg) != -1) { if (deleting) { - (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", pwd(), msgfile); + (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", from_dir, msgfile); (void)ext_hook("ref-hook", oldmsg, newmsg); } else @@ -198,7 +198,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected, close (outfd); if (deleting) { - (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", pwd(), msgfile); + (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", from_dir, msgfile); (void)ext_hook("ref-hook", oldmsg, newmsg); } else