Sergiy Zhuk writes:

Compile imap/imapd.c with TB_TRASH_HACK defined to enable it, then set
TB_TRASH_SELECT and TB_TRASH_TOTAL in etc/imapd.
The default is max 500 messages moved to Trash at a time with
maximum 20,000 messages in the folder.
If either is exceeded, it tells user what to do.
The Shift-Del is TB specific, but I haven't seen other clients
causing the problem, so I've customized the error message to target
TB users.

There's nothing that prevents a user from ordering another IMAP client to delete 500 messages, so the error message will be misleading.

Furthermore this is not going to be limited to deleting messages. A copy operation to another folder will have the same effect, there's nothing magical about the trash folder, in that respect. Also, the metric needs to be more pliable. Copying 400 large, multimegabyte messages will also have the same impact. Additionally, invoking imapscan_maildir() is an overkill. For starters it does make subtle changes to the folder, and the resulting side effects would be undesirable. Furthermore, it does quite a bit of work. For these purposes, just counting the number of messages is sufficient, but again, raw message counts may not be an ideal metric.

Of course, there's nothing wrong with you employing a custom code patch for your specific individual needs, but as it is, verbatim, I don't think it's suitable to be included in generic code that everyone uses, and not just for the reasons you say. I am not completely against doing something about this, except that I don't feel comfortable with this specific solution. I'm going to be taking a few days off soon, and I'll try to think about better solution for this.

Attachment: pgpwmXtcusiMX.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to