t9001-send-email.sh: update alias list used for pine test

The set of aliases used for the pine --dump-aliases test do not perfectly mesh with the way the pine address book is defined. While technically all valid, there are some oddities including bob's name being partially split so that the actual address is returned as "Bobbyton <bob@example.com>". A strict reading of the pine documentation indicates that the address should either be of the form "address@domain" or a comma separated list of address, name/address pairs, or other aliases enclosed by (). The parsing implementation in git-send-email is not as strict, but it makes sense to ensure the test data used is. Although the --dump-aliases test does not make use of the address data, it is helpful to avoid giving future developers the wrong impression of the file format. Also add an alias which translates to multiple addresses using the () format. Signed-off-by: Jacob Keller <jacob.keller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jacob Keller committed Aug 13, 2024 at 17:05 UTC bbc04b0094621bdd6d1e60c1cd96c64d916d3339
1 file changed +5 -3
t/t9001-send-email.sh
+5 -3
@@ -2093,13 +2093,15 @@ test_dump_aliases '--dump-aliases mailrc format' \
2093 test_dump_aliases '--dump-aliases pine format' \
2094 'pine' \
2095 'alice' \
2096 + 'bcgrp' \
2097 'bob' \
2098 'chloe' \
2099 'eve' <<-\EOF
2099 - alice Alice W Land <awol@example.com>
2100 - eve Eve <eve@example.com>
2101 - bob Robert Bobbyton <bob@example.com>
2100 + alice Alice W Land awol@example.com Friend
2101 + eve Eve eve@example.com
2102 + bob Robert Bobbyton bob@example.com
2103 chloe chloe@example.com
2104 + bcgrp (bob, chloe, Other <o@example.com>)
2105 EOF
2106
2107 test_dump_aliases '--dump-aliases gnus format' \