$ ./configure --enable-notmuch
$ make
+ * folders URI
+
+ notmuch:///<path>[?<item>=<name>[& ...]]
+
+ The <path> is absolute path to the the directory where is notmuch database
+ as returned by 'notmuch config get database.path' command. Note that the
+ <path> should NOT include .notmuch directory name.
+
+ Items:
+
+ query=<string>
+
+ See SEARCH SYNTAX in notmuch man page. Don't forget to use "and" and
+ "or" operators in your queries.
+
+ Note that proper URI should not contain blank space and all "bad" chars
+ should be encoded, for example
+
+ "tag:AAA and tag:BBB" --encoding-> tag:AAA%20and%20tag:BBB
+
+ but mutt config file parser is smart enough to accept space in quoted
+ strings. It means that you can use
+
+ "notmuch:///foo?query=tag:AAA and tag:BBB"
+
+ in your config files to keep things readable.
+
* virtual mailboxes
{ "pop", U_POP },
{ "pops", U_POPS },
{ "mailto", U_MAILTO },
+#ifdef USE_NOTMUCH
+ { "notmuch", U_NOTMUCH },
+#endif
{ "smtp", U_SMTP },
{ "smtps", U_SMTPS },
{ NULL, U_UNKNOWN }
};
-static int url_pct_decode (char *s)
+int url_pct_decode (char *s)
{
char *d;
U_SMTP,
U_SMTPS,
U_MAILTO,
+#ifdef USE_NOTMUCH
+ U_NOTMUCH,
+#endif
U_UNKNOWN
}
url_scheme_t;
int url_parse_ciss (ciss_url_t *ciss, char *src);
int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags);
int url_parse_mailto (ENVELOPE *e, char **body, const char *src);
+int url_pct_decode (char *s);
#endif