mirror of https://github.com/python/cpython
Try /var/mail before trying /usr/mail. Most new systems use /var.
This in inside the test so it really doesn't matter much. Closes SF patch 497097.
This commit is contained in:
parent
eff724490f
commit
03f3ee6d89
|
@ -276,7 +276,10 @@ def _test():
|
||||||
if mbox[:1] == '+':
|
if mbox[:1] == '+':
|
||||||
mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
|
mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
|
||||||
elif not '/' in mbox:
|
elif not '/' in mbox:
|
||||||
mbox = '/usr/mail/' + mbox
|
if os.path.isfile('/var/mail/' + mbox):
|
||||||
|
mbox = '/var/mail/' + mbox
|
||||||
|
else:
|
||||||
|
mbox = '/usr/mail/' + mbox
|
||||||
if os.path.isdir(mbox):
|
if os.path.isdir(mbox):
|
||||||
if os.path.isdir(os.path.join(mbox, 'cur')):
|
if os.path.isdir(os.path.join(mbox, 'cur')):
|
||||||
mb = Maildir(mbox)
|
mb = Maildir(mbox)
|
||||||
|
|
Loading…
Reference in New Issue