* Minor updates to source to update copyright notices (part 1)
[alpine.git] / pith / keyword.h
blob9ad65a36891da1fb1ddf166ab941f02529fafd28
1 /*
2 * $Id: keyword.h 807 2007-11-09 01:21:33Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2016 Eduardo Chappa
6 * Copyright 2006-2007 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_KEYWORD_INCLUDED
18 #define PITH_KEYWORD_INCLUDED
21 #include "../pith/msgno.h"
24 /* these are always UTF-8 */
25 typedef struct keywords {
26 char *kw;
27 char *nick;
28 struct keywords *next;
29 } KEYWORD_S;
32 /* exported protoypes */
33 KEYWORD_S *init_keyword_list(char **);
34 KEYWORD_S *new_keyword_s(char *, char *);
35 void free_keyword_list(KEYWORD_S **);
36 char *nick_to_keyword(char *);
37 char *keyword_to_nick(char *);
38 char *initial_to_keyword(char *);
39 int user_flag_is_set(MAILSTREAM *, unsigned long, char *);
40 int user_flag_index(MAILSTREAM *, char *);
41 char *stream_to_user_flag_name(MAILSTREAM *, int);
42 int some_user_flags_defined(MAILSTREAM *);
43 char *flag_string(MAILSTREAM *, long, long);
44 long get_msgno_by_msg_id(MAILSTREAM *, char *, MSGNO_S *);
45 int keyword_check(char *, char **);
48 #endif /* PITH_KEYWORD_INCLUDED */