]> Sergey Matveev's repositories - public-inbox.git/commit
inboxwritable: mime_from_path: reuse in more places
authorEric Wong <e@yhbt.net>
Sat, 18 Apr 2020 03:38:46 +0000 (03:38 +0000)
committerEric Wong <e@yhbt.net>
Sun, 19 Apr 2020 08:51:17 +0000 (08:51 +0000)
commit0f6b0cac5bf10d036a84dbab732e8991edf56c34
tree043acb6313f02f5c3e934cdd48a7730c375defb7
parentd0147582e289fdd4cdd84e91d8b0f8ae9c230124
inboxwritable: mime_from_path: reuse in more places

There's nothing Maildir-specific about the function, so
`maildir_path_load' was a bad name.  So give it a more
appropriate name and use it in our tests.

This save ourselves some code and inconsistency by reusing an
existing internal library routine in more places.  We can drop
the "From_" line in some of our (formerly) mbox sample files.
MANIFEST
lib/PublicInbox/InboxWritable.pm
lib/PublicInbox/WatchMaildir.pm
script/public-inbox-edit
t/iso-2202-jp.eml [moved from t/iso-2202-jp.mbox with 84% similarity]
t/mda.t
t/msg_iter.t
t/nntpd-tls.t
t/search.t
t/solver_git.t
t/utf8.eml [moved from t/utf8.mbox with 90% similarity]