X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=20ac1a5723e97d68c4ffb8475be94bf47e2a59e8;hp=4567f6d1912f2514df61dbdc79865e04280d213e;hb=0aef47ae5c03e1d9e3f225efe5ae362e7cf5ee35;hpb=a259594cc41e41bfbb90562d3977b8194d1446f5 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 4567f6d..20ac1a5 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -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); }