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:
Neil Schemenauer 2002-03-24 01:38:38 +00:00
parent eff724490f
commit 03f3ee6d89
1 changed files with 4 additions and 1 deletions

View File

@ -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)