def getMailList(fromm=-1, to=0): """ get list of mail from input box Args: fromm : the number of first mail to retrieve (counting from end) to : the number of last mail to retrieve (-1 : all mails) Returns: List of mails Element in the list: getHeader() getContent() getFrom() isText() isIsSeen() getSentDate() getPerson() """ iG = Holder.getGetMail() res = iG.getMail(fromm, to) assert res.getErrMess() == None return res.getList()
def getMailList(fromm = -1,to = 0): """ get list of mail from input box Args: fromm : the number of first mail to retrieve (counting from end) to : the number of last mail to retrieve (-1 : all mails) Returns: List of mails Element in the list: getHeader() getContent() getFrom() isText() isIsSeen() getSentDate() getPerson() """ iG = Holder.getGetMail() res = iG.getMail(fromm,to) assert res.getErrMess() == None return res.getList()
def getMailNo(): iG = Holder.getGetMail() res = iG.getMail(-1, -1) assert res.getErrMess() == None return res.getNo()
def getMailNo(): iG = Holder.getGetMail() res = iG.getMail(-1,-1) assert res.getErrMess() == None return res.getNo()