Discussion:
[bug-mailutils] mail -E 'set readonly=yes' still allows mailbox(dir) modification
積丹尼 Dan Jacobson
2015-05-01 00:52:59 UTC
Permalink
Mail saved when
$ mail -E 'set readonly=yes'
is used are still deleted from Maildir, despite documetation

'readonly'

Type: Boolean
Default: False

When set, mailboxes are opened in readonly mode. In this mode, any
'mail' commands that alter the contents of the mailbox are
disabled. These commands include, but are not limited to:
'delete', 'save' and 'mbox'.
Sergey Poznyakoff
2015-05-03 19:43:11 UTC
Permalink
Post by 積丹尼 Dan Jacobson
Mail saved when
$ mail -E 'set readonly=yes'
is used are still deleted from Maildir, despite documetation
The usage is wrong. The correct usage is:

mail -E 'set readonly'

Regards,
Sergey
積丹尼 Dan Jacobson
2015-05-04 02:44:01 UTC
Permalink
Post by 積丹尼 Dan Jacobson
Mail saved when
$ mail -E 'set readonly=yes'
is used are still deleted from Maildir, despite documetation
SP> The usage is wrong. The correct usage is:

SP> mail -E 'set readonly'

OK, I was looking at the output of "variables",

which has the odd

Current value: yes
Current value: [not set]

two possibilities for booleans,

which would better be written as

Current value: [set]
Current value: [not set]

and the man page,

--set=PARAM=VALUE
set configuration parameter

which needs to say something more like

se[t] [name[=[string]]...] [name=number...] [noname...]


By the way, maybe with

mail -E 'set readonly'

using the delete etc. command should complain that messages won't really be deleted.

P.S.,

Responding to a message with
|From: Sergey Poznyakoff <***@gnu.org.ua>
|To: "積丹尼 Dan Jacobson" <***@jidanni.org>
|Cc: <bug-***@gnu.org>

If I hit r I also send to myself.
If I hit R I don't send to the Cc:
If I hit fo or F I see you in To: twice.
No command that just sends to the From and Cc.

I'm not sure (info "(mailutils) Replying") addresses this issue.

Loading...