Email autoresponder for lazy recruiters not getting your point
Find a file
2020-01-17 21:51:20 +01:00
tools Fixing input charset issues by autodetecting 2015-05-14 22:51:48 +02:00
.gitignore Fixing input charset issues by autodetecting 2015-05-14 22:51:48 +02:00
email-responder.py Fix syntax error 2019-01-15 17:33:35 +01:00
email-responder.sh Fix runner script 2020-01-17 21:51:20 +01:00
LICENSE Initial commit 2015-05-05 18:48:12 +02:00
README.md Add buy me a coffee link 2019-09-25 20:13:51 +02:00
requirements.txt Fixing input charset issues by autodetecting 2015-05-14 22:51:48 +02:00

Buy me a coffee

recruiter-email-responder

  • Tired of constantly getting emails from recruiters who are simply too lazy to understand your terms?
  • Did you at first give hints in your replies, mentioning your terms but they did't give a flying fuck?
  • 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)?
  • Do you get a fuckton of recurring irrelevant inquiries?

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 filters in my case), it will send replies to the From header, not the Return-Path one.

Am I a dick for implementing this? No more than the recruiters unwilling to 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:

  • 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.
  • syslog for logging the sending of emails into syslog

External modules:

  • chardet, to autodetect the input charset (which can vary)

Requirements:

  • A mailserver.
  • Sqlite and its python bindings.
  • 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?)
  • 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
  • Copy your replies (mentioned above) into the same repo directory
  • 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!).