Subject: | $imap->store() could use _split_sequence() |
Date: | Sat, 5 Jan 2019 16:41:20 +0100 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Gilles LAMIRAL <gilles [...] lamiral.info> |
Hi Phil,
I ran into trouble with some big folders to empty.
Imapsync used to delete messages on host1 one by one,
it was sometime very long so now it batches the
deletions. But...
Sending: 51 UID STORE 1571,1572,...
...
.... 9706,9707,9720 +FLAGS.SILENT (\Deleted)
Sent 22794 bytes
Read: 51 BAD parse error: maximum request size exceeded
The call is done with delete_message()
which calls store()
which calls _imap_uid_command( STORE => @a )
Maybe _imap_uid_command could use _split_sequence()
How about it?
How about a _imap_uid_split_command
in order to still use current _imap_uid_command
in some cases.
Thanks!
--
Au revoir,
Gilles Lamiral. France, Baulon (35580)
mob 06 19 22 03 54
tel 09 51 84 42 42