// create the unified inbox meta account ( all accounts is default when none specified )
 public static SearchAccount createUnifiedInboxAccount(Context context) {
   String name = context.getString(R.string.integrated_inbox_title);
   LocalSearch tmpSearch = new LocalSearch(name);
   tmpSearch.and(Searchfield.INTEGRATE, "1", Attribute.EQUALS);
   return new SearchAccount(
       UNIFIED_INBOX, tmpSearch, name, context.getString(R.string.integrated_inbox_detail));
 }
  // create the all messages search ( all accounts is default when none specified )
  public static SearchAccount createAllMessagesAccount(Context context) {
    String name = context.getString(R.string.search_all_messages_title);

    LocalSearch tmpSearch = new LocalSearch(name);
    tmpSearch.and(Searchfield.SEARCHABLE, "1", Attribute.EQUALS);

    return new SearchAccount(
        ALL_MESSAGES, tmpSearch, name, context.getString(R.string.search_all_messages_detail));
  }
 /**
  * Adds the provided node as the second argument of an AND clause to this node.
  *
  * @param field Message table field to match against.
  * @param string Value to look for.
  * @param contains Attribute to use when matching.
  * @throws IllegalConditionException
  */
 public void and(Searchfield field, String value, Attribute attribute) {
   and(new SearchCondition(field, attribute, value));
 }