Skip to content

Commit 23b8a38

Browse files
vmo69sirainen
authored andcommitted
Add imap4rev2 flag
1 parent 0555985 commit 23b8a38

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

docs/configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ If set, don't send multiple commands at once to server.
129129

130130
If set, enable QRESYNC IMAP extension.
131131

132+
### `imap4rev2`
133+
134+
* Default: no (`boolean` setting)
135+
136+
If set, enable the use of IMAP4rev2.
137+
138+
132139
### `random_msg_size`
133140

134141
* Default: `0`

src/imaptest.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ static void print_help(void)
441441
" [host=HOST] [port=PORT] [mbox=MBOX] [clients=CC] [msgs=NMSG]\n"
442442
" [box=MAILBOX] [copybox=DESTBOX] [-] [<state>[=<n%%>[,<m%%>]]]\n"
443443
" [random] [no_pipelining] [no_tracking] [checkpoint=<secs>]\n"
444+
" [imap4rev2]\n"
444445
"\n"
445446
" USER = username (and domain) template, e.g. \"u%%04d\" or \"u%%04d@d%%04d\"\n"
446447
" RANGE = range for templated usernames [1-%u] or domain names [1-%u]\n"
@@ -642,6 +643,10 @@ int main(int argc ATTR_UNUSED, char *argv[])
642643
conf.qresync = TRUE;
643644
continue;
644645
}
646+
if (strcmp(*argv, "imap4rev2") == 0) {
647+
conf.imap4rev2 = TRUE;
648+
continue;
649+
}
645650

646651
/* pass=password */
647652
if (strcmp(key, "pass") == 0) {

src/settings.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ struct settings {
5454
unsigned int domains_rand_start, domains_rand_count;
5555

5656
bool random_states, no_pipelining, disconnect_quit;
57-
bool no_tracking, rawlog, error_quit, own_msgs, own_flags, qresync;
57+
bool no_tracking, rawlog, error_quit, own_msgs, own_flags, qresync,
58+
imap4rev2;
5859

5960
struct ip_addr *ips;
6061
unsigned int ip_idx, ips_count;

0 commit comments

Comments
 (0)