<commit_before><img src="https://emailhooks.xyz/static/img/name.svg" width="250px;" alt="Emailhooks.xyz">
<br/>
Source for https://emailhooks.xyz


### What is it?
Emailhooks is a service that receives email for you and sends it to your endpoint as a json post request.

It is a python project that runs on google app engine. App engine is **required** for this project because it uses platform specific stuff to receive the incoming mail. It was made with a django variant called [django-nonrel](https://github.com/django-nonrel/djangoappengine) that was modified to run on non-relational databases like app engine's nosql cloud datastore.

More info about emailhooks on the [faq](https://emailhooks.xyz/faq).

If you just want to handle incoming email and don't need a web app interface to add/remove/change recipients, consider running a stand alone receiver with [this project](https://github.com/DeMille/bare-bone-receiver). It's the same basic logic but a single python file.


### How to deploy
- Create a new app engine project ([getting started page](https://cloud.google.com/appengine/docs/standard/python/quickstart))
- Download the google cloud sdk (if you don't have it)
- Clone repo
- Add a django `SECRET_KEY` to `settings.example.py` and rename the file `settings.py`

Deploy with:
```sh
$ gcloud app deploy app.yaml
```

Then you need to deploy the datastore indexes (only the first time or if they have changed since your last deploy):
```sh
$ gcloud app deploy index.yaml
```<commit_msg>readme fix<commit_after><img src="https://rawgit.com/DeMille/emailhooks/master/emailhooks/static/img/name.svg" width="250px;" alt="Emailhooks.xyz">
<br/>
Source for https://emailhooks.xyz


### What is it?
Emailhooks is a service that receives email for you and sends it to your endpoint as a json post request.

It is a python project that runs on google app engine. App engine is **required** for this project because it uses platform specific stuff to receive the incoming mail. It was made with a django variant called [django-nonrel](https://github.com/django-nonrel/djangoappengine) that was modified to run on non-relational databases like app engine's nosql cloud datastore.

More info about emailhooks on the [faq](https://emailhooks.xyz/faq).

If you just want to handle incoming email and don't need a web app interface to add/remove/change recipients, consider running a stand alone receiver with [this project](https://github.com/DeMille/bare-bones-receiver). It's the same basic logic but a single python file.


### How to deploy
- Create a new app engine project ([getting started page](https://cloud.google.com/appengine/docs/standard/python/quickstart))
- Download the google cloud sdk (if you don't have it)
- Clone repo
- Add a django `SECRET_KEY` to `settings.example.py` and rename the file `settings.py`

Deploy with:
```sh
$ gcloud app deploy app.yaml
```

Then you need to deploy the datastore indexes (only the first time or if they have changed since your last deploy):
```sh
$ gcloud app deploy index.yaml
```
{'fraction_non_alphanumeric': 0.09398619783108775, 'fraction_numerical': 0.001971738416036806, 'mean_word_length': 4.554744525547445, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6970194', 'n_tokens_mistral': 873, 'n_tokens_neox': 839, 'n_words': 391}