Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Able to Change an Entry in an Email Body

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

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 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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

791 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