]> Cypherpunks.ru repositories - nncp.git/blobdiff - doc/news.texi
Move .seen and .hdr to subdirectories
[nncp.git] / doc / news.texi
index c5a7124ee5843078dcb92229b04c5194855836c7..ad825f10b7be2e4a5e5504f2627f39da1e3be1dc 100644 (file)
@@ -12,6 +12,29 @@ Experimental @code{kqueue} and @code{inotify} based notifications
 support about spool directory changes, for reducing their often reading
 overhead.
 
+@item
+@file{.seen} and @file{.hdr} files moved to @file{seen/} and @file{hdr/}
+subdirectories, for faster scanning of spool directories.
+Current files migration required:
+
+@example
+$ find $NNCPSPOOL -type f -name "*.hdr" -exec rm @{@} +
+
+$ find $NNCPSPOOL -type d -name rx | while read rx ; do
+    cd $rx
+    mkdir -p seen
+    find . -type f -name "*.seen" | while read fn ; do
+        mv $fn seen/$@{fn%.seen@}
+    done
+done
+
+$ find $NNCPSPOOL -type d -name area | while read area ; do
+    find $area -type f -name "*.seen" | while read fn ; do
+        mv $fn $@{fn%.seen@}
+    done
+done
+@end example
+
 @end itemize
 
 @node Release 7_6_0