# Copyright (C) 2017-2021 all contributors <meta@public-inbox.org>
# License: AGPL-3+ <https://www.gnu.org/licenses/agpl-3.0.txt>
use strict;
# Copyright (C) 2017-2021 all contributors <meta@public-inbox.org>
# License: AGPL-3+ <https://www.gnu.org/licenses/agpl-3.0.txt>
use strict;
'--in-reply-to=blah@example.com',
'--to=primary@example.com',
'--cc=cc@example.com',
'--in-reply-to=blah@example.com',
'--to=primary@example.com',
'--cc=cc@example.com',
];
$ibx->{replyto} = ':list,Cc,To';
($arg, $link) = PublicInbox::Reply::mailto_arg_link($ibx, $hdr);
];
$ibx->{replyto} = ':list,Cc,To';
($arg, $link) = PublicInbox::Reply::mailto_arg_link($ibx, $hdr);
'--in-reply-to=blah@example.com',
'--to=from@example$(echo .)com',
'--cc=cc@example$(echo .)com',
'--in-reply-to=blah@example.com',
'--to=from@example$(echo .)com',
'--cc=cc@example$(echo .)com',
];
is_deeply($arg, $exp, 'address obfuscation works');
is($link, '', 'no mailto: link given');
];
is_deeply($arg, $exp, 'address obfuscation works');
is($link, '', 'no mailto: link given');