]> git.marmaro.de Git - mmh/blobdiff - sbr/folder_pack.c
Fixed typo in comment.
[mmh] / sbr / folder_pack.c
index 05365a86a3a3b29a2a9c250f5a908c308ae7c5e1..bebc145bdd5c0f46a89b894e4bbe98d3401eecde 100644 (file)
@@ -4,6 +4,10 @@
  *               -- into a contiguous range from 1 to n.
  *
  * $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.
  */
 
 #include <h/mh.h>
@@ -55,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;