The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Forwarding Question

Discussion in 'E-mail Discussions' started by webdave, May 10, 2004.

  1. webdave

    webdave Active Member

    Joined:
    Jul 4, 2002
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to modify the subject of a message that is forwarded? For example I have an email on my domain that is forwarded to my cell phone. I would like to modify the subject so it say something like "FORWARD FROM XX".
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    This would be easy to do in procmail, but Exim doesn't like procmail much. You could probably do it in Exim itself, but that would require some (not) light reading over at http://www.exim.org

    Possibly the easiest solution, depending on your skills, would be to write a perl or shell script that you forward your email to using a pipe |/path/to/script that takes the email passed to it and rewrites the header that way.

    Thinking about it, you might be able to use procmail, but use that latter method to utilise it.

    Sorry that I don't have any examples, but that would require more effort in Google on my part ;)
     
Loading...

Share This Page