5 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
2. Shell Programming and Scripting
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
3. Shell Programming and Scripting
Hi there,
I am lil confused with the following issue.
I have a File, which has the following header: IMSHRATE_043008_101016
a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008
9820102 MAR 2008 D030108
... (1 Reply)
Discussion started by: cmaroju
1 Replies
4. Shell Programming and Scripting
why we use strcpy and strcat in KSH program?? (1 Reply)
Discussion started by: debasis.mishra
1 Replies
5. Shell Programming and Scripting
Ok well this isn't homework or classwork, I have been done with school for many years. I offered to help my co-worker who's daughter needs help. I didn't realize I had got rid of all of my UNIX books until after I agreed to help. (3 Replies)
Discussion started by: penguin123
3 Replies
LEARN ABOUT DEBIAN
courriel::part::multipart
Courriel::Part::Multipart(3pm) User Contributed Perl Documentation Courriel::Part::Multipart(3pm)
NAME
Courriel::Part::Multipart - A part which contains other parts
VERSION
version 0.29
SYNOPSIS
my $headers = $part->headers();
my $ct = $part->content_type();
for my $subpart ( $part->parts ) { ... }
DESCRIPTION
This class represents a multipart email part which contains other parts.
API
This class provides the following methods:
Courriel::Part::Multipart->new( ... )
This method creates a new part object. It accepts the following parameters:
o parts
An array reference of part objects (either Single or Multipart). This is required, but could be empty.
o content_type
A Courriel::Header::ContentType object. This defaults to one with a mime type of "multipart/mixed".
o boundary
The part boundary. If none is provided, a unique value will be generated.
o preamble
Content that appears before the first part boundary. This will be seen by email clients that don't understand multipart messages.
o epilogue
Content that appears after the final part boundary. The spec allows for this, but it's probably not very useful.
o headers
A Courriel::Headers object containing headers for this part.
$part->parts()
Returns an array (not a reference) of the parts this part contains.
$part->part_count()
Returns the number of parts this part contains.
$part->boundary()
Returns the part boundary.
$part->mime_type()
Returns the mime type for this part.
$part->content_type()
Returns the Courriel::Header::ContentType object for this part.
$part->headers()
Returns the Courriel::Headers object for this part.
$part->is_inline(), $part->is_attachment()
These methods always return false, but exist for the sake of providing a consistent API between Single and Multipart part objects.
$part->is_multipart()
Returns true.
$part->preamble()
The preamble as passed to the constructor.
$part->epilogue()
The epilogue as passed to the constructor.
$part->container()
Returns the Courriel or Courriel::Part::Multipart object to which this part belongs, if any. This is set when the part is added to another
object.
$part->stream_to( output => $output )
This method will send the stringified part to the specified output. The output can be a subroutine reference, a filehandle, or an object
with a "print()" method. The output may be sent as a single string, as a list of strings, or via multiple calls to the output.
See the "as_string()" method for documentation on the "charset" parameter.
$part->as_string()
Returns the part as a string, along with its headers. Lines will be terminated with "
".
ROLES
This class does the "Courriel::Role::Part" and Courriel::Role::Streams roles.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
perl v5.14.2 2012-03-07 Courriel::Part::Multipart(3pm)