YAM - Yet Another Mailer (#2) - Directory locking (#59) - Message List

Directory locking
 solved

I've noted that when a file is attached to a message, the directory where the file resides remains locked until YAM is quit.

I created a temporary directory and prepared a lha archive therein. I attached the archive to an e-mail message, saved the message among the outgoing files, and then tried to delete the temporary directory and this failed. I iconified YAM and tried again to delete the directory, and this failed. I sent the message, and the directory was still locked! Only when I quit YAM, I finally was able to delete the directory.

The file contained in the temporary directory (the attached file) is never locked, and can be deleted at any istant. Only the directory is locked.

Either this is a MUI 3.8/3.9 bug, or it is a YAM bug...

Tried with the same results both on PegasosII-G4/MorphOS (YAM 2.5, last build) and Amiga4000/060/PPC (YAM 2.4p).

Cheers, DoctorMorbius_FP

  • Message #267

    Hi,

    I've noted that when a file is attached to a message, the directory where the file resides remains locked until YAM is quit.

    I created a temporary directory and prepared a lha archive therein. I attached the archive to an e-mail message, saved the message among the outgoing files, and then tried to delete the temporary directory and this failed. I iconified YAM and tried again to delete the directory, and this failed. I sent the message, and the directory was still locked! Only when I quit YAM, I finally was able to delete the directory.

    The file contained in the temporary directory (the attached file) is never locked, and can be deleted at any istant. Only the directory is locked.

    Either this is a MUI 3.8/3.9 bug, or it is a YAM bug...

    Tried with the same results both on PegasosII-G4/MorphOS (YAM 2.5, last build) and Amiga4000/060/PPC (YAM 2.4p).

    Oh thanks for bringing this to my attention. After having a quick look at the source code it seems YAM is wrong in allocating/freeing the ASL requests, so that the directory might not be freed correctly.

    So please go ahead and post a bug report at our bugtracker available at http://bugs.yam.ch/. And please state a description of the problem there also.

    thanks again

Attachments

No attachments created.