> Dirk-Jan C. Binnema <
dj...@djcbsoftware.nl> writes:
>
>> mu find subject:mu updates --fields="d f s l" --sortfield="d"
>
> This shed a lot of light on the problem.
>
> For historic reasons I have 2 separate Maildir directories, but today
> one is just a soft link to the other. After doing
>
> mu index --rebuild
>
> mu finds just one of copy of any message. But as soon as I start mu4e,
> mu finds a copy of the message in each of the two directories, until the
> next index rebuild. This does *not* happen when I run mu4e in an Emacs
> without my init files, but I can't find any reference to either of the
> Maildir directories in any of my Emacs config files.
*scratches head*
> So the questions I'm currently struggling with are:
>
> + What affects mu's idea of where the maildirs are?
>
> + How can this be affected by mu4e or other Emacs-related settings?
So, the first time you run mu4e after rebuilding the index, it shows
many more messages? One possibility is that the indexing from emacs uses
another maildir.
When you run mu index from the command line, it should say something
like:
mu: indexing messages under --your-maildir--
that should be same as what is in mu4e-maildir.
Maybe it gets confused by your symlinked dirs; i.e., if you have
/home/foo/Maildir
and
/home/foo/symlink-to-home-foo-Maildir
mu4e will consider the messages as different.
>> I sometimes get messages twice (when using gmail/pop);
>
> Well, I am annoyed by the fact that Gmail likes to stick copies of the
> same message in N different mailboxes, and that all copies show up as
> separate messages in mu4e. But that is unrelated to the current issue (I
> think) and is further down my mu4e-itches-to-scratch list.
I use Gmail-POP, which gives me fewer headaches with this (but then
again, I only use web-Gmail only very occasionally).