On Wed, May 02, 2001 at 05:00:51PM +0100, Mark Sheppard ([EMAIL PROTECTED]) wrote:
> Hi,
> 
> The umask in my shell is set to 022, meaning that any files created
> should have permissions 644 (or 755 if executable) by default.
> However this isn't happening with mutt.  I just did an strace on mutt
> and it shows that mutt is setting its own umask of 077 (the result of
> the umask call is the old umask):

Yep -- strangely enough, this came up in a conversation with a friend
yesterday. Mutt sets umask 077 in main.c and doesn't touch it from
thereon in; there was some talk back in 1998 of fixing that, and
patches were submitted but not included.

I suggested to said friend that he prepare a patch which introduces a
mailbox_umask and file_umask variable (the former for mailboxes and
the latter for anything that isn't, such as attachments), but I don't
think he'll be able to put it together.

It has always struck me that while doing umask 077 is a good thing in
case a user is lazy with such things, that mutt isn't the sort of
mailer to step around a lazy user. :-) On the other hand, having to
set umask in the shell before launching Mutt is inconvenient too, so
just pulling that umask call out of main.c isn't doing any favours
either. 

-devvies, I couldn't pick up the whole history of the 1998 edition of
Include That Umask Patch to determine the reasons that it didn't get
put in; would such a patch be welcome? 

  -Rich

-- 
------------------------------ Rich Lafferty ---------------------------
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC                 (514) 848-7625
------------------------- [EMAIL PROTECTED] ----------------------

Reply via email to