From 36f1fe3277b507501d8b8f5efbcbb2da9c2e2aa9 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 7 Jan 2011 20:23:14 +0000 Subject: [PATCH] EPub --- magic/Magdir/archive | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/magic/Magdir/archive b/magic/Magdir/archive index 2411b29d..a77e1ebb 100644 --- a/magic/Magdir/archive +++ b/magic/Magdir/archive @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# $File: archive,v 1.59 2010/10/25 22:48:38 christos Exp $ +# $File: archive,v 1.60 2010/10/26 14:08:47 christos Exp $ # archive: file(1) magic for archive formats (see also "msdos" for self- # extracting compressed archives) # @@ -867,3 +867,14 @@ # From: Adam Buchbinder 12 string BB02 Bacula volume >20 bedate x \b, started %s + +# ePub is XHTML + XML inside a ZIP archive. The first member of the +# archive must be an uncompressed file called 'mimetype' with contents +# 'application/epub+zip' + +# start by checking that this is a ZIP archive, then check for the +# proper mimetype file +# From: Ralf Brown +0 string PK\003\004 +>0x1E string mimetypeapplication/epub+zip EPUB document +!:mime application/epub+zip -- 2.40.0