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

NAME

Win32::Outlook::IAF - Internet Account File (*.iaf) management for Outlook Express/2003.

VERSION

Version 0.9

SYNOPSIS

    use Win32::Outlook::IAF;

    my $iaf=new Win32::Outlook::IAF;

    my $src='MyAccount.iaf';

    local $/;
    open(INPUT,$src) or die "Can't open $src for reading: $!\n";
    binmode(INPUT);

    $iaf->read_iaf(<INPUT>);
    close(INPUT);

    # forgot your POP3 password?
    print $iaf->POP3Password();

    $iaf=new Win32::Outlook::IAF(
      IMAPServer => 'imap.example.com',
      IMAPUserName => 'user@example.com',
    );

    $iaf->IMAPSecureConnection(1);     # set boolean value
    $iaf->IMAPSecureConnection('yes'); # another way

    $iaf->IMAPAuthType(IAF_AT_USE_INCOMING); # handy constants

    $iaf->IMAPPort('hundred'); # dies (not a number)

    $iaf->NonExistent(); # dies (can't access nonexistent field)

DESCRIPTION

Allows to create SMTP, POP3, IMAP and HTTP email or NNTP news account configuration files, that can be imported by Microsoft Outlook Express/2003 clients.

Reverse operation is possible - most fields from such files can be decoded.

General Methods

new()
read_iaf()
write_iaf()

Account Fields

AccountName()

Account name displayed in list of accounts in Outlook or Outlook Express.

AccountID()

Unique ID of the account. Name of the registry key that stores the account settings.

Connection Fields

ConnectionType()

Connection type used by account. One of the IAF_CT_* enumeration values.

ConnectionName()

Name of the dial-up account. This is used when ConnectionType() is set to IAF_CT_DIALUP.

SMTP Fields

SMTPServer

SMTP server host name.

SMTPUserName

User name used when connecting to SMTP server.

SMTPPassword

Password used when connecting to SMTP server.

SMTPAuthType

Authentication method required by SMTP server. One of the IAF_AT_* enumeration values.

SMTPPort

SMTP server port.

SMTPSecureConnection

Use secure connection (SSL) to the SMTP server.

SMTPTimeout

Timeout in seconds for communication with SMTP server.

SMTPDisplayName

Display name of the user. This is used as a name in 'From:' mail header.

SMTPOrganizationName

Organization of the user. This is used in 'Organization:' mail header.

SMTPEmailAddress

Sender email address. This is used as the email address in 'From:' mail header.

SMTPReplyToEmailAddress

Reply To email address. This is used as the email address in 'Reply-To:' mail header.

SMTPSplitMessages
SMTPSplitMessageSize
SMTPSignature
SMTPPasswordPrompt

POP3 Fields

POP3Server

POP3 server host name.

POP3UserName

User name used when connecting to POP3 server.

POP3Password

Password used when connecting to POP3 server.

POP3AuthType

Authentication method required by POP3 server. One of the IAF_AT_* enumeration values.

POP3Port

POP3 server port.

POP3SecureConnection

Use secure connection (SSL) to the POP3 server.

POP3Timeout

Timeout in seconds for communication with POP3 server.

POP3LeaveMailOnServer
POP3RemoveWhenDeleted
POP3RemoveWhenExpired
POP3ExpireDays
POP3SkipAccount
POP3PasswordPrompt

IMAP Fields

IMAPServer()

IMAP server host name.

IMAPUserName()

User name used when connecting to IMAP server.

IMAPPassword()

Password used when connecting to IMAP server.

IMAPAuthType()

Authentication method required by IMAP server. One of the IAF_AT_* enumeration values.

IMAPPort()

IMAP server port.

IMAPSecureConnection()

Use secure connection (SSL) to the IMAP server.

IMAPTimeout()

Timeout in seconds for communication with IMAP server.

IMAPRootFolder()

Root folder path on IMAP server.

IMAPPolling()

Include this account when receiving mail or synchronizing.

IMAPStoreSpecialFolders()

Store special folders on IMAP server.

IMAPSentItemsFolder()

Send Items folder path on IMAP server.

IMAPDraftsFolder()

Drafts folder path on IMAP server.

IMAPPasswordPrompt()

Prompt for password when connecting to IMAP server.

IMAPPollAllFolders

NNTP Fields

NNTPServer

NNTP server host name.

NNTPUserName

User name used when connecting to NNTP server.

NNTPPassword

Password used when connecting to NNTP server.

NNTPAuthType

Authentication method required by NNTP server. One of the IAF_AT_* enumeration values.

NNTPPort

NNTP server port.

NNTPSecureConnection

Use secure connection (SSL) to the NNTP server.

NNTPTimeout

Timeout in seconds for communication with NNTP server.

NNTPDisplayName

Display name of the user. This is used as a name in 'From:' message header.

NNTPOrganizationName

Organization of the user. This is used in 'Organization:' message header.

NNTPEmailAddress

Sender email address. This is used as the email address in 'From:' message header.

NNTPReplyToEmailAddress

Reply To email address. This is used as the email address in 'Reply-To:' message header.

NNTPSplitMessages
NNTPSplitMessageSize
NNTPUseGroupDescriptions
NNTPPolling
NNTPPostingFormat
NNTPSignature
NNTPPasswordPrompt

Enumeration Values

ConnectionType Values

IAF_CT_IE_DEFAULT

Use IE connection setting.

IAF_CT_DIALER

Connect using 3rd party dialer.

IAF_CT_DIALUP

Connect using dial-up account.

IAF_CT_LAN

Connect using local network.

AuthType Values

IAF_AT_NONE

SMTP server does not require authentication.

IAF_AT_SPA

Logon to SMTP server using name and secure password authentication.

IAF_AT_USE_INCOMING

Logon to SMTP server using incoming mail server settings.

IAF_AT_PLAIN

Logon to SMTP server using name and plaintext password.

PostingFormat Values

IAF_PF_USE_OPTIONS

...

IAF_PF_PLAIN

...

IAF_PF_HTML

...

AUTHOR

Przemek Czerkas, <pczerkas at gmail.com>

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Win32::Outlook::IAF

You can also look for information at:

BUGS

Please report any bugs or feature requests to bug-win32-outlook-iaf at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Win32-Outlook-IAF. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2007 Przemek Czerkas, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.