--- Begin Message ---
Subject: |
Bug#644267: fails to access a read-only folder |
Date: |
Tue, 04 Oct 2011 22:19:59 +0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Package: mailutils-mh
Version: 1:2.2+dfsg1-3+b1
The mhn command fails to access a read-only folder, e. g.:
$ which mhn
/usr/bin/mailutils-mh
$ mhn +foo 12345
$ echo $?
0
$
Running mhn under strace(1) reveals that it tries,
unsuccessfully, to open(2) ~/Mail/foo/12345 with O_RDWR.
Arguably, it should've used O_RDONLY instead.
The scan command produces a list devoid of any information for
this folder, except for the message numbers.
Also, for no reason obvious to me, both commands try to access
~/Mail/foo/10000 (which is the first message in the folder) just
as well.
The operation on read-only folders is a generic prerequisite of
accessing shared mail folders (such as, e. g., mailing list or
newsgroup archives.)
--
FSF associate member #7257
--- End Message ---