Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to Set Mime type to mailx Post 38146 by suneel on Tuesday 8th of July 2003 02:17:48 AM
Old 07-08-2003
How to Set Mime type to mailx

I have a problem while sending attachement , it is displying Content into body of mail (Junk Data) instead of attachment (zip format) in Linux, same code is working in Sun Solaris..

I have read query in this site , need to set MIME type to mailx componment. Please help me how to set MIME type..


Thanks,
Suneel

Last edited by suneel; 07-08-2003 at 03:44 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Lynx - Downloading - extension handling - changing mime type?

Using Lynx, when I try to download a .rar, it confirms I want to download and its got it as an appication/rar file. However, split archives that end in .r## (.r00, .r01 ...) are not recognized as an appication/rar file and it reads the file like a .txt or .html. How can I fix this? Thanks! (2 Replies)
Discussion started by: yitzle
2 Replies

2. Shell Programming and Scripting

Retrieving File's Mime-type

Alright, so I am trying to use perl (or any other shell scripting language, awk/sed/bash for instance), to retrieve the mime-type of a file. I want to keep it in one file, and most of the modules that are on cpan that check for mime types (Magic), aren't installed on these boxes. Anyone have... (2 Replies)
Discussion started by: Rhije
2 Replies

3. Solaris

set dir in zone fs type

Hi all, what is the meaning and what all value we can pass to set dir= in zone fs type when we are configuring whole-root zone? Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

4. Programming

How to set DNS lookup type for getaddrinfo()?

Hi there, I'm trying to do an MX type lookup using getaddrinfo(), but I can't work out how to change the lookup type to MX from the standard A - can anybody tell me how to do this? Thanks very much John G (3 Replies)
Discussion started by: JohnGraham
3 Replies

5. Shell Programming and Scripting

mailx to set priorities

Hi, can we set priority to mails which I have sent using mailx? Is there any options in mailx for that? I am receiving mails on Microsoft Outlook (4 Replies)
Discussion started by: Deei
4 Replies

6. UNIX for Dummies Questions & Answers

Is there a way to set ' and " as a non quotes type in bash?

Howdy, I got a script that adds a esc char before all chars interpeted by bash shell but I wan't other solution. Is there a way to set ' and " as a non quotes type in bash (some local variable)? Have found that scsh is a non-quoting type shell but after reading Why I don't use scsh as a scripting... (3 Replies)
Discussion started by: johny_be_good
3 Replies

7. Shell Programming and Scripting

MIME Type detection for Net::SMTP

I've spent a good two weeks on trying to figure out a proper way to get the mime type of a file. The "file" command on the Sparc machine I'm working on is an older version and does not support the --mime flag. It outputs things like: somefile.pdf: Adobe Portable Document Format (PDF) v1.5 ... (3 Replies)
Discussion started by: mrwatkin
3 Replies

8. UNIX for Beginners Questions & Answers

MIME type for sending gzip file as attachment in email

Hello, I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt. mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 Replies
MIME message tool(1)					      General Commands Manual					      MIME message tool(1)

NAME
mime-tool - a simple program to construct MIME messages with attached files SYNOPSIS
mime [ -dDvV ] [ -S subject ] [ -F from-address ] [ -T to-address ] [ -C carbon-copy address ] [ -P prolog-text ] [ -E epiplogue-text ] [ -B boundry ] [ -O overall content-type ] { [ -78abiquxopm ] [ -t content-type ] filename } DESCRIPTION
The mime program constructs MIME messages with attached files. The user can specify the content type (application/octet-stream, text/plain or a user specified type), content type encoding (7bit, 8bit, binary, base64 and auto-detect), content disposition (attached or inline) and the content boundry string. The user can also specify some mail related options: subject, from-address, to-addres, carbon-copy addres, prolog-text and epilog-text. The output of the MIME-tool program can be sent directly to the mail, mailx or sendmail commands (or any other command that accepts RFC-822 formatted messages). NOTE: Specifying 7-bit encoding for an attachment that contains 8-bit data will convert any data bytes whose high-bit is set to question marks. OPTIONS
-7 7-bit ASCII encoding -8 8-bit ASCII encoding -a application/octet-stream content type -b binary encoding -d low detail debugging -D high detail debugging -s write a subpart -i disposition: inline (instead of attachment) -q quoted-printable encoding -c content-type explicit content type -t text/plain content type -o omit disposition line -u unknown encoding, auto-detect -v verbose messages -V very verbose messages -x base64 encoding -p copy existing MIME part -o omit content-disposition -m omit content-transfer-encoding -n filename override the filename in the disposition header -N don't add a filename parameter in the disposition header -0 no-op EXAMPLES
Using MIME-tool to write a mail message to a file: mime -S "test message" -F me@foo.net -T someone@somewhere.net file1 > test.msg Using MIME-tool with the mail command: mime -S "test message" -F me@foo.net file1 | mail someone@somewhere.net Using MIME-tool with the mailx command: mime -S "test message" -F me@foo.net file1 | mailx someone@somewhere.net Using MIME-tool with the sendmail command: mime -S "test message" -F me@foo.net file1 | sendmail someone@somewhere.net VERSION
This is version 1.5.topal3 from June 2009. KNOWN BUGS
Most of the header values are not properly quoted or folded, so long or complex values for these headers may cause problems. Specifically, the from-address, to-address, carbon-copy-address and content-type headers may not be properly quoted or folded. For some reason, certain e-mail clients (espcially from a large software company located in Redmond, Washington) don't seem to recognize file attachments as attachments, but instead displays them as inline attachments. (maybe this isn't MIME-tool's fault, but I've gotten a few e-mails about it, so I'm mentioning it here) AUTHOR
mime is written by Jeffrey Dutky <dutky@bellatlantic.net> Oscar Esteban spotted an off-by-one error in the base64 encoding function. Sergey Lapin spotted a bug in the filename header construction. Chris Hemphill noticed that the documentation (this manual page and the README file) didn't include any examples of how to call the program with common mail commands. Some additional fixes and additions by Phil Brooke to support Topal. AVAILABILITY
The original MIME-tool package can be downloaded from my web page at http://members.bellatlantic.net/~dutky This modified version is distributed with Topal: http://homepage.ntlworld.com/phil.brooke/topal/ MIME tool mime MIME message tool(1)
All times are GMT -4. The time now is 03:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy