<<< Date Index >>>     <<< Thread Index >>>

Re: saving attachments with 0644 permissions



Couldn't you just change your shell login environmnet to hardcode a umask?

On Thu, Mar 02, 2006 at 02:23:10PM +0100, Phil Pennock thus spake:
On 2006-03-02 at 12:49 +0100, Keld Jørn Simonsen wrote:
When I save attachments of mail, or mails in general, they
get permission 0600 - I would like that to be 0644.
How can I do that?

It's not a config option.

If you're willing to risk having potentially _everything_ be mode 0644,
then edit the source; file main.c, function main(), there's a line
looking something like:

 umask (077);

Change the value to 022.

If you're going to do this, then I strongly recommend first setting
"tmpdir" in your .muttrc, to point to a private tmp directory which has
permission 0700.  That will minimise some of the pain.
--
I am keeping international relations on a peaceable footing.
You are biding your time before acting.
He is coddling tyrants.
-- Roger BW on topic of verb conjugation


--
148D 5CC5 2A04 852D 53DC  727F 386F 9068 B3A2 9D47