Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Stones, Colors and emails
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.mdown
karl.eml.png
pathcolor.py

README.mdown

Le Petit Poucet

Le Petit Poucet is a tale by Charles Perrault. Parents have to abandon their children in the Forest, but "Le Petit Poucet" will leave stones on its path to find its way back.

What does it do?

In our emails, there is a trail of IP addresses identified by the Received email header. This program just take the raw content of an email, extract the IP addresses if any in the Received fields and convert each 4 numbers in an IP adress as a RGB color + opacity, then it creates a badge of this trail like stones in the forest. It saves the trail as a PNG image in the same directory you started the script.

Example

A trail of 5 ip addresses

Example of trails

Dependencies

The script is using the PIL module.

Author - License

Created by Karl Dubost on 2012-02-09. Copyright © 2012 Grange. All rights reserved. Licensed under the MIT license: http://www.opensource.org/licenses/MIT

Something went wrong with that request. Please try again.