DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: IMAP filtering.  (Read 6,570 times)

evil_jc

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
IDEA: IMAP filtering.
« on: April 07, 2008, 12:07 PM »
Anyone able to create a simple IMAP filter app that sits on the taskbar and monitors IMAP users.

Structure of IMAP folder:

USER BOB.

INBOX
Sent
Drafts
---->Spam (user created folder)
---->Keep (user created folder)

Idea is create a filter client that will monitor multiple users (BOB etc) and will move mail to folders based on rules..
Filter on To / CC / From / Subject / Header

EG: 
user BOB - If Subject contains "[**SPAM**]" then move to BOB/SPAM
user BOB - If Header contains "[xxxxxx]" then move to BOB/KEEP

That sort of idea !!

Anyone ??

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: IDEA: IMAP filtering.
« Reply #1 on: April 07, 2008, 12:17 PM »
IMHO this is better implemented either server-side, or with rules in each user's mail client. Solutions already exist for both. Doing continuous client-side polling & filtering wastes bandwidth and CPU cycles.

But it's doable, and if you don't have control of server or user client software, it might be the only option, I guess.
- carpe noctem

evil_jc

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
Re: IDEA: IMAP filtering.
« Reply #2 on: April 07, 2008, 01:09 PM »
I agree this would be best done on the server...
The mail server doesn't support it and doing it via a webmail client is messy.

Would it be a lot of work to create this, to sit on a Windows Server polling the local mail server !! ??

Thanks

JC

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: IDEA: IMAP filtering.
« Reply #3 on: April 07, 2008, 01:59 PM »
And it's impossible to change the server software? :)

I'm not sure how much work it would be to whip something together - there's already existing IMAP libraries one can use, and depending on the level of filtering you need that could be a pretty simple job... since it's supposed to run on a windows server, somebody could probably slap together some C# components to do the task pretty quickly.
- carpe noctem

evil_jc

  • Participant
  • Joined in 2008
  • *
  • Posts: 3
Re: IDEA: IMAP filtering.
« Reply #4 on: April 07, 2008, 07:03 PM »
Cheers..

Anyone fancy a go at this ??

Original address: https://www.donationcoder.com/forum/index.php?topic=12978.0