diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-01-14 23:35:21 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-01-14 23:35:21 +0000 |
commit | 3f0cf5ba17204bc6ce9e3c1f197d6b4d66831eb8 (patch) | |
tree | 535ffab233a94885d8ca30aa3ea6830b43e38821 /t | |
parent | bf4630c098ad7159ba36dea6cfe77c4cf6806ffe (diff) | |
download | public-inbox-3f0cf5ba17204bc6ce9e3c1f197d6b4d66831eb8.tar.gz |
Due to the higher latency of a pull-based email, we want to encourage the use of reply-to-all for public-inbox.
Diffstat (limited to 't')
-rw-r--r-- | t/filter.t | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -259,4 +259,24 @@ sub count_body_parts { like($f->simple->as_string, qr/scrubbed/, "scrubbed message"); } +{ + my $s = Email::Simple->create( + header => [ + From => 'a@example.com', + To => 'b@example.com', + 'Content-Type' => 'text/plain', + 'Mail-Followup-To' => 'c@example.com', + Subject => 'mfttest', + ], + body => "mft\n", + ); + + is('c@example.com', $s->header("Mail-Followup-To"), + "mft set correctly"); + my $f = Email::Filter->new(data => $s->as_string); + is(1, PublicInbox::Filter->run($f->simple), "run succeeded for mft"); + is(undef, $f->simple->header("Mail-Followup-To"), "mft stripped"); +} + + done_testing(); |