]> Sergey Matveev's repositories - public-inbox.git/commitdiff
learn: set_list_headers on training
authorEric Wong <e@80x24.org>
Mon, 5 May 2014 08:48:13 +0000 (08:48 +0000)
committerEric Wong <e@80x24.org>
Mon, 5 May 2014 08:48:13 +0000 (08:48 +0000)
This is idempotent, and should actually/really prevent training
loops.

public-inbox-learn

index bb130b215fc686ac82b37ec4351460251e7ef167..13b75b763cfc9d3280011b29a237065d013de987 100755 (executable)
@@ -56,6 +56,7 @@ foreach my $recipient (keys %dests) {
                # no checking for errors here, we assume the message has
                # been reviewed by a human at this point:
                PublicInbox::Filter->run($mime);
+               PublicInbox::MDA->set_list_headers($mime, $dst);
 
                my ($name, $email, $date) =
                                PublicInbox::MDA->author_info($mime);