Subject: | file-appendMessages very unsafem should be better documented |
Mail::Box::File hints that "Appending messages to a file based folder which is not opened is a little risky. In practice, this is often done without locking the folder.".
It would be nice if this were stated more prominently in, for example, Mail::Box::Mbox. It's particulalry bad as the default of "NONE" for lock_type is not documented (and one could assume from new() that similar defaults would apply, but this is not the case).
Also, appendMessages is less safe than it could, as it opens with "a" instead of with O_APPEND, which is way safer (O_APPEND fails on NFS, while "a" fails in local collisions). It's still unsafe as the mail might not be written in a single write call, but it would be less so.