The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

DESCRIPTION

build_ldif.pl accepts the name of a target folder as an argument. It then opens that folder and rummages through all the mail files in it, looking for "Reply-to:" headers (or "From:" headers, where there is no "Reply-to:"). It then prints to STDOUT a file in ldif format containing entries for all of the addresses that it finds. It also appends a message into the specified folder containing all of the addresses in both the To: field of the message header and in an LDIF-format attachment.

build_ldif.pl requires MIME::Lite.

SYNTAX

build_ldif.pl -h

build_ldif.pl -s servername -u username -p password -f folder [ -d ]

-f The folder name to process.
-s The servername of the IMAP server
-t Include "To" and "Cc" fields as well as "From"
-u The user to log in as
-p The password for the user specified in the -u option
-d Tells the IMAP client to turn on debugging info
-n Suppress delivering message to folder
-h Prints out this document

NOTE: You can supply defaults for the above options by updating the script.

AUTHOR

David J. Kernen

The Kernen Group, Inc.

imap@kernengroup.com

COPYRIGHT

This example and Mail::IMAPClient are Copyright (c) 1999,2003 by The Kernen Group, Inc. All rights reserved.

This example is distributed with Mail::IMAPClient and subject to the same licensing requirements as Mail::IMAPClient.

imtest is a utility distributed with Cyrus IMAP server, Copyright (c) 1994-2000 Carnegie Mellon University. All rights reserved.