[SLUG] Capturing emails from IMAP folders

2008-10-13 Thread Nigel Allen

Hi

We are currently modifying an email system for a customer and have got a 
little stumped at their latest request.


Basically what happens now (paraphrasing) is that a customer service rep 
receives an email from a customer. We have put a plugin into Thunderbird 
that, when the send button is pressed, prompts the rep for a customer 
number. That number is embedded into an X-header in the email. At this 
point on the linux server, mimedefang looks into the email and if it 
finds a header, it validates the customer code that has been entered. If 
it is a valid customer number, mimedefang writes a copy to customers 
(a large email account with hundreds of folders). When the copy arrives 
in customers, procmail grabs the header value and files away the 
email into the correct subfolder.


The problem is that the original email is still sitting in the rep's inbox.

What the customer has asked for now is for something that will grab 
the original email from the rep's inbox and file that in the correct 
place with the response automagically.


The only identifier which is common across the emails that I can think 
of using would be the in-reply-to header.


Does anyone have any thoughts of how on earth we could comb through the 
user's inbox in real-time and achieve this?


TIA

Nigel

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Capturing emails from IMAP folders

2008-10-13 Thread Alex Samad
On Mon, Oct 13, 2008 at 06:56:41PM +1100, Nigel Allen wrote:
 Hi

 We are currently modifying an email system for a customer and have got a  
 little stumped at their latest request.

 Basically what happens now (paraphrasing) is that a customer service rep  
 receives an email from a customer. We have put a plugin into Thunderbird  
 that, when the send button is pressed, prompts the rep for a customer  
 number. That number is embedded into an X-header in the email. At this  
 point on the linux server, mimedefang looks into the email and if it  
 finds a header, it validates the customer code that has been entered. If  
 it is a valid customer number, mimedefang writes a copy to customers  
 (a large email account with hundreds of folders). When the copy arrives  
 in customers, procmail grabs the header value and files away the  
 email into the correct subfolder.

 The problem is that the original email is still sitting in the rep's inbox.

 What the customer has asked for now is for something that will grab  
 the original email from the rep's inbox and file that in the correct  
 place with the response automagically.

 The only identifier which is common across the emails that I can think  
 of using would be the in-reply-to header.

 Does anyone have any thoughts of how on earth we could comb through the  
 user's inbox in real-time and achieve this?

not sure if it will do all of it, but grepmail might be a place to start

 TIA

 Nigel

 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


-- 
Any reproduction or redistribution of the Software not in accordance with the
License Agreement is expressly prohibited by law, and may result in severe
civil and criminal penalties.


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html