Thomas Reifferscheid writes:
Sam Varshavchik wrote:- repeat for every subfolder of old maildir- delete all old folders, alcs, mails. In case of an error in between inform the user: An error has occured: strerror(errno).This is not acceptable. You cannot leave a partially-copied maildir in place.Do you think about cleaning up after an error? Why is it unacceptable to leave partially copied maildirs in place?
Because it is unacceptable. A command should either succeed, or fail, but not give you a halfway-done result. If some problem occured in the middle of sending the message, do you think that the mail server should go ahead and deliver the partially-garbled message, or return an error message, not send anything, and leave it up to you to figure out what to do next?
Whats wrong on
"An error occured, inform the user about the error, let him decide what
to do"?
You can certainly inform the user, but only after you clean up the mess.
No, I don't think that's possible, not without a lot of work.What exactly is missing for having locks? Please explain more verbosely.
I think there's some miscommunication here. You posted a proposal, presumably because you volunteered to try to implement something like this, and you are asking for feedback.
Well, I'm giving you the feedback. I see a number of technical problems which makes this implementation fairly difficult. You are, of course, aware of all the usual issues with locking of this kind, and I was looking forward to hear how you were going to solve them. I'm the one listening to your proposal, not the other way around.
pgpJa4c1AAKc0.pgp
Description: PGP signature
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
