X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_addmsg.c;fp=sbr%2Ffolder_addmsg.c;h=db2b42f3f649ed6e69858aa7cf694cd1ca474c1a;hp=b3bc8914b74678d9c64e8a5648dbfeef8ce2fe56;hb=d76e9388aabc9946124c5d3347ff5c5333bcd7d3;hpb=150eda989f39dde2dd6112b46c50558cd9bfd5fd diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index b3bc891..db2b42f 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -144,7 +144,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected, if (deleting) { op = folder_read(getfolder(1)); - (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", op->foldpath, msgfile); + (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", pwd(), msgfile); folder_free(op); (void)ext_hook("ref-hook", oldmsg, newmsg); }