Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
def getMailNo():
    iG = Holder.getGetMail()
    res = iG.getMail(-1, -1)
    assert res.getErrMess() == None
    return res.getNo()
Exemplo n.º 4
0
def getMailNo():
    iG = Holder.getGetMail()
    res = iG.getMail(-1,-1)
    assert res.getErrMess() == None
    return res.getNo()