On Tuesday May 29 2018, Divan Santana wrote:
> Another example contact with this issue is:
>
> I type Jane<tab> and it completes to:
>
> "Van der Watt, "Van der Watt, Jane" <
Jane.Va...@domain.co.za>
>
> The above is obviously wrong and creates a sending email issue. It
> should be:
>
> "Van der Watt, Jane" <
Jane.Va...@domain.co.za>
>
> If I look at ~/.mu/cache/contacts
>
> I see this contact for instance
>
> --8<---------------cut here---------------start------------->8---
> [janeVvanderwattOdomainVcoVza]
> name=Van der Watt, Jane
> email=
Jane.Va...@domain.co.za
> personal=true
> tstamp=1527581395
> frequency=443
> --8<---------------cut here---------------end--------------->8--
That looks just fine.
> Does the above name field look right? Perhaps it should be enclosed in
> double quotes?
>
> If I look at the email headers for this contact, it appears fine to
> me.
>
> From: "Van der Watt, Jane" <
Jane.Va...@domain.co.za>
>
> I only checked a few email headers with this contact.
Can't reproduce the issue with contacts that have exactly that format.
Let's look at the internal representation... if you evaluate (ie., go to
just beyond the last ')', then C-x C-e) the following, you should get
the internal representation in the *Messages* buffer.
--8<---------------cut here---------------start------------->8---
(maphash (lambda (k v)
(when (string-match "Watt" k) (message "%S" k)))
mu4e~contacts)
--8<---------------cut here---------------end--------------->8---
And check whether that includes
"\"Van der Watt, Jane\" <
Jane.Va...@domain.co.za>"
or some incorrect version.
It could also be that something goes wrong with the inserting... what do
you use for completion? Or are you using any third-party packages that
might interact? Are you using the latest mu/mu4e?