On Thursday Sep 27 2018, Joe Corneli wrote:
> Maybe this is a clue about the source of the time-sink. Is it easy to
> get mu to return a a report similar to these when I run
> "mu4e-update-mail-and-index"?
>
> $ mu index
> indexing messages under /Users/joe/Maildir [/Users/joe/.mu/xapian]
> | processing mail; processed: 21375; updated/new: 0, cleaned-up: 0
> cleaning up messages [/Users/joe/.mu/xapian]
> - processing mail; processed: 21409; updated/new: 0, cleaned-up: 26
> elapsed: 24 second(s), ~ 892 msg/s
> \ processing mail; processed: 21409; updated/new: 0, cleaned-up: 26
> elapsed: 25 second(s), ~ 856 msg/s
>
> Immediately after:
>
> $ mu index
> indexing messages under /Users/joe/Maildir [/Users/joe/.mu/xapian]
> | processing mail; processed: 21375; updated/new: 0, cleaned-up: 0
> cleaning up messages [/Users/joe/.mu/xapian]
> - processing mail; processed: 21383; updated/new: 0, cleaned-up: 0
> elapsed: 1 second(s), ~ 21383 msg/s
> \ processing mail; processed: 21383; updated/new: 0, cleaned-up: 0
> elapsed: 2 second(s), ~ 10691 msg/s
At least on Linux, the seconds is expected to be much faster, since the
kernel caches many things during the first round.
If it's much faster when you were using Ubuntu, the problem's likely to
be something Mac specific... perhaps the file-system or something else.
From an earlier comment:
,----
| This leads me to a quite simple idea: Is there an easy way to remove
| old email from the local database, but not cause it to be deleted from
| the server? If that's exactly what "mu remove" does, OK! But I
| thought I should check. "mu help remove" gives a one-line summary
| that sounds like it is the right thing, but I'm not 100% confident.
`----
mu cleanup removes messages from the database for which there are
no longer corresponding files in the file system.
mu doesn't know anything about remote servers; that's done by mbsync or
offlineimap or .... mu4e (not mu) can ask these programs to do their
thing, but that's about as far as the integration goes.
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C