Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install imaprelay

How to install imaprelay

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install imaprelay
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
Windows (64-bit)
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
Mac OS X (10.5+)
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
Linux (32-bit)
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
Linux (64-bit)
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
 
Author
License
MIT
Imports
Lastest release
version 0.0.5 on Nov 22nd, 2011

imaprelay is a simple tool designed to scratch a very specific itch. Presented with an institutional email account that he had an obligation to check, but lacking desire to use the Outlook Web Access interface, the author was dismayed to find that he was unable to forward his email.

The solution is imaprelay, a python program that logs into an IMAP account and relays emails from the Inbox to a specified email address, via an SMTP server. Once relayed, emails are "archived" -- moved out of the inbox into a different folder.

Although usable programmatically [1], it is expected that most people will want to use the imaprelay command-line tool that this package provides.

By default, this program will look for a configuration file in ~/.secret/imaprelay.cfg -- its location should indicate that it needs to contain plain-text passwords for IMAP and SMTP servers, and thus the program will exit immediately if the file is group- or world-readable.

The available configuration options are listed below:

# IMAP server connection details
[imap]
hostname=imap.exchange.megacorp.com
username=j.bloggs
password=123password

# SMTP server connection details
[smtp]
hostname=mail.recipient.com
username=joe_bloggs
password=passw0rd

# Relay configuration
[relay]
# Who should we relay the emails to?
to=onward@recipient.com
# Where should we look for emails to be relayed?
inbox=INBOX
# Where should we move the emails once successfully relayed?
archive=Archive

Once you've written a config file, all you need to do is run:

imaprelay

For verbose logging, use:

imaprelay -v

Bug reporting

Please report bugs on Github.

[1]See the imaprelay.Relay class.

Subscribe to package updates

Last updated Nov 22nd, 2011

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.