Solved

Able to Change an Entry in an Email Body

Posted on 2003-11-10
3
178 Views
Last Modified: 2010-04-22
Please find a sample of an email :

x-sender: demo@mydomain.com
x-receiver: 22767695@faxdomain.com
content-class: urn:content-classes:message
Subject: Demo Fax Message
MIME-Version: 1.0
Content-Type: text/plain;
      charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 16 Sep 2003 15:10:59 +0300
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Fw: Looking for partner
Thread-Index: AcN5MiT2fu77XQrAQDCzMvppN+c1cADGjbgw
From: "My Name" <myemail@mydomain.com>
To: "22767695@faxdomain.com" <'22767695@faxdomain.com'>

Question : How can i change any of the above fields ( To: , From: , etc ) while routing
that email from my server. What i really need for the moment is at the To: Section to be able to make it like To: "22767695" <'22767695@faxdomain.com'>
0
Comment
Question by:Christos_Petrides
3 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 50 total points
ID: 9714718
sed -e 's/To: "\([^@]*\)\([^"]*\)\(.*\)/To: "\1\3/' oldmailfile > newmailfile
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now