bug fixing...maildir backend working
This commit is contained in:
parent
bbc7e107fd
commit
e642a2d687
@ -10,12 +10,16 @@ class MaildirMail(Backend):
|
||||
Checks for local mail in Maildir
|
||||
"""
|
||||
|
||||
settings = ("directory")
|
||||
required = ("directory")
|
||||
settings = (
|
||||
"mailbox",
|
||||
)
|
||||
required = ("mailbox",)
|
||||
|
||||
mailbox=""
|
||||
|
||||
@property
|
||||
def unread(self):
|
||||
p = subprocess.Popen(['ls','-l',line.strip()+'/new'], stdout=subprocess.PIPE)
|
||||
p = subprocess.Popen(['ls','-l',self.mailbox+'/new'], stdout=subprocess.PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
stdout=stdout.decode('utf8')
|
||||
return len(stdout.split('\n'))-2
|
||||
|
Loading…
Reference in New Issue
Block a user