Here is a patch to mark the buffer modified (which locks the file) in rmail-get-new-mail-1 before calling rmail-insert-inbox-text, and mark it unmodified if rmail-insert-inbox-text returns (or is aborted) without modifying the buffer. Ken