|
23 | 23 | <match-string offset="0">hsi1</match-string> |
24 | 24 | </type> |
25 | 25 |
|
26 | | - <type> |
27 | | - <mime-type>image/gif</mime-type> |
28 | | - <extension>gif</extension> |
29 | | - <description>GIF image data</description> |
30 | | - <match-string offset="0">GIF8</match-string> |
31 | | - |
32 | | - <type> |
33 | | - <description append="true">, version 8%s,</description> |
34 | | - <match-string offset="4">7a</match-string> |
35 | | - </type> |
36 | | - <type> |
37 | | - <description append="true">, version 8%s,</description> |
38 | | - <match-string offset="4">9a</match-string> |
39 | | - </type> |
40 | | - </type> |
41 | | - |
42 | 26 | <type> |
43 | 27 | <mime-type>image/tiff</mime-type> |
44 | 28 | <extension>tif</extension> |
|
335 | 319 | <type> |
336 | 320 | <mime-type>application/x-shockwave-flash</mime-type> |
337 | 321 | <extension>swf</extension> |
338 | | - <description>Macromedia Flash data,</description> |
| 322 | + <description>Macromedia Flash data</description> |
339 | 323 | <match-string offset="0">FWS</match-string> |
340 | 324 |
|
341 | 325 | <type> |
|
460 | 444 | <description>PNG image data, CORRUPTED</description> |
461 | 445 | <match-string offset="1">PNG</match-string> |
462 | 446 | </type> |
| 447 | + |
463 | 448 | <type> |
464 | 449 | <mime-type>image/gif</mime-type> |
465 | 450 | <extension>gif</extension> |
|
469 | 454 | <type> |
470 | 455 | <mime-type>image/gif</mime-type> |
471 | 456 | <extension>gif</extension> |
472 | | - <description>version 8%s,</description> |
| 457 | + <description>version 87a</description> |
473 | 458 | <match-string offset="4">7a</match-string> |
474 | 459 | </type> |
475 | 460 | <type> |
476 | 461 | <mime-type>image/gif</mime-type> |
477 | 462 | <extension>gif</extension> |
478 | | - <description>version 8%s,</description> |
| 463 | + <description>version 89a</description> |
479 | 464 | <match-string offset="4">9a</match-string> |
480 | 465 | </type> |
481 | 466 | <type> |
|
490 | 475 | <description>%hd,</description> |
491 | 476 | <match-short order="le" offset="8" comparator=">">0x0</match-short> |
492 | 477 | </type> |
493 | | - |
494 | 478 | </type> |
| 479 | + |
495 | 480 | <type> |
496 | 481 | <mime-type>application/x-miff</mime-type> |
497 | 482 | <extension>miff</extension> |
498 | 483 | <description>MIFF image data</description> |
499 | 484 | <match-string offset="0">id=ImageMagick</match-string> |
500 | 485 | </type> |
| 486 | + |
501 | 487 | <type> |
502 | 488 | <mime-type>image/g3fax</mime-type> |
503 | 489 | <extension>fax</extension> |
|
551 | 537 | <match-custom>org.jadice.filetype.matchers.PDFMatcher</match-custom> |
552 | 538 | </type> |
553 | 539 | </type> |
554 | | - |
555 | 540 | <type> |
556 | 541 | <mime-type>application/pdf</mime-type> |
557 | 542 | <extension>pdf</extension> |
|
662 | 647 | <description>\b.%c</description> |
663 | 648 | <match-byte order="be" offset="7"></match-byte> |
664 | 649 | </type> |
665 | | - |
666 | 650 | <type> |
667 | 651 | <!-- Extract further PDF details --> |
668 | 652 | <match-custom>org.jadice.filetype.matchers.PDFMatcher</match-custom> |
669 | 653 | </type> |
670 | | - |
671 | 654 | </type> |
| 655 | + |
672 | 656 | <type> |
673 | 657 | <match-custom>org.jadice.filetype.matchers.modca.ModcaMatcher</match-custom> |
674 | 658 | </type> |
|
686 | 670 | <!-- Extracts RTF meta data --> |
687 | 671 | <match-custom>org.jadice.filetype.matchers.RTFMatcher</match-custom> |
688 | 672 | </type> |
689 | | - |
690 | 673 | <type> |
691 | 674 | <description append="true">version %c,</description> |
692 | 675 | <match-byte order="be" offset="5"></match-byte> |
|
709 | 692 | </type> |
710 | 693 | </type> |
711 | 694 |
|
| 695 | + <type> |
| 696 | + <mime-type>message/rfc822</mime-type> |
| 697 | + <extension>eml</extension> |
| 698 | + <description>RFC 822 email message</description> |
| 699 | + <match-regexp offset="0" range="20000" multiline="true">^(Message-ID:|MIME-Version:|Message-Id:)\s+</match-regexp> |
| 700 | + <type> |
| 701 | + <mime-type>message/rfc822</mime-type> |
| 702 | + <extension>eml</extension> |
| 703 | + <description>MIME email message</description> |
| 704 | + <match-regexp offset="0" range="10000" multiline="true">^MIME-Version:\s+</match-regexp> |
| 705 | + </type> |
| 706 | + </type> |
| 707 | + |
712 | 708 | <type> |
713 | 709 | <mime-type>text/html</mime-type> |
714 | 710 | <extension>html</extension> |
|
766 | 762 | <description>ksh script</description> |
767 | 763 | <match-regexp offset="0">^#!/bin/ksh</match-regexp> |
768 | 764 | </type> |
| 765 | + |
769 | 766 | <type> |
770 | 767 | <mime-type>text/html</mime-type> |
771 | 768 | <extension>.html</extension> |
|
811 | 808 | MIME type + charset will be set by the TextMatcher instance |
812 | 809 | <mime-type>text/plain</mime-type> |
813 | 810 | --> |
814 | | - <description>Text file</description> |
| 811 | + <description>Plain Text file</description> |
815 | 812 | <match-custom>org.jadice.filetype.matchers.TextMatcher</match-custom> |
816 | 813 | </type> |
817 | 814 |
|
818 | 815 | <!-- Global fallback. If nothing else matches, it is just binary. --> |
819 | | - <mime-type>application/octet-stream</mime-type> |
820 | | - <description>Binary data</description> |
| 816 | + <type> |
| 817 | + <mime-type>application/octet-stream</mime-type> |
| 818 | + <description>Binary data</description> |
| 819 | + </type> |
821 | 820 | </magic> |
0 commit comments