Solved

Able to Change an Entry in an Email Body

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 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