[neomutt-users] From: field wrongly filled

Gilles Lamboley gilles.lamboley at yahoo.fr
Sun Aug 4 11:43:02 CEST 2019


Le dim. 04 ao??t 2019 ?? 10:59:27, Elimar Riesebieter a ??crit :
>* gilles.lamboley at yahoo.fr <gilles.lamboley at yahoo.fr> [2019-08-03 22:41 +0200]:
>
>> Hello,
>>
>> I'm new to this mailing list in with using neomutt as well, so I thank you
>> for any help you could bring.
>>
>> I have 4 accounts, using mbsync to work with local mailboxes, and I noticed
>> the From field in message I sent is always filled this way :
>> gilles <my_adressmail at account>.
>>
>> This cause the message to be flagged sometimes.
>>
>> To be precise:
>> - mail with no 'From: ' field at all (line deleted)  => not marked as  spam;
>> - with From: Gilles Lamboley <my_adressemail at account> => not marked as
>> spam;
>> - with From: <my_adressemail at account> => not spam;
>> - with From: gilles <my_adressmail at account> => marked as SPAM
>>
>> I would like to have te proprer 'From: ' field, but didn't succeed.
>>
>> 1) I don't know where this "gilles" comes from; well, it's my username in my
>> ubuntu computer (and my first name, appearing in my mail adresse), but
>> nothing like "gilles" alone in my config files; I source different files
>> with folder hook depending on account, with "set from=my_adresse at ..."
>>
>> 2) I tried to remove the 'From field' with :
>> - unmy_hdr *
>> - my_hdr from <my_adressmail at account>
>> ... but still got From: gilles <my_adressmail at account>
>>
>> 3) Finally removed the "set from=... " and "my_hdr from ...", keeping only
>> unmy_hdr * and still got a From Field like "From: gilles
>> gilles at mycomputername"
>>
>> So, is there a way to have the proprer From field, that is :
>> - '<my_adressemail at account>' - or 'Gilles Lamboley <my_adressemail at account>'
>> - but not 'gilles <my_adressemail at account>' ?
>
>Well just try as follows:
>
>unhook *
>folder-hook . unmy_hdr *
>folder-hook . set from="gilles.lamboley at yahoo.fr"
>set realname="Gilles Lamboley"
>
>'set from' can be altered to any folder or account you want.
>
>
>Elimar
>-- 
>  Excellent day for drinking heavily.
>  Spike the office water cooler;-)

Thanks a lot; the "set realname="Gilles Lamboley" does the trick; I 
already have folder-hooks to source account file with "set from" in it.

-- 
Gilles Lamboley


More information about the neomutt-users mailing list