Skip Menu |
 

This queue is for tickets about the MIME-tools CPAN distribution.

Report information
The Basics
Id: 48036
Status: resolved
Priority: 0/
Queue: MIME-tools

People
Owner: dmo+pause [...] dmo.ca
Requestors: jpierce [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.427
Fixed in: (no value)



Subject: mimesend tweaks
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1248128969-6413-71"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 274
Download (untitled) / with headers
text/plain 274b
Please find enclosed a patch to make the sample mimesend script a little more useful out of the box. It: 1) Removes a duplicate definition of GIF MIME-type 2) Includes a MIME-type for PDF 3) Clarifies documentation 4) Adds support for reading a single attachment from STDIN
Subject: mimesend.patch
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1248128969-6413-70"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: text/x-patch; name="mimesend.patch"
Content-Disposition: inline; filename="mimesend.patch"
Content-Transfer-Encoding: binary
Content-Length: 1084
Download mimesend.patch
text/x-diff 1k
--- /opt/src/CPAN/build/MIME-tools-5.427/examples/mimesend 2007-08-29 09:36:44.000000000 -0400 +++ /usr/local/bin/mimesend 2009-07-20 18:26:30.000000000 -0400 @@ -12,8 +12,8 @@ -n Don't actually send it; just print it to stdout. -t to The "to" address. -s subj The subject of the message. - -f file Path to attached file. - -m type MIME type of last -f file. + -f file Path to attached file, or - for STDIN. + -m type MIME type of previous -f; therefore -m must follow -f. For example: @@ -41,10 +41,10 @@ jpg image/jpeg jpeg image/jpeg gif image/gif - gif image/gif tif image/tiff tiff image/tiff xbm image/xbm + pdf application/pdf ); # Usage: @@ -113,7 +113,7 @@ # Build: $top = build MIME::Entity Type => ($type || type_for($path)), - Path => $path, + $path eq '-' ? (Data => [<>]) : (Path => $path), Encoding => '-SUGGEST'; $top->head->add('To', $to); $top->head->add('Subject', $subj);
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26540-1271950669-686.48036-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 14
Added in 5.428


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.