diff options
author | David Mazieres <dm@uun.org> | 2015-06-10 12:50:58 -0700 |
---|---|---|
committer | David Mazieres <dm@uun.org> | 2015-06-10 12:50:58 -0700 |
commit | 52e7e1fd28d888359c66f8202bbde3918eeeee1b (patch) | |
tree | f42b010aff18e9741d40f431b86b92c7f7b1472d | |
parent | 3ff7ad90a3ebf4bef333ec8d3fd63dd1d2d4cdb9 (diff) |
don't percent-encode tags in SQL database
-rw-r--r-- | xapian_sync.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/xapian_sync.cc b/xapian_sync.cc index 23ceb61..2604ea9 100644 --- a/xapian_sync.cc +++ b/xapian_sync.cc @@ -114,18 +114,12 @@ sync_table (sqlstmt_t &s, T &t, T &te, } } -string +static string tag_from_term (const string &term) { - assert (!strncmp (term.c_str(), notmuch_tag_prefix.c_str(), - notmuch_tag_prefix.length())); - return percent_encode (term.substr (notmuch_tag_prefix.length())); -} - -string -term_from_tag (const string &tag) -{ - return notmuch_tag_prefix + percent_decode (tag); + assert(!strncmp(term.c_str(), notmuch_tag_prefix.c_str(), + notmuch_tag_prefix.length())); + return term.substr(notmuch_tag_prefix.length()); } static void |