summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index 284c550..377dbd0 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -542,6 +542,10 @@ static int header_check_dc(const unsigned char *buffer, const unsigned int buffe
static int header_check_html(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
+ if(file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ file_recovery->file_stat->file_hint==&file_hint_fasttxt &&
+ strcmp(file_recovery->extension,"mbox")==0)
+ return 0;
reset_file_recovery(file_recovery_new);
file_recovery_new->data_check=&data_check_html;
file_recovery_new->file_check=&file_check_size;