--- getmail-4.49.0.old/getmailcore/destinations.py +++ getmail-4.49.0/getmailcore/destinations.py @@ -139,14 +139,14 @@ if os.name == 'posix': if uid: change_uidgid(None, uid, gid) - if os.geteuid() == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as root' - ) - if os.getegid() == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as GID 0' - ) +# if os.geteuid() == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as root' +# ) +# if os.getegid() == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as GID 0' +# ) f = deliver_maildir( self.conf['path'], msg.flatten(delivered_to, received), self.hostname, self.dcount, self.conf['filemode'] @@ -173,14 +173,14 @@ # Config specifies delivery as user other than current UID uid = uid_of_user(user) gid = gid_of_uid(uid) - if uid == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as root' - ) - if gid == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as GID 0' - ) +# if uid == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as root' +# ) +# if gid == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as GID 0' +# ) self._prepare_child() stdout = tempfile.TemporaryFile() stderr = tempfile.TemporaryFile() @@ -253,14 +253,14 @@ if os.name == 'posix': if uid: change_uidgid(None, uid, gid) - if os.geteuid() == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as root' - ) - if os.getegid() == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as GID 0' - ) +# if os.geteuid() == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as root' +# ) +# if os.getegid() == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as GID 0' +# ) if not os.path.exists(self.conf['path']): raise getmailDeliveryError('mboxrd does not exist (%s)' @@ -345,14 +345,14 @@ # Config specifies delivery as user other than current UID uid = uid_of_user(user) gid = gid_of_uid(uid) - if uid == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as root' - ) - if gid == 0: - raise getmailConfigurationError( - 'refuse to deliver mail as GID 0' - ) +# if uid == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as root' +# ) +# if gid == 0: +# raise getmailConfigurationError( +# 'refuse to deliver mail as GID 0' +# ) self._prepare_child() stdout = tempfile.TemporaryFile() stderr = tempfile.TemporaryFile() --- getmail-4.49.0.old/setup.py +++ getmail-4.49.0/setup.py @@ -44,7 +44,6 @@ GETMAILMANDIR = os.path.join( datadir or prefix, - 'share', 'man', 'man1' ) @@ -98,25 +97,6 @@ 'getmail_mbox' ], data_files=[ - (GETMAILDOCDIR, [ - './README', - './getmail.spec', - 'docs/BUGS', - 'docs/COPYING', - 'docs/CHANGELOG', - 'docs/TODO', - 'docs/THANKS', - 'docs/configuration.html', - 'docs/configuration.txt', - 'docs/documentation.html', - 'docs/documentation.txt', - 'docs/faq.html', - 'docs/faq.txt', - 'docs/getmaildocs.css', - 'docs/getmailrc-examples', - 'docs/troubleshooting.html', - 'docs/troubleshooting.txt', - ]), (GETMAILMANDIR, [ 'docs/getmail.1', 'docs/getmail_fetch.1',