]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
update copyrights for 2018
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 2a33fd291eebf305be595026a365fefcf5bbaa64..c32e7bde92db7f10864be24ee9bcda497b16dd54 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright (C) 2013-2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2013-2018 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # Used for generating Atom feeds for web-accessible mailing list archives.
 package PublicInbox::Feed;
 use strict;
 use warnings;
-use Email::MIME;
+use PublicInbox::MIME;
 use PublicInbox::View;
 use PublicInbox::WwwAtomStream;
 
@@ -39,7 +39,7 @@ sub generate_thread_atom {
        PublicInbox::WwwAtomStream->response($ctx, 200, sub {
                while (my $msg = shift @$msgs) {
                        $msg = $ibx->msg_by_smsg($msg) and
-                                       return Email::MIME->new($msg);
+                               return PublicInbox::MIME->new($msg);
                }
        });
 }
@@ -175,7 +175,7 @@ sub each_recent_blob {
 sub do_cat_mail {
        my ($ibx, $path) = @_;
        my $mime = eval { $ibx->msg_by_path($path) } or return;
-       Email::MIME->new($mime);
+       PublicInbox::MIME->new($mime);
 }
 
 1;