Re: [BUG] Devices with spaces in names

Subject: Re: [BUG] Devices with spaces in names

Date: Sat, 28 Sep 2024 20:49:22 +0200

To: Pengji Zhang, notmuch@notmuchmail.org

Cc:

From: Nicolas Graves


On 2024-09-28 18:14, Pengji Zhang wrote:

> Hi!
>
> Nicolas Graves <ngraves@ngraves.fr> writes:
>
>> Hi! 
>> 
>> Thanks for notmuch. 
>> 
>> I have a device which for some reason have a space in its name. 
>> It's the default installation, I surely don't remember setting 
>> such a name myself. 
>> 
>> This creates some issues with notmuch, which seems to inject 
>> this variable without quoting it for some mv and rm commands (in 
>> french): 
>> 
>> ```
>> rm: impossible de supprimer 
>> '/home/graves/.local/var/lib/mail/accounts/neleves/sent/cur/1657705346.2877_20663.Precision': 
>> Aucun fichier ou dossier de ce nom
>> rm: impossible de supprimer '3571,U=449:2,S': Aucun fichier ou 
>> dossier de ce nom
>> ``` 
>> 
>> My device name is "Precision 3571" in this case. I can reproduce 
>> the bug for each invocation of "notmuch new". 
>
> I cannot reproduce this in my local environment. Could it be 
> something in your pre-new/post-new hooks?

Oh thanks, it seems indeed that it might come from there. I will post an
update if that was indeed the issue.

Thanks again.

>
> If not, then could you share a recipe to reproduce this issue?
>
> Thanks!
>
> Pengji

-- 
Best regards,
Nicolas Graves
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: