X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_pack.c;h=bebc145bdd5c0f46a89b894e4bbe98d3401eecde;hp=7a661a5348f5fee65fb2d81d95fd8bc23fc9e41a;hb=a259594cc41e41bfbb90562d3977b8194d1446f5;hpb=982194e9f1c9e4718b4857b300fc3ab8b16c8f6b diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 7a661a5..bebc145 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -59,6 +59,14 @@ folder_pack (struct msgs **mpp, int verbose) return -1; } + /* + * Invoke the external refile hook for each message being renamed. + */ + + (void)snprintf(oldmsg, sizeof (oldmsg), "%s/%d", mp->foldpath, msgnum); + (void)snprintf(newmsg, sizeof (newmsg), "%s/%d", mp->foldpath, hole); + ext_hook("ref-hook", oldmsg, newmsg); + /* check if this is the current message */ if (msgnum == mp->curmsg) newcurrent = hole;