X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=e6fac04fde08a880dc376cee351719cb7a1ef167;hb=e87123959d15f3b190494dffdd8bce335c137874;hp=4567f6d1912f2514df61dbdc79865e04280d213e;hpb=a259594cc41e41bfbb90562d3977b8194d1446f5;p=mmh diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 4567f6d..e6fac04 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -2,8 +2,6 @@ /* * folder_delmsgs.c -- "remove" SELECTED messages from a folder * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -16,7 +14,7 @@ * 2) Else if unlink_msgs is non-zero, then unlink the * SELECTED messages. * 3) Else rename SELECTED messages by prefixing name - * with a standard prefix. + * with backup_prefix. * * If there is an error, return -1, else return 0. */ @@ -93,7 +91,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); }