Skip to content

DonatienSubts/Imap-mail-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imap-mail-reader

The aim of this project is to simplify python mail reading using imap protocol

Install

pip install Imap-mail-reader

Usage

Mail Reader class methods and attributes

from ImapMailManager import MailReader to import the reader

reader = MailReader(Imap-server address, Usename, Token) to instantiate the reader

reader.Connect() to connect to the imap server using credentials

reader.getUnreadMails() to instantiate messages attributes containing all unread mails

reader.messages is a variable containing a list of message class

Message class contains following attributes :

msgFrom : string to : string date : string attachments : list of File subject : string body : string htmlBody : string

File class contains following attributes :

name : string content : bytes

Example of usage in test.py

About

The aim of this project is to simplify python mail reading using imap protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages