Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefuertes committed Jul 5, 2010
0 parents commit a7f30cf
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README
@@ -0,0 +1,25 @@
------------------------------
___ __ __ ___ ____
/ _ \| \/ |_ _| _ \
| | | | |\/| || || | | |
| |_| | | | || || |_| |
\__\_\_| |_|___|____/

Queru's Mail IMAP Dispatcher
------------------------------

INTRODUCTION:

QMID it's a mail sorter or dispatcher that's connect with your mail server using IMAP and executes the rules defined at
"qmid-rules.conf" over the Inbox messages, doing the required actions like move, copy or delete the message.

ADVANTAGES OVER YOUR MUA RULES AND OTHER SYSTEMS:

- QMID can live at mail server or at any server wich can connect to your imap server.
- QMID can run from the cron, and execute the rules totally unatended.
- QMID mantains your server folders clean and sorted.
- You can connect to server with your mobile or tablet, and have the mail pre-sorted by QMID. Don't need to use your
big computer's mua to sort.
- QMID can be very fast if it's in the same server that your email.
- Opensource and free (as in freedom). You can adapt it to meet your needs.
- And finally, QMID it's KISS (Keep It Simple Stupid), very light, very clean, very easy to configure and install.
48 changes: 48 additions & 0 deletions qmid-rules.conf.dist
@@ -0,0 +1,48 @@
# QMID: Queru's mail IMAP dispatcher.
#
# Mail dispatching rules.
#
# Name:|Type: |String: |Action:
#
# - Name...: Free descriptive string.
#
# - Type...: HEAD:<header name> (Search by headers).
# TEXT (Search by whole message text).
#
# - String.: String to match at given search type.
#
# - Action.: What to do when match.
# MOVE:<mailbox> (Move message to given mailbox. Ex: MOVE:.Lists.php-devel).
# COPY:<mailbox> (Copy to given mailbox. Ex. COPY:.Important).
# DEL (Delete message).
#

# ==========[Lists]===========================================================================

Symfony-devs |HEAD:List-id |symfony-devs.googlegroups.com |MOVE:.Lists.Symfony
Symfony-users|HEAD:List-id |symfony-users.googlegroups.com |MOVE:.Lists.Symfony
Symfony-es |HEAD:List-id |symfony-es |MOVE:.Lists.Symfony

# ==========[News]============================================================================
Google Alerts |HEAD:From |googlealerts-noreply@google.com |MOVE:.News
debian |HEAD:List-id|debian-news |MOVE:.News

# ==========[People]==========================================================================
# Work:
All work |HEAD:From |@myenterprise.com |MOVE:.People.Work

# ==========[Spam]============================================================================
Spam BBVA2 |HEAD:From |BBVA@bbva-secure.es |MOVE:.Junk
Spam promoway |HEAD:From |promoway |MOVE:.Junk
Spam bongostudio |HEAD:From |info@bongostudio.es |MOVE:.Junk
Spam interservi |HEAD:From |info@interservi.info |MOVE:.Junk
SPAM |HEAD:Subject|\*\*\*SPAM\*\*\* |MOVE:.Junk
Spam french |HEAD:Subject|Le Cash et les Cadeaux |DELETE

# ==================[Spam by TEXT]=====================================================================
Spam VIAzzGRA |TEXT|--- |VIAzzGRA |MOVE:.Junk
Spam CIAzzLIS |TEXT|--- |CIAzzLIS |MOVE:.Junk
Spam Portugales |TEXT|--- |Ofrecimiento de cooperacion para los espanoles y portugales|MOVE:.Junk
Spam Relojes |TEXT|--- |Vive y deja a amante |MOVE:.Junk
Spam Nicandro |TEXT|--- |Nicandro@westconsl.com |MOVE:.Junk
Spam Portugales |TEXT|--- |Ofrecimiento de cooperacion para los espanoles y portugales|MOVE:.Junk
16 changes: 16 additions & 0 deletions qmid.conf.dist
@@ -0,0 +1,16 @@
<?php
/*
* QMID's general configuration.
* TODO: Translate to real conf, no code.
*/

define('DATEFORMAT', "d/m/Y@H:i:s");
define('LOGFILE', "/var/log/qmid.log");
define('IMAP_HOST', "localhost");
define('IMAP_PORT', "993");
define('IMAP_USER', "user@domain.com");
define('IMAP_PASS', "mypass");
define('IMAP_INBOX', "INBOX");
define('IMAP_OPTIONS', "/imap/ssl/novalidate-cert");

?>

0 comments on commit a7f30cf

Please sign in to comment.