Skip to content

Commit

Permalink
Issue #68
Browse files Browse the repository at this point in the history
  • Loading branch information
grosjo committed Mar 3, 2021
1 parent fae27f6 commit 5ffb74e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fts-backend-xapian.cpp
Expand Up @@ -398,26 +398,24 @@ static bool fts_backend_xapian_update_set_build_key(struct fts_backend_update_co

if(key->type == FTS_BACKEND_BUILD_KEY_BODY_PART_BINARY)
{
if(verbose>0) i_info("FTS Xapian: Skipping binary part of type '%s'",type);
if(verbose>0) i_info("FTS Xapian: Skipping binary part (AAA) of type '%s'",type);
return FALSE;
}

if((type != NULL) && (strncmp(type,"text",4)!=0) && ((disposition==NULL) || ((strstr(disposition,"filename=")==NULL) && (strstr(disposition,"attachment")==NULL))))
{
if(verbose>0) i_info("FTS Xapian: Non-binary & non-text part of type '%s'",type);
if(verbose>0) i_info("FTS Xapian: Non-binary & non-text (AAA) part of type '%s'",type);
return FALSE;
}

// Verify content-disposition
ctx->isattachment=false;
if((disposition != NULL) && ((strstr(disposition,"filename=")!=NULL) || (strstr(disposition,"attachment")!=NULL)))
{
if(verbose>0)
i_info("FTS Xapian: Found attachment JOJO of type '%s' and disposition '%s'",type,disposition);
if(verbose>0) i_info("FTS Xapian: Found attachment (AAA) of type '%s' and disposition '%s'",type,disposition);
ctx->isattachment=true;
}


// Fill-in field
if(field==NULL)
{
Expand Down

0 comments on commit 5ffb74e

Please sign in to comment.