The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com



UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bold characters in c shell hemangi13 Shell Programming and Scripting 9 09-19-2008 12:57 PM
What does a bold filename in ls mean? nunemaj UNIX for Dummies Questions & Answers 3 07-26-2008 01:00 PM
color,bold charandevu Shell Programming and Scripting 0 04-07-2008 04:24 AM
How can i make this bold moe2266 UNIX for Dummies Questions & Answers 10 08-06-2007 01:13 PM
Bold Text? Atama UNIX for Dummies Questions & Answers 4 04-12-2002 10:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-05-2008
hemangi13 hemangi13 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 13
Bold characters in mail

I sh,
I have bold characters in a file and I want to mail file to an ID.

$cat file
Incorrect or invalid external email IDs in TO and CC list for email_rules:

If I pass this file to mailx
$ cat file | mailx -s "hi" abc@xyz.com

What I get in mail is
Incorrect or invalid external email IDs in TO and CC list for email_rules:

I want to preserve these bold characeters.
Can someone help?
  #2 (permalink)  
Old 11-05-2008
chatwizrd chatwizrd is offline
Banned
  
 

Join Date: Nov 2008
Posts: 67
The mail command cannot determine what the bold characters mean. Maybe you should send an email with the html bold signs.
  #3 (permalink)  
Old 11-05-2008
hemangi13 hemangi13 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 13
Quote:
Originally Posted by chatwizrd View Post
The mail command cannot determine what the bold characters mean. Maybe you should send an email with the html bold signs.

But <Ctrl V> is not understool by the unix file.
Here mail command is taking input from a file.
  #4 (permalink)  
Old 11-05-2008
chatwizrd chatwizrd is offline
Banned
  
 

Join Date: Nov 2008
Posts: 67
What does ctrl v have to do with anything?
  #5 (permalink)  
Old 11-05-2008
hemangi13 hemangi13 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 13
Quote:
Originally Posted by chatwizrd View Post
What does ctrl v have to do with anything?
can you please let me know how are you suggesting to use html tags?
  #6 (permalink)  
Old 11-05-2008
chatwizrd chatwizrd is offline
Banned
  
 

Join Date: Nov 2008
Posts: 67
Like:

Content-Type: text/html
<b>TEXT</b>

Might be other header info you have to pass I didnt test it.
  #7 (permalink)  
Old 11-05-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,641
As per RFC822 (updated by RFC2822 and RFC5322) mail messages are text-only. If you want to send any form of binary data (which includes text enriched with formatting sequences) you will have to rely on the MIME format laid out in RFC2045, RFC2046 and RFC2049. Declare your message "multipart/mixed" in the MIME header in this case and read the RFCs to understand the requirements.

Otherwise and if you want to adhere to classic RFC822-formatting use "uuencode" (man uuencode) your text and send it this way. The receiving party can use "uudecode" (man uudecode) to retrieve the original file from there. In fact this is what uuencode/uudecode have been designed for.

I hope this helps.

bakunin
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0