mhstore doesn’t set a return code when it can’t write the attachments:
11:07:35$ mkdir /tmp/foobar
11:07:44$ cd /tmp/foobar
11:07:59$ chmod -w .
11:08:13$ mhstore
mhstore: unable to fopen for reading/writing /tmp/foobar/8853.1.txt:
Permission denied
(content text/plain in message 8853, part 1)
mhstore: unable to fopen for reading/writing /tmp/foobar/8853.2.jpeg:
Permission denied
(content image/jpeg in message 8853, part 2)
11:08:15$ echo $?
0
Not ideal for scripting! I’m running nmh 1.3 at home, but this
still occurs with nmh 1.5
--
Jón Fairbairn
Jon(_dot_)Fairbairn(_at_)cl(_dot_)cam(_dot_)ac(_dot_)uk
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers