Strange behavior on manually files moving

Subject: Strange behavior on manually files moving

Date: Wed, 20 Mar 2013 10:02:20 +0100

To: notmuch@notmuchmail.org

Cc:

From: kedals0@gmail.com


Hello,

When I manually move some messages, these changes are detected by
notmuch but it doesn't remove these files of its database.
I think, it's more clear to show you an example:

1) Initialisation
   toto@compaq:~$ notmuch new
   No new mail.

2) I show you the initial location of the message that we will move
   toto@compaq:~$ ls /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS
   /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS

3) we move this message
   toto@compaq:~$ mv /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS /home/toto/mail/local/trash/cur/

4) we update notmuch database
   toto@compaq:~$ notmuch new
   Processed 1 file in almost no time.
   No new mail. Removed 1 message.

5) we can observe that old message location still exist in the db
   toto@compaq:~$ notmuch search --output=files tag:draft folder:local/trash/
   /home/toto/mail/local/trash/cur/#*message*-20130312-163131#:2,DS
   /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS

6) but no file exist at this location.
   toto@compaq:~$ ls /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS
   ls: impossible d'accéder à /home/toto/mail/drafts/cur/#*message*-20130312-163131#:2,DS: Aucun fichier ou dossier de ce type


I don't understand this problem because this usecase is close from a
file deletion which works.

Would anyone have an idea ?

Thx,
Dal.


Thread: