On Sun, Apr 3, 2016 at 4:48 AM, Cameron Simpson <c...@zip.com.au> wrote: > On 03Apr2016 02:36, Xu Wang <xuwang...@gmail.com> wrote: >> >> I use mutt + offlineimap. Can I delete an email manually with "rm" >> command? For example, can I delete all files in .mail/folder/cur and >> .mail/folder/new with "rm" command? Will this be equivalent to if I do >> delete from inside mutt? > > > Yes. > >> Similar note: can I move files between folders with "mv" command and >> be equivalent to mutt moving the email? > > > Yes. > >> I'm wondering if I get myself into trouble by doing something manually. > > > Not really. The worst that happens is if you have mutt open on that folder > and you move or remove a message from outside. And then "delete" it with > mutt. Or you could read a message from mutt, then "rm/mv" it from outside. > > Either way, when you next sync the folder with mutt (eg by changing folders, > exiting mutt or using its "<sync>" command - usually bound to "$"). Then > mutt can complain "file not found" because it expects to adjust the file, > and you will need to quit mutt "uncleanly". This only results in some > messages not getting marked as "read" by mutt, or some messages you marked > for deletion inside mutt not getting deleted. > > So on the whole it is very safe. > > Cheers, > Cameron Simpson <c...@zip.com.au>
Thank you so much, Cameron! Kind regards, Xu