offlineimap 6.3.4+ marks messages executable?

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Sep 19 08:29:39 BST 2011


On Sat, 17 Sep 2011 14:55:44 +0200, Christian Neukirchen <chneukirchen at gmail.com> wrote:
> -rwxrwxr-x 1 chris users     2670 Aug 21 13:02 1313924549...*
> -rwxrwxr-x 1 chris users     5777 Aug 21 13:02 1313924549...*

> Is there any good reason for this?  What do I need to change to reset
> the mode for new mails?

Hi there, as Tim said, someone had already noticed it but there had been
no deliberate change to the mode of files being created. We did have
some simplications, and a quick test confirms that while an "open(file)"
uses the default, an os.open() leads to "-rwxrwxr-x". I pushed the fix
as commit f536634 to my repositories 'next' branch, so the next release
will revert to the old behavior.

Thanks for reporting.

Sebastian
----------------------------------------------------------------------
commit f5366343b98fd2ab388d13a40955f55b8559ba9b
Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date:   Mon Sep 19 09:25:48 2011 +0200

Fix default Maildir File permissions.
    
open() and os.open() lead to different file permissions by default, and
while we have not changed the os.open that had been used, some code
changes led to these permissions slipping through. Fix this by setting
the permissions explicitly to 0666 (minus the users umask).
    
    Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110919/db37ea76/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list