Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

email::folder(3pm) [debian man page]

Email::Folder(3pm)					User Contributed Perl Documentation					Email::Folder(3pm)

NAME
Email::Folder - read all the messages from a folder as Email::Simple objects. SYNOPSIS
use Email::Folder; my $folder = Email::Folder->new("some_file"); print join " ", map { $_->header("Subject") } $folder->messages; METHODS
new($folder, %options) Takes the name of a folder, and a hash of options If a 'reader' option is passed in then that is used as the class to read in messages with. messages Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator. next_message acts as an iterator. reads the next message from a folder. returns false at the end of the folder bless_message($message) Takes a raw RFC822 message and blesses it into a class. By default this is an Email::Simple object but can easily be overriden in a subclass. For example, this simple subclass just returns the raw rfc822 messages, and exposes the speed of the parser. package Email::RawFolder; use base 'Email::Folder'; sub bless_message { $_[1] }; 1; reader read-only accessor to the underlying Email::Reader subclass instance PERL EMAIL PROJECT
This module is maintained by the Perl Email Project <http://emailproject.perl.org/wiki/Email::Folder> AUTHORS
Simon Wistow <simon@thegestalt.org> Richard Clamp <richardc@unixbeard.net> COPYING
Copyright 2006, Simon Wistow Distributed under the same terms as Perl itself. This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the doobie brothers. SEE ALSO
Email::LocalDelivery, Email::FolderType, Email::Simple perl v5.10.0 2009-07-27 Email::Folder(3pm)

Check Out this Related Man Page

Email::MIME::ContentType(3pm)				User Contributed Perl Documentation			     Email::MIME::ContentType(3pm)

NAME
Email::MIME::ContentType - Parse a MIME Content-Type Header VERSION
version 1.013 $Id: /my/pep/Email-MIME-ContentType/trunk/lib/Email/MIME/ContentType.pm 31133 2007-03-22T19:52:26.296283Z rjbs $ SYNOPSIS
use Email::MIME::ContentType; # Content-Type: text/plain; charset="us-ascii"; format=flowed my $ct = 'text/plain; charset="us-ascii"; format=flowed'; my $data = parse_content_type($ct); $data = { discrete => "text", composite => "plain", attributes => { charset => "us-ascii", format => "flowed" } }; FUNCTIONS
parse_content_type This routine is exported by default. This routine parses email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the dis- crete type, the composite type, and a hash of attributes. WARNINGS
This is not a valid content-type header, according to both RFC 1521 and RFC 2045: Content-Type: type/subtype; If a semicolon appears, a parameter must. "parse_content_type" will carp if it encounters a header of this type, but you can suppress this by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value. Please consider localizing this assignment! PERL EMAIL PROJECT
This module is maintained by the Perl Email Project. <http://emailproject.perl.org/wiki/Email::MIME::ContentType> AUTHOR
Casey West, "casey@geeknest.com" Simon Cozens, "simon@cpan.org" SEE ALSO
Email::MIME perl v5.8.8 2008-03-01 Email::MIME::ContentType(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Folder permission denied

Hi, I tried to create a new folder inside a folder A but was given an error "Permission denied". Any idea? (4 Replies)
Discussion started by: trivektor
4 Replies

2. UNIX for Dummies Questions & Answers

Searching for fields in a file

Hi, I have a semi colon delimited file of following layout: FName;Email;LName;Age eg. Simon;simon@email.com;Pat;30 Pat;pat@simon@email.com;Simon;25 Sachin;sachin@email.com;Kambli;44 I want to get all records with a particular FName as Simon and LName Pat :confused: How do I dowit? ... (4 Replies)
Discussion started by: c2b2
4 Replies

3. Shell Programming and Scripting

Renaming folders

Hello, I'm new to unix and I have to rename all folder fron the current folder from a name like "xx - Name of the Folder" to "Name of the Folder - xx". xx is a number ... Can somebody, please, help? Thank you! (6 Replies)
Discussion started by: mirciulicai
6 Replies

4. SCO

Root Folder Space Maintenance (SCO)

We have SCO Unix (realease 5.0.5b), Please advise which files can be safely deleted on the system root folder / to create space? These are mainly spool/message/history etc log files. Where they located and can they be deleted using rm? The server has been operational for the past 4 years. ... (17 Replies)
Discussion started by: othman
17 Replies

5. UNIX for Advanced & Expert Users

Function call not return value into var

hi friends, I writing a script, one of the function there is: ################################### ########### Return 1 if has subfolders and 0 otherwise ################## # Get one Argument - Folder name Has_Subfolders() { count=0 cd $1 for zont in `ls -l | grep drw | awk... (4 Replies)
Discussion started by: katzs500
4 Replies

6. Shell Programming and Scripting

awk - print file contents except regex

Hello, I have a file which has user information. Each user has 2 variables with the same name like Email: testuser1 Email: testuser1@test.com Email: testuser2 Email: testuser2@test.com My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Discussion started by: rmsagar
6 Replies

7. Shell Programming and Scripting

How to deleting some files under subdirectory

Hi guys, sorry if my english not very well.. i have a problem.. i have a file and the structure is : Folder/ Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200808... (4 Replies)
Discussion started by: AdziE
4 Replies

8. Emergency UNIX and Linux Support

Spaces in File Name issue

Hi, I have a small issue while using variables for a file name in UNIX. I have file name like "abc def 123.txt" Folder will be in /zzz/xxx/yyy I created 2 variables Folder = '/zzz/xxx/yyy' file = 'abc def 123.txt' While using this in grep command i am... (6 Replies)
Discussion started by: pssandeep
6 Replies

9. Solaris

How to setup Email notification when storage reach certain % ?

(16 Replies)
Discussion started by: i-counsellor
16 Replies

10. Shell Programming and Scripting

Folder level size monitoring

Hi All, I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Discussion started by: Shailesh6
25 Replies

11. Shell Programming and Scripting

Peer Review File/Folder Script

Hello *nix friends, I've written a shell script that allow web admin's to copy file/folder from a development site to the production site. It's more or less a poor man SVN. I'm posting the script here because I was able to get many questions answered through this forum and also, I want to... (4 Replies)
Discussion started by: rwhite35
4 Replies

12. What is on Your Mind?

Directory vs. Folder?

How would you call it? (24 Replies)
Discussion started by: absorber
24 Replies

13. OS X (Apple)

Folder location interrupted

Have had hidden/interrupted folder. It is on a NTFS-partition I use for OS and Bootcamp. I think that the problem is a HFS+ problem. I happened with all the folder which had a slash "/" in their folder name. So for example I had the folder "test/rand". Recently it disappeared from finder. In... (9 Replies)
Discussion started by: sceltecs
9 Replies

14. UNIX for Beginners Questions & Answers

Find command + replace the extension (.xxx) by *

Hello, I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file.. Example : Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD I need to generate and output file with : ... (6 Replies)
Discussion started by: royinfo.alain
6 Replies

15. What is on Your Mind?

Prototyping New Responsive Mobile UNIX.COM

I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes: Prototype Mobile Home Page: https://www.unix.com/members/1-albums214-picture690.jpg Prototype Mobile Search Page: ... (43 Replies)
Discussion started by: Neo
43 Replies