Email - ParanoidNemo/twolame GitHub Wiki
The email applet check if there are some new emails, show the total count of it and the last 5 email with subject, sender and raw date. It creates a fifo file into ~/.local/share/be.shell/fifo/ directory. Right now it only work for one account with imap security. I'm looking forward to implement multiple accounts handling and POP service.
Setting up the twolamerc section
First of all open the twolamerc file and check if the email thread is active (start_mail = 1) under the twolame section; then move to the mail section. Here you can change variuos entries:
- update_period = int (measure the refresh time for the applet in seconds)
- security = imap/pop (set the type of security your mail server use, RIGHT NOW ONLY IMAP WORKS)
- server = server (the name of your email server)
- user = user@mail (your complete email adress)
- password = password (the password of your account; mandatory if you use 'plain = True', leave blank if 'plain = False')
- plain = bool (If True use non secure password take from the password entry, if False use python-keyring to retrive the account password)
- service = wallet name (the name you have used to store the password with python-keyring. Leave blank if you are using 'plain = True')
Modify the format file
Email applets uses two different .format files:
- single_email.format is used to control the format of the message (e.g. you could choose to don't display the subject of your incoming emails removing the subject entry in this file)
- mail.format is instead used to generate a format for the entire applet, separate the single messages and generate the overall table. You have to be carefull when edit the two files because if you repeat the same tag the table will be generate incorrectly.
Create the be.shell entry
Add to the be.shell file the email entry and add it to a Panel to visualize it.
[mail]
FiFo=/home/nemo/.local/share/be.shell/fifo/twolame_mail
Lines=1
Type=Label