Solved

Able to Change an Entry in an Email Body

Posted on 2003-11-10
3
179 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

864 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

25 Experts available now in Live!

Get 1:1 Help Now