For those that are stuck in an office with people that can't get a lunch ordered and called in. This script will randomly choose a person to put the order together and another person to call the order in and email them.
- Create a list of people in your office using the same format as example.in
- Modify the filename of the list in the script
- Download an image to send with your email
- run the program
./lunch.py
- Install Mutt
sudo apt-get install mutt
- Create new gmail address
- enable IMAP
- enable less-secure devices - https://support.google.com/accounts/answer/6010255?hl=en
- edit the ~/.muttrc file
set imap_user = "<your_email>@gmail.com"
set imap_pass = "<your_password>"
set smtp_url = "smtp://<your_email>@smtp.gmail.com:587/"
set smtp_pass = "<your_password>"
set from = "<your_email>@gmail.com"
set realname = "Lunch_Boss"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed="+[Gmail]/Drafts"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no