]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/DirIdle.pm
dir_idle: treat IN_MOVED_FROM as a gone event
[public-inbox.git] / lib / PublicInbox / DirIdle.pm
index 270d3829bc3e25669a433def9346bca0a0d927ff..9206da9cb710186462ffefd10cb4af0764f7e615 100644 (file)
@@ -14,7 +14,8 @@ if ($^O eq 'linux' && eval { require Linux::Inotify2; 1 }) {
                Linux::Inotify2::IN_CREATE();
        $MAIL_GONE = Linux::Inotify2::IN_DELETE() |
                        Linux::Inotify2::IN_DELETE_SELF() |
-                       Linux::Inotify2::IN_MOVE_SELF();
+                       Linux::Inotify2::IN_MOVE_SELF() |
+                       Linux::Inotify2::IN_MOVED_FROM();
        $ino_cls = 'Linux::Inotify2';
 # Perl 5.22+ is needed for fileno(DIRHANDLE) support:
 } elsif ($^V ge v5.22 && eval { require PublicInbox::KQNotify }) {