summaryrefslogtreecommitdiff
path: root/pith/keyword.h
diff options
context:
space:
mode:
authorEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
committerEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
commit094ca96844842928810f14844413109fc6cdd890 (patch)
treee60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /pith/keyword.h
downloadalpine-094ca96844842928810f14844413109fc6cdd890.tar.xz
Initial Alpine Version
Diffstat (limited to 'pith/keyword.h')
-rw-r--r--pith/keyword.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/pith/keyword.h b/pith/keyword.h
new file mode 100644
index 00000000..915de83c
--- /dev/null
+++ b/pith/keyword.h
@@ -0,0 +1,48 @@
+/*
+ * $Id: keyword.h 807 2007-11-09 01:21:33Z hubert@u.washington.edu $
+ *
+ * ========================================================================
+ * Copyright 2006-2007 University of Washington
+ * Copyright 2013 Eduardo Chappa
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * ========================================================================
+ */
+
+#ifndef PITH_KEYWORD_INCLUDED
+#define PITH_KEYWORD_INCLUDED
+
+
+#include "../pith/msgno.h"
+
+
+/* these are always UTF-8 */
+typedef struct keywords {
+ char *kw;
+ char *nick;
+ struct keywords *next;
+} KEYWORD_S;
+
+
+/* exported protoypes */
+KEYWORD_S *init_keyword_list(char **);
+KEYWORD_S *new_keyword_s(char *, char *);
+void free_keyword_list(KEYWORD_S **);
+char *nick_to_keyword(char *);
+char *keyword_to_nick(char *);
+char *initial_to_keyword(char *);
+int user_flag_is_set(MAILSTREAM *, unsigned long, char *);
+int user_flag_index(MAILSTREAM *, char *);
+char *stream_to_user_flag_name(MAILSTREAM *, int);
+int some_user_flags_defined(MAILSTREAM *);
+char *flag_string(MAILSTREAM *, long, long);
+long get_msgno_by_msg_id(MAILSTREAM *, char *, MSGNO_S *);
+int keyword_check(char *, char **);
+
+
+#endif /* PITH_KEYWORD_INCLUDED */