Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib-imap/imap-quote.h @ 9595:166a188f9165 HEAD
mbox: Fields weren't being added to cache file during message saving.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 Jul 2010 16:55:58 +0100 |
parents | 8f3115354d14 |
children |
rev | line source |
---|---|
6410
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
4816
diff
changeset
|
1 #ifndef IMAP_QUOTE_H |
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
4816
diff
changeset
|
2 #define IMAP_QUOTE_H |
339
6f4eeb6a0a0d
Several fields in BODY were unquoted.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 |
1107
4044c2903ed7
Don't do x-unknown mime encoding. Correct way is to just send them as
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
4 /* Return value suitable for sending to client, either as quoted-string or |
1533
76d44dda0f32
imap_quote*() will now pack all LWSP into a single space and convert NULs to
Timo Sirainen <tss@iki.fi>
parents:
1321
diff
changeset
|
5 literal. Note that this also converts TABs into spaces, multiple spaces |
76d44dda0f32
imap_quote*() will now pack all LWSP into a single space and convert NULs to
Timo Sirainen <tss@iki.fi>
parents:
1321
diff
changeset
|
6 into single space and NULs to #128. */ |
4816
8ac2a2d27364
Cleanup: Don't put string literals into non-const pointers.
Timo Sirainen <tss@iki.fi>
parents:
3874
diff
changeset
|
7 const char *imap_quote(pool_t pool, const unsigned char *value, |
8ac2a2d27364
Cleanup: Don't put string literals into non-const pointers.
Timo Sirainen <tss@iki.fi>
parents:
3874
diff
changeset
|
8 size_t value_len); |
1107
4044c2903ed7
Don't do x-unknown mime encoding. Correct way is to just send them as
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
9 |
4044c2903ed7
Don't do x-unknown mime encoding. Correct way is to just send them as
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
10 /* Append to existing string. */ |
4044c2903ed7
Don't do x-unknown mime encoding. Correct way is to just send them as
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
11 void imap_quote_append(string_t *str, const unsigned char *value, |
3863
55df57c028d4
Added "bool" type and changed all ints that were used as booleans to bool.
Timo Sirainen <tss@iki.fi>
parents:
1568
diff
changeset
|
12 size_t value_len, bool compress_lwsp); |
1107
4044c2903ed7
Don't do x-unknown mime encoding. Correct way is to just send them as
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
13 |
1568
235f67c3cc9f
LIST and STATUS replies shouldn't strip tabs and spaces from mailbox names.
Timo Sirainen <tss@iki.fi>
parents:
1533
diff
changeset
|
14 #define imap_quote_append_string(str, value, compress_lwsp) \ |
3874
a8fef45677ba
Fixed macro to put parameter in ()
Timo Sirainen <tss@iki.fi>
parents:
3863
diff
changeset
|
15 imap_quote_append(str, (const unsigned char *)(value), \ |
1568
235f67c3cc9f
LIST and STATUS replies shouldn't strip tabs and spaces from mailbox names.
Timo Sirainen <tss@iki.fi>
parents:
1533
diff
changeset
|
16 (size_t)-1, compress_lwsp) |
339
6f4eeb6a0a0d
Several fields in BODY were unquoted.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
17 |
7916 | 18 /* Append data to destination string quoted using "". */ |
19 void imap_dquote_append(string_t *dest, const char *src); | |
20 | |
339
6f4eeb6a0a0d
Several fields in BODY were unquoted.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
21 #endif |