Sponsored Content
Full Discussion: Read mail attachments in AIX
Top Forums UNIX for Advanced & Expert Users Read mail attachments in AIX Post 302934620 by cjcox on Monday 9th of February 2015 10:47:45 AM
Old 02-09-2015
With regards to easy extraction and naming of attachments, the program I love is uudeview:

Index of /download/RPMS/uudeview

YMMV
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mail attachments

I'm writing scripts on HP-UX. Is there a way to attach a file to a mail message. I don't want to imbed the data in the mail message. (1 Reply)
Discussion started by: Multithreaded
1 Replies

2. UNIX for Dummies Questions & Answers

file name got cut when using mail attachments

I am using the following command to send a zip file as an attachment to my internet email-id. uuencode ABC_DEFG_HIJ.zip ABC_DEFG_HIJ.zip | mail -s "attachment from shell" pal@yahoo.com Eventhough i have given the attached file as 'ABC_DEFG_HIJ.zip', when i receive the mail in my internet... (3 Replies)
Discussion started by: Pal
3 Replies

3. UNIX for Dummies Questions & Answers

sending attachments in mail

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)
Discussion started by: rajendragora
6 Replies

4. AIX

Send mail attachments and have a mail body

Hi, How can I send mail attachments from shell script (AIX) and have a mail body as well ? Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies

5. Solaris

mail with attachments

I want to send a mail with three attachments, but nothing happened. I tried it with mail and mailx. Are there special options for these commands or is it not possible to send mails under Solaris with attachments? Must there be special adjustments in the environment? Can anyone give an... (6 Replies)
Discussion started by: ninjadan
6 Replies

6. UNIX for Advanced & Expert Users

Mail attachments getting corrupted...

Hi , Whenever I try to send mails with attachments to external email Id's the attachment is not encoded properly which appears along with body (text) of the mail. The attachement is always getting corrupted. Can anyone please suggest a solution. Regards, Sandipan (1 Reply)
Discussion started by: Sandipan
1 Replies

7. Shell Programming and Scripting

Problem with multiple mail attachments

Hi everyone... I am facing problem with the multiple mail attachments. cd /work/mohan/pi_log/ mail_file='uuencode ahmedabad.csv ahmedabad.csv ; uuencode ahmedabad_devrpt_20110530.csv ahmedabad_devrpt_20110530.csv' ( $mail_file ) | mailx -m -s"test" domain@website.com its giving me error... (1 Reply)
Discussion started by: mohanm
1 Replies

8. Shell Programming and Scripting

Reading Mail attachments using unix

:wall:hi all, please somebody can help me out in reading the pop3 mail attachments or saving it locally i have a mail account where i receive .csv attachments i need to read that attachments and process them. any sample code can be much appriciated Removed email :wall: (3 Replies)
Discussion started by: srikanthkadapal
3 Replies

9. Shell Programming and Scripting

Format text in mail attachments

Hi Gurus, I am working on a script that sends a text file attachment on mail from unix server to my widows outlook mail box. When i see the text file in UNIX it is perfectly formatted but when i open the same file in the mail, it looks weird as the next line is added to the same line. For... (10 Replies)
Discussion started by: jayadanabalan
10 Replies

10. Shell Programming and Scripting

Adding Attachments to mail

Hi, I need to send a mail with html code in body and an attachment along with the body and subject. The html code must display a table with data in it in the mail. I have tried the 'sendmail' command, but I am am able to display the table in the mail and unable to attach an attachment. ... (5 Replies)
Discussion started by: Durga Prasad NK
5 Replies
UUENVIEW(1)						      General Commands Manual						       UUENVIEW(1)

NAME
uuenview - a powerful encoder for binary files SYNOPSIS
uuenview [options] file(s) DESCRIPTION
uuenview encodes a binary file into ASCII text for sending over non-8-bit electronic data channels, such as electronic mail or the usenet. uuenview is a superset of and fully backwards compatible with the standard uuencode(1) command, featuring more comfort and more flexibil- ity. Files encoded with uuenview are compatible with virtually all decoders, as long as the encoding method (see below) is supported by the remote side. If the remote side uses uudeview(1), there shouldn't be any problems at all. If properly configured, uuenview can directly send encoded files by email or to the usenet. These messages are wrapped into a proper MIME envelope, which is handy if the recipient uses MIME-compliant mail or news software. OPTIONS
ENCODING SELECTION -b Chooses the Base64 encoding method as specified by the MIME standard. -u Chooses the uuencoding method, for compatibility with uuencode(1). -y Chooses the yEncoding method. -x Chooses the now obsolete xxencoding method. -t Sends the file(s) as plain text. -q Encodes the file(s) using quoted printable encoding. These options are positional and affect the encoding of all remaining files on the command line until changed. When sending, posting or attaching files, the default is to use Base64, resulting in MIME compliant messages. Otherwise, when encoding to standard output or into a file, the default is to use uuencoding. TARGETS -o Specifies that output shall be written into files. These files will have the same base name as the source file and an extension of .001, .002 etc, depending on the number of parts required by the -lines option. The encoded files are written to the current direc- tory. -od path Same as '-o', but the encoded files are written to the given directory instead. -m email Mails the encoded file(s), each one probably split into multiple parts, to the given email address. Multiple recipients can be given as a quoted, comma-separated list. On Unix systems, mail is usually piped to sendmail(8). -p newsgroup Posts the encoded file(s), each one probably split into multiple parts, to the given newsgroup. Multiple newsgroups can be given as a quoted, comma-separated list. The inews(1) program is invoked for posting. You may have to set the NNTPSERVER enviroment variable to your news server. -a Attaches files. This feature is expected to be used from shell scripts and the like. In attach mode, a message is read from standard input, complete with headers. The files given on the command line are then "attached" to the message, which is converted, if neces- sary, to a proper MIME multipart format. The -a option can be combined with -m or -p in order to directly mail or post the result. Else, the message, complete with attachments, is written to standard output. If no target option is given, the encoded data is printed to standard output. HEADERS When mailing or posting a file, it is possible to set certain headers. Be careful to quote parameters that consist of more than one word. -s subject Set the Subject: header line. The file name and part number are automatically appended. Without this, a default subject header is generated. -f from Set the From: header line. -r reply Set the Reply-To: header line. OTHER -v Verbosely prints everything the program's trying to do. -lines Substituting lines with a number, sets the maximum number of encoded lines per part. The encoded data is automatically split into as many parts as required. Line counts less than 200 are ignored. The uuencoding and xxencoding methods encode 45k, and Base64 encodes 57k of data in 1000 lines. If this option is not specified, the default is unlimited lines per part, resulting in exactly one part. file(s) One or more filenames to be processed. To encode a file from the standard input, use a single hyphen '-' and give a filename to be used for the encoded file as the next parameter. Options may also be set in the $UUENVIEW environment variable, which is read before processing the options on the command line. NOTES
Files read from standard input can only be used once, meaning that at most one target option may be given. Output written to standard output cannot be split into multiple parts. In this case, the -lines option is ignored. uuenview must be correctly configured at compile time in order for mailing and posting to work. If it doesn't, consult your system adminis- trator. The program used for posting a file can be set at runtime using the INEWS environment variable. This setting overrides the com- pile-time configuration. Base64 is not MIME. Base64 is the encoding specified by the MIME standard, but in order for a message to become a proper MIME message, a number of headers are required. uuenview produces these headers when mailing or posting, but not when writing to a file. In this case, uuenview does not have any control over the headers. If you include Base64 output into your messages, they are not MIME-compliant! If you rename, copy or link the program to uuencode, it may act as a smart replacement for the standard, accepting the same command-line syntax. This has not been well-tested yet. EXAMPLES
uuenview -m 'root,fred@somewhere.com' uudeview.tgz Encodes the file uudeview.tgz and mails it to both your local system administrator and to your friend Fred at the Somewhere company. If you give more than one filename on the command line, each file is usually handled separately. A workaround is to send them all as attachment to a single (or empty) mail: uuenview -m root -b -a file1 file2 < /dev/null Creates an empty mail and attaches the two given files, encoded in Base64 format, and mails the result to your system administrator. SEE ALSO
uudeview(1), uuencode(1), uudecode(1), sendmail(8), inews(1). The uudeview homepage on the Web, http://www.fpx.de/fp/Software/UUDeview/ BUGS
The program does not detect error conditions when mailing or posting. Attaching only works reliably if certain headers of the input message (for example Content-Type) are not folded and shorter than 1024 char- acters. It is not possible to encode into BinHex. The program will quite likely fail to handle binary data as input for plain text or quoted-printable attachments. On plain text attach- ments, the line length (must be less than 998 characters according to MIME) is not enforced. It is not possible to set the "charset" value of plain text attachments. It is not possible to set the content type value of attachments. sendmail(8) stops reading upon a line consisting only of a single dot. uudeview does not check plain text input files against this condi- tion. (The problem is worked around when using quoted-printable, and does not exist with the other encodings.) June 2001 UUENVIEW(1)
All times are GMT -4. The time now is 12:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy