Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   posting messages through email, posted by Devin Bougie on Mon May 2 22:20:40 2016 
    icon2.gif   Re: posting messages through email, posted by Devin Bougie on Mon Oct 17 20:15:09 2016 
Message ID: 68442     Entry time: Mon Oct 17 20:15:09 2016     In reply to: 68315
Icon: Reply  Author: Devin Bougie  Author Email: devin.bougie@cornell.edu 
Category: Question  OS: Linux  ELOG Version: 3.1.1 
Subject: Re: posting messages through email 
Just incase anyone's interested, we went ahead and wrote a python script to act as an email gateway for ELOG.  If anyone's interested, we'd be happy to share and appreciate any additional improvements.

- You can send a new message to the email address to start a new thread.
- You can reply to messages received from that logbook. If you include the message you are replying to in the body of your message, the reply will be threaded appropriately as a response to the initial message.
- The body of a new message will only include the text/html portion of a MIME message if it's available.
- Attachments work, although we remove spaces and add a random identifier (to avoid collisions) to each filename.
- the Author field is derived using the From address of the email.
- the subject field is derived using the Subject of the email.
- both single and double quotes are preserved in the author, subject, or body of the message

Devin

> Hello,
> 
> Has anyone implemented an email gateway for ELOG, allowing users to submit entries by sending an email?  Granted this should be possible using the elog client binary, but I thought I'd see if I've overlooked any examples 
or docs first.
> 
> Thanks!
> Devin
ELOG V3.1.5-fe60aaf