10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I just need to send an email using MIME protocol from perl script. The data of an email should be a HTML table(contains some datas). I just tried to send a normal text which is working fine whereas if i insert HTML tags i am getting errors. I just tried like below
$mail_host =... (3 Replies)
Discussion started by: prasanna2166
3 Replies
2. Shell Programming and Scripting
Hi all,
i'm using the pearl package MIME::Lite zu send eMails via sendmail. I have the problem, that in the "Received From" part oft the email header occure the user and the hostname of my machine. I'd like to have a name or an email address instead of that:
Received: from... (0 Replies)
Discussion started by: andi25
0 Replies
3. Solaris
Is there a commandline MIME encoder?
standard on solaris 10.
(a-la uuencode) (2 Replies)
Discussion started by: bigearsbilly
2 Replies
4. Shell Programming and Scripting
Hi,
I am using the below code for sending attachment in UNIX but only blank attachment is coming in email even the content is not coming.
Please help!!!
export CONTENT="${DIR}/${RUN_DATE}_mailbody.txt"
export SUBJECT="Search Result for Pattern - ${1}"
export ATTACH=${2}
(
echo... (9 Replies)
Discussion started by: rajesshh
9 Replies
5. Shell Programming and Scripting
Hi Everyone,
I have a question related to using MIME::Lite module in perl.Below i mentioned code blocks used for sending mail through MIME::Lite.
$msg = MIME::Lite -> new (
From => $from,
To => $to,
Subject... (0 Replies)
Discussion started by: DILEEP410
0 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Hi,
I am searching for an option to send mail with multiple attachments using unix. I know uuencode option, but I dont have the executable in our machines. So I am looking for some other option to do this. And I heard that we can send mails using MIME. Can anyone help me with the syntax and... (2 Replies)
Discussion started by: srilaxmi
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am trying to launch an ogg movie from a pdf file which has been produced with pdflatex and
\movie
{\centerline{\includegraphics
{grafiques_xerrades/un_manolo_amb_camera.pdf}}}
{hlims_xerrades/XocCumuls.ogg}
The switch "externalviewer" makes kpdf launch the default... (5 Replies)
Discussion started by: pau
5 Replies
9. UNIX for Advanced & Expert Users
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..... (1 Reply)
Discussion started by: suneel
1 Replies
10. UNIX for Dummies Questions & Answers
:confused:
I am a programmer, but need to work with UNIX in this particular situation. I am used to the plain "mail -s" command and also familiar with how to send attachments in html... but I now need to send an email (not an attachment) in html format so I can embed links... etc.
I am told... (2 Replies)
Discussion started by: cgardiner
2 Replies
File::Type::Builder(3) User Contributed Perl Documentation File::Type::Builder(3)
NAME
File::Type::Builder - parse mime-magic and generate code
SYNOPSIS
my $build = File::Type::Builder->new();
while (<magic>) {
chomp;
my $parsed = $build->parse_magic($_);
my $code = $build->string_start($parsed);
(or string_offset or beshort)
}
DESCRIPTION
Reads in the mime-magic file format and translates it to code. (This documentation would be longer if I really expected anyone other than
me to run the code.)
METHODS
new
Creates a new File::Type::Builder object.
parse_magic
Pulls apart a line of a mime-magic file using a string of regular expressions.
An example mime-magic file can be found in cleancode CVS at http://cleancode.org/cgi-bin/viewcvs.cgi/email/mime-magic.mime?rev=1.1.1.1
<http://cleancode.org/cgi-bin/viewcvs.cgi/email/mime-magic.mime?rev=1.1.1.1>
string
Builds code to match magic that's of type string.
Has to do some cleverness to make the regular expression work properly.
be
Builds code to match 'beshort' and 'belong' magic (eg audio/mpeg, image/jpeg).
PRIVATE METHODS
_substr_matching
Sometimes the data is smaller than the offset we're looking for in the file. If this is the case, then the file is obviously not of that
type, and furthermore we should avoid issuing a couple of warnings that Perl would otherwise emit.
This subroutine generates this code.
_get_escapes
Returns a reference to a hash defining characters that should not be escaped.
TODO
* Add handlers for other magic types (bedate, byte, etc)
* Make verbosity/logging nicer.
* Find more edge cases.
* Remove redundant 'if (length $data > 0)' check.
Longer term:
* Fix for multiple magic format types?
BUGS
Incomplete. Some known issues with odd entries in mime-magic. Skips some mime-magic lines.
SEE ALSO
File::Type, which is partially generated by this module.
AUTHOR
Paul Mison <pmison@fotango.com>
COPYRIGHT
Copyright 2003 Fotango Ltd.
LICENSE
Licensed under the same terms as Perl itself.
perl v5.12.1 2004-05-06 File::Type::Builder(3)