recruiter-email-responder/README.md

49 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2019-09-25 20:13:51 +02:00
[![Buy me a coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png)](https://www.buymeacoffee.com/t159YOryp)
2015-05-05 18:48:12 +02:00
# recruiter-email-responder
2015-05-05 19:03:45 +02:00
- Tired of constantly getting emails from recruiters who are simply too lazy
2015-05-05 19:09:28 +02:00
to understand your terms?
- Did you at first give hints in your replies, mentioning your terms but they
2015-06-11 18:39:07 +02:00
did't give a flying fuck?
2015-05-05 19:09:28 +02:00
- Did you already set up a vacation autoresponse but they use lists and your
emails get delivered to the list response (/dev/null most of the time)?
2015-06-11 18:39:07 +02:00
- Do you get a fuckton of recurring irrelevant inquiries?
2015-05-05 19:03:45 +02:00
Then this is for you. If you set up your email server to pipe the email body
into this tool after filtering for the addresses (used with dovecot2/sieve
2015-06-11 18:39:07 +02:00
filters in my case), it will send replies to the `From` header, not the `Return-Path` one.
2015-05-05 19:03:45 +02:00
2015-05-05 19:09:28 +02:00
Am I a dick for implementing this? No more than the recruiters unwilling to
2015-05-05 19:03:45 +02:00
update their filters/mailing lists.
Nonetheless, this program will only send 1 reply per day, whereas they often
send tons of emails daily.
Used python3 modules:
2015-05-05 19:09:28 +02:00
- `smtplib` to send the email via `localhost:25`
- `sqlite3` to check the sender DB to not resend emails in a day
- `email` to construct the email.
2015-05-05 19:16:53 +02:00
- `syslog` for logging the sending of emails into syslog
2015-05-05 19:03:45 +02:00
External modules:
- `chardet`, to autodetect the input charset (which can vary)
2015-05-05 19:03:45 +02:00
## Requirements:
- A mailserver.
- Sqlite and its python bindings.
2015-05-05 19:03:45 +02:00
- `text-reply.txt` containing the text version of your reply
- `html-reply.html` containing the html version of your reply
## Setup:
- Install `python3` (do I need to say this?)
2015-05-05 19:25:36 +02:00
- Clone this repository into a random directory, reachable for dovecot2
- Change to that directory
- Install virtualenv and external modules by running `tools/install.sh`
- Initialize the sqlite db with running `tools/init-schema.sh`
2015-05-05 19:03:45 +02:00
- Copy your replies (mentioned above) into the same repo directory
2015-06-11 18:39:07 +02:00
- Edit your sieve configuration/procmailrc to pipe your given role into this tool. The executable is `email-responder.sh`, which uses the virtualenv created (not `email-responder.py`!).
2015-05-05 19:03:45 +02:00