Commit 13807915 authored by Neil Schemenauer's avatar Neil Schemenauer

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.
parent e824ce72
......@@ -276,7 +276,10 @@ def _test():
if mbox[:1] == '+':
mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
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(os.path.join(mbox, 'cur')):
mb = Maildir(mbox)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment