Hi people, I am new to this forums. I have a quick question I hope one of you could help me with. I am writing a script to send attachments via email. However I am having trouble when trying to send multiple attachments. Here is the code I am using:
$TMP, $TMP1 and $TMP3 have already been declared and the code works fine for sending emails and attachments, but this code only sends the $TMP3 file as an attachment and does not send $TMP1. I need the script to send both attached files in the same email. Can anyone help me with this?
Hi,
I need to send a mail attachment from the UNIX commandline. I'm using Tru64 and the mail client thats supposed receive the attached file (an excel sheet) is Lotus Notes.
Can anybody help me out? (6 Replies)
Hi ,
i have tried the following command to send an email with an attachment
its working fine but i am getting mail with the embeded content inside the mail that too truncated.
i wanted it as an attachment.
/usr/lib/sendmail -F "MAC SIA" address "rajendra@abc.com.sg" -t <... (6 Replies)
Hi,
I have used the following command to send a text file "archiver.log" as attachment.
(cat mail.log; uuencode archiver.log archiver.log; ) | mailx -s "Failure" asd@a.com :
But in the mail i am not getting new lines in the text file.New Lines are getting replaced with some weird... (2 Replies)
Hello,
I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following:
tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail... (2 Replies)
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
I have created a shell scripts and wanted to email users multiple attachments using mailx. I noticed that when I do a man on mailx I see and -a option for attachments. When I run a:
mailx -s "test attachments" -a include_file -a exclude_file testuser@mydomain.com
(Interrupt -- one more to... (1 Reply)
OS Linux....Just curious as to why this is not working...
uuencode test.txt "test.xls"|mailx -r xxx@server.com -s "validation report" emailrecipient1,emailrecipient2
Please help....Any other options do we need to use?? (3 Replies)
Hi,
Im having a bit of an issue with using the uuencode command and sending out an email.
My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email.
uuencode... (4 Replies)
Discussion started by: 02JayJay02
4 Replies
LEARN ABOUT DEBIAN
mu-extract
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)