Sponsored Content
Full Discussion: Mailx and Elm
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions How do I send email? Mailx and Elm Post 549 by Neo on Wednesday 13th of December 2000 01:02:26 PM
Old 12-13-2000
The syntax:

Code:
mailx -s "Subject" email@xxx.com < uuencode_file

has no flags to tell the mailer to send the file as an attachment and sends the file as message text. This is the normal behavior of both elm and mailx. Sending attachments is a MIME function, so you must set the MIME-type in the message header to make this work.
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mailx and Elm

I am trying to send mail from Unix (HP9000) to Exchange mail system. I need to send the file as an attachment. I am using uuencode to encode file as ASCII, but can't seem to get to over to Exchange as an attachment. I have tried both elm and mailx. I know I've done this before, but can't remember... (4 Replies)
Discussion started by:
4 Replies

2. UNIX for Dummies Questions & Answers

elm command in unix

I have written a select statement using html flags and i am sending the output to logfile. I using elm to send the outfile in HTML format . elm -s "ESS Monthly Performance Report" "${alert_list}" (1 Reply)
Discussion started by: JosephGerard
1 Replies

3. Shell Programming and Scripting

Email in Ksh using elm

I have a txt file which contains the following details. email address date other email address date other from this i want to take each email address and send mail with a message and put the date in the message ( in some specific place ). need to send mails one by one marking... (2 Replies)
Discussion started by: srikanth78
2 Replies

4. Shell Programming and Scripting

How to send a mail using elm in cc list?

Can any one tell me how to use elm to send mail using CC list with command line ? I need to write script to send mail to TO list as well as CC list Not using elm editor. Regards, Venkat (0 Replies)
Discussion started by: svenkatareddy
0 Replies

5. Solaris

How to send a mail using elm in cc list?

Can any one tell me how to use elm to send mail using CC list with command line ? I need to write script to send mail to TO list as well as CC list Not using elm editor. Regards, Venkat (0 Replies)
Discussion started by: svenkatareddy
0 Replies
MU-EXTRACT(1)                                                 General Commands Manual                                                MU-EXTRACT(1)

NAME
mu_extract - display and save message parts (attachments), and open them with other tools. SYNOPSIS
mu extract [options] <file> mu extract [options] <file> <pattern> DESCRIPTION
mu extact is the mu sub-command for extracting MIME-parts (e.g., attachments) from mail messages. It works on message files, and does not require the message to be indexed in the database. For attachments, the file name used when saving it, is the name of the attachment in the message. If there is no such name, or when saving non-attachment MIME-parts, a name is derived from the message-id of the message. If you specify a pattern (a case-insensitive regular expression) as the second argument, all attachments with filenames matching that pat- tern will be extracted. The regular expressions are Perl-compatible (as per the PCRE-library). Without any options, mu extract simply outputs the list of leaf MIME-parts in the message. Only 'leaf' MIME-parts (including RFC822 attach- ments) are considered, multipart/* etc. are ignored. OPTIONS
-a, --save-attachments save all MIME-parts that look like attachments. --save-all save all non-multipart MIME-parts. --parts=<parts> only consider the following numbered parts (comma-separated list).The numbers for the parts can be seen from running mu extract without any options but only the message file. --target-dir=<dir> save the parts in the target directory rather than the current working directory. --overwrite overwrite existing files with the same name; by default overwriting is not allowed. --play Try to 'play' (open) the attachment with the default application for the particular file type. On MacOS, this uses the open program, on other platforms is uses xdg-open. You can choose a different program by setting the MU_PLAY_PROGRAM environment variable. EXAMPLES
To display information about all the MIME-parts in a message file: $ mu extract msgfile To extract MIME-part 3 and 4 from this message, overwriting existing files with the same name: $ mu extract --parts=3,4 --overwrite msgfile To extract all files ending in '.jpg' (case-insensitive): $ mu extract msgfile '.*.jpg' To extract an mp3-file, and play it in the the default mp3-playing application. $ mu extract --play msgfile 'whoopsididitagain.mp3' BUGS
Please report bugs if you find them: http://code.google.com/p/mu0/issues/list AUTHOR
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> SEE ALSO
mu(1) User Manuals February 2012 MU-EXTRACT(1)
All times are GMT -4. The time now is 06:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy