Python Forum
I want to manage my email with python
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to manage my email with python
#1
my question here

We have a system monitoring tool that is out of control  and sends mails on down system.  

It is a shared system and the other group will decommission systems and does not feel they need to notify us as we are "just contractors" 

In a linux shell prompt I would like to be able to view all the emails for a time I can set.
example:  all emails last 3 days
                all emails last 24 hours 

Also here is the kicker, I would like to sort them by least number of emails.  If I am oncall on the weekend and we have emails on a server
that has been down for a month, I really do not need to work on it on easter sunday ..... 

This would all run in a redhat bash shell  

Regards;
timfox123
Reply
#2
I am compelled to ask, what have you tried so far?

Although this seems more of a management issue, your post is still a bit unclear.  Are you looking to write a bash script solution or a Python solution?  If as the title of your thread suggests, you may want to check the mailbox library and the email library.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating Email Message Class in Python QuavoJ 1 2,139 Jul-20-2020, 08:30 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020