int infd, outfd, linkerr, first_time, msgnum;
char *nmsg, newmsg[BUFSIZ];
char oldmsg[BUFSIZ];
- struct msgs *op;
struct msgs *mp;
struct stat st1, st2;
if (link (msgfile, newmsg) != -1) {
if (deleting) {
- op = folder_read(getfolder(1));
- (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", op->foldpath, msgfile);
- folder_free(op);
+ (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%s", pwd(), msgfile);
(void)ext_hook("ref-hook", oldmsg, newmsg);
}
else