-# Copyright (C) 2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2015-2018 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
use strict;
use warnings;
use Test::More;
PublicInbox::NNTP::set_nntp_headers($mime->header_obj, $ng, 1, $mid);
is_deeply([ $mime->header('Message-ID') ], [ "<$mid>" ],
'Message-ID unchanged');
- is_deeply([ $mime->header('Archived-At') ], [ "<${u}a%40b/>" ],
+ is_deeply([ $mime->header('Archived-At') ], [ "<${u}a\@b/>" ],
'Archived-At: set');
is_deeply([ $mime->header('List-Archive') ], [ "<$u>" ],
'List-Archive: set');
is_deeply([ $mime->header('Message-ID') ], [ "<$mid>" ],
'Message-ID unchanged');
is_deeply([ $mime->header('Archived-At') ],
- [ "<${u}a%40b/>", '<http://mirror.example.com/m/a%40b/>' ],
+ [ "<${u}a\@b/>", '<http://mirror.example.com/m/a@b/>' ],
'Archived-At: appended');
is_deeply([ $mime->header('Xref') ], [ 'example.com test:2' ],
'Old Xref: clobbered');