// 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));
  }
  @Override
  public LocalSearch clone() {
    ConditionsTreeNode conditions = (mConditions == null) ? null : mConditions.cloneTree();

    LocalSearch copy = new LocalSearch(mName, conditions, null, mPredefined);
    copy.mManualSearch = mManualSearch;
    copy.mAccountUuids = new HashSet<String>(mAccountUuids);

    return copy;
  }