Ouch. It's really unfortunate if notmuch-mutt makes it that easy to throw away your email.
That sounds like a nasty bug that should be fixed in that program. As for recovering, I suppose there _is_ a fair amount of detail in your notmuch index from all of the position-indexed terms, (as long as you haven't run "notmuch new" again since the mail was deleted). If you still have a large Xapian database in the notmuch database directory, it would be theoretically possible to recover a lot of the email content. But I don't know that anyone has ever written a recovery tool to help with that process. -Carl On Mon, Apr 03 2023, Fulvio Pizzigoni wrote: > On Mon, Apr 03, 2023 at 08:39:02PM +0200, Michael J Gruber wrote: >> Am Mo., 3. Apr. 2023 um 20:17 Uhr schrieb Fulvio Pizzigoni >> <fulviopizzig...@libero.it>: >> > >> > >> > >> > >> > >> > >> > Hi Carl e thanks for your prompt answer. >> > >> > As you suggested, I add notmuch@notmuchmail.org email as well. >> > >> > This is what I did: >> > fulvio@linux:~$ notmuch setup >> > Your full name [fulvio]: >> > Your primary email address [my address]: return >> > Additional email address [Press 'Enter' if none]: return >> > Top-level directory of your email archive [/home/fulvio/.mutt]: return >> > Tags to apply to all new messages (separated by spaces) [unread inbox]: >> > return >> > Tags to exclude when searching messages (separated by spaces) [deleted >> > spam]: return >> > fulvio@linux:~$ >> > >> > After this my .mutt directory (~ 4 GB di mail-boxess) appears so: >> > fulvio@linux:~$ ll .mutt >> > totale 12 >> > drwxr-xr-x 2 fulvio fulvio 4096 18 feb 20.32 cur >> > drwxr-xr-x 2 fulvio fulvio 4096 18 feb 20.32 new >> > drwxr-xr-x 2 fulvio fulvio 4096 18 feb 20.32 tmp >> > fulvio@linux:~$ du -h .mutt >> > 4,0K .mutt/new >> > 4,0K .mutt/tmp >> > 4,0K .mutt/cur >> > 16K .mutt >> > >> > That's all. >> > >> > Terrible! >> > >> > What happened? >> > >> > Thanks in advance. >> > >> > Fulvio > > Hi Michael. > >> >> First of all: Do you have a back-up? > > GRRRR, no :-(( > >> >> notmuch itself does not delete mails, as Carl pointed out. In addition >> to notmuch you mentioned notmuch-mutt. Did you run that manually or >> using some mutt config? > > Yes I did this manually: > fulvio@linux:~$ notmuch-mutt -o .mutt/<mail-box> search <SEARCH-TERM> > >> It creates a maildir of symlinks with search >> results. In order to do so, it deletes the maildir ... > > I think that's the cause. > > ... And I think it's irreparable. Am I wrong? > > Thanks in advance. > > Fulvio > >> Usually this sits in a cache dir, though. >> >> Michael >> >> > On Mon, Apr 03, 2023 at 09:27:22AM -0700, Carl Worth wrote: >> > > Hi Fulvio, >> > > >> > > I've never used notmuch-mutt. >> > > >> > > But notmuch itself doesn't delete any mail. It's really paranoid that >> > > way, (knowing how valuable mail is). >> > > >> > > I would suggest you write an email to the notmuch@notmuchmail.org >> > > mailing list where you will be able to reach more people likely to have >> > > experience with all of the software you were using. >> > > >> > > And if you could provide more details on the actual steps you used, that >> > > would be useful. For example, you said "configuration process" and "at >> > > the end". But what actual commands were you running on those steps, for >> > > example? >> > > >> > > -Carl >> > > >> > > On Mon, Apr 03 2023, Fulvio Pizzigoni wrote: >> > > > Hi. >> > > > >> > > > I have installed packages notmuch and notmuch-mutt. >> > > > >> > > > During configuration process I have indicated the directory used from >> > > > Mutt for your mail-boxes. >> > > > >> > > > The configuration process have not indicated any allert. >> > > > >> > > > At the end the mail-boxes in that directory was removed; 3 new >> > > > empty sub-directory were created: cur, new, tmp. >> > > > >> > > > Was the data irremediably lost? >> > > > >> > > > Thanks in advance. >> > > > >> > > > Fulvio Pizzigoni >> > _______________________________________________ >> > notmuch mailing list -- notmuch@notmuchmail.org >> > To unsubscribe send an email to notmuch-le...@notmuchmail.org _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org