I get the following error when calling the msg:from_header().domain method :
somebody@gmail.com: invalid header: 0: at line 1:
TEST [ne_pas_repondre] <test@gmail.com>
^________________________________________
expected ':', found [
1: at line 1, in group:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
2: at line 1, in Alt:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
3: at line 1, in address:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
4: at line 1, in Many1:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
5: at line 1, in obs_address_list:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
6: at line 1, in Alt:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
7: at line 1, in address_list:
TEST [ne_pas_repondre] <test@gmail.com>
^_____________________________________________
stack traceback:
[C]: in method 'from_header'
If i wrap it in double quotes it works (no more errors), but those quotes are visible in the mailbox of the recipient (i tested on Gmail)
I was wondering if there is a way to have a FROM display name with square brackets without showing any quote wrapping in the mailboxes