summaryrefslogtreecommitdiff
path: root/pith/pattern.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/pattern.c')
-rw-r--r--pith/pattern.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pith/pattern.c b/pith/pattern.c
index 3a258e7c..0b2eaf58 100644
--- a/pith/pattern.c
+++ b/pith/pattern.c
@@ -3,8 +3,8 @@ static char rcsid[] = "$Id: pattern.c 1204 2009-02-02 19:54:23Z hubert@u.washing
#endif
/*
* ========================================================================
- * Copyright 2006-2009 University of Washington
* Copyright 2013-2014 Eduardo Chappa
+ * Copyright 2006-2009 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -4764,7 +4764,9 @@ match_pattern(PATGRP_S *patgrp, MAILSTREAM *stream, SEARCHSET *searchset,
}
if(in_client_callback && is_imap_stream(stream)
- && (patgrp->alltext || patgrp->bodytext))
+ && (patgrp->alltext || patgrp->bodytext
+ || (patgrp->inabook != IAB_EITHER
+ && any_addressbook_in_remote_stream(stream))))
return(-1);
pgm = match_pattern_srchpgm(patgrp, stream, searchset);