diff options
author | Eric Wong <e@80x24.org> | 2021-10-21 21:10:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-22 00:54:48 +0000 |
commit | ef45dcc37abfdf467597f912ec290c4d39218ef6 (patch) | |
tree | 0ad5aa018400bfd74ef8e575b7dc97248bae3cd3 /lib/PublicInbox/DirIdle.pm | |
parent | 0c6132ee390667ad643f6aa6053f978f4267b2e4 (diff) | |
download | public-inbox-ef45dcc37abfdf467597f912ec290c4d39218ef6.tar.gz |
Whether an MUA uses rename(2) or link(2)+unlink(2) combination should not matter to us. We should be able to handle both cases.
Diffstat (limited to 'lib/PublicInbox/DirIdle.pm')
-rw-r--r-- | lib/PublicInbox/DirIdle.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/DirIdle.pm b/lib/PublicInbox/DirIdle.pm index 270d3829..9206da9c 100644 --- a/lib/PublicInbox/DirIdle.pm +++ b/lib/PublicInbox/DirIdle.pm @@ -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 }) { |