diff options
author | Kevin McCarthy <kevin@8t8.us> | 2018-09-27 17:29:16 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2018-09-30 15:42:41 -0700 |
commit | 51efb7261dc58124779de1a6c1088c6f35bfa78d (patch) | |
tree | 4e454025188445f3f41f6d80828c6f7a51460124 /imap/message.c | |
parent | b181996c3f853876d3f146fe30f5e385b2944168 (diff) |
Increase buffer sizes for some IMAP commands.
Use to ensure assembled IMAP commands fit in the resultant buffer to
be imap_exec()'ed.
RFC2683 suggested a limit of 1000, but asked servers to accept up to
8000. Furthermore, RFC7162 bumped the client limit suggestion up to
8192. So I don't believe any issues will be caused by this.
Most of these are increases are just to remove theoretical truncation
warned about by the compiler; I don't believe we've had reports of
actual command truncation due to a mailbox 1024 characters long.
Diffstat (limited to 'imap/message.c')
-rw-r--r-- | imap/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/message.c b/imap/message.c index 19bad85f..fc326752 100644 --- a/imap/message.c +++ b/imap/message.c @@ -1089,7 +1089,7 @@ int imap_append_message (CONTEXT *ctx, MESSAGE *msg) { IMAP_DATA* idata; FILE *fp; - char buf[LONG_STRING]; + char buf[LONG_STRING*2]; char mbox[LONG_STRING]; char mailbox[LONG_STRING]; char internaldate[IMAP_DATELEN]; |