Jump to content

Help with Procmail and specialised autoresponder


Seekingsolution

Recommended Posts

Hi all, I am at wits end in trying to find a solution. Here is what I am trying to achieve:

 

We use procmail to handle our mail. I would like to create an autoresponder (with a difference) on a email account called support. If anyone sends a mail to support they must automatically recieve a mail that contains a sequential numeric number in the Subject line. The body of the autoresponse will always remain the same, but should person A send a mail to support the must get something like "Thank you for your mail, your number is 101". The number must increase numerically for every mail received and cannot ever be the same. Is this possible to do?

 

The autoresponder will be set to reply to the sender with his number and this same mail must be sent to one of our other accounts as a reference.

 

Any help or guidance will be greatly appreciated.

Link to comment
Share on other sites

:0 c

* ^From: .*@*.*

| formail -x From: | mail subject...

 

Something along the lines of above. Use formail to get the From address and pipe it off to a script which will reply via an email.

 

I'm sure there are loads of reciepies for autoresponders and procmail out there.

 

-steve

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.