Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib-imap/imap-util.h @ 9532:00cd9aacd03c HEAD
Updated copyright notices to include year 2010.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jan 2010 01:18:58 +0200 |
parents | 743cc6ff3d89 |
children |
rev | line source |
---|---|
6410
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
3930
diff
changeset
|
1 #ifndef IMAP_UTIL_H |
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
3930
diff
changeset
|
2 #define IMAP_UTIL_H |
0 | 3 |
7620 | 4 #include "seq-range-array.h" |
5 | |
6890 | 6 enum mail_flags; |
8729 | 7 struct imap_arg; |
6890 | 8 |
3016
61c8d205d887
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
Timo Sirainen <tss@iki.fi>
parents:
2322
diff
changeset
|
9 /* Write flags as a space separated string. */ |
61c8d205d887
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
Timo Sirainen <tss@iki.fi>
parents:
2322
diff
changeset
|
10 void imap_write_flags(string_t *dest, enum mail_flags flags, |
61c8d205d887
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
Timo Sirainen <tss@iki.fi>
parents:
2322
diff
changeset
|
11 const char *const *keywords); |
0 | 12 |
7620 | 13 /* Write sequence range as IMAP sequence-set */ |
14 void imap_write_seq_range(string_t *dest, const ARRAY_TYPE(seq_range) *array); | |
8729 | 15 /* Write IMAP args to given string. The string is mainly useful for humans. */ |
8740
743cc6ff3d89
Renamed imap_args_to_str() to imap_write_args() and added a new imap_args_to_str().
Timo Sirainen <tss@iki.fi>
parents:
8729
diff
changeset
|
16 void imap_write_args(string_t *dest, const struct imap_arg *args); |
743cc6ff3d89
Renamed imap_args_to_str() to imap_write_args() and added a new imap_args_to_str().
Timo Sirainen <tss@iki.fi>
parents:
8729
diff
changeset
|
17 /* Like imap_write_args(), but return the string allocated from data stack. */ |
743cc6ff3d89
Renamed imap_args_to_str() to imap_write_args() and added a new imap_args_to_str().
Timo Sirainen <tss@iki.fi>
parents:
8729
diff
changeset
|
18 const char *imap_args_to_str(const struct imap_arg *args); |
7620 | 19 |
0 | 20 #endif |