The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ZConf::Mail::GUI - Implement various GUI functions for ZConf::Mail.

VERSION

Version 0.1.0

SYNOPSIS

    use ZConf::Mail::GUI;

    my $zcmg = ZConf::Mail::GUI->new();
    ...

METHODES

new

This initiates the new the object for this module.

One arguement is taken and that is a hash value.

hash values

zcmail

This is a ZConf::Mail object to use. If it is not specified, a new one will be created.

zconf

This is the ZConf object to use. If it is not specified the one in the object for zcrunner will be used. If neither zconf or zcrunner is specified, a new one is created.

zcgui

This is the ZConf::GUI to use. If one is not specified,

compose

This opens a window for composing a message.

args hash

account

This is the account to use. If this is not defined, the default sendable account is used.

to

An array of To addresses.

cc

An array of CC addresses.

bcc

An array of BCC addresses.

files

An array of files to attach.

in-reply-to

This will set the in-reply-to header value.

    $zcmg->compose({account=>'smtp/whatever', to=>'foo@bar'});
    if($zcmg->{error}){
        print "Error!\n";
    }

composeFromURI

This composes a new message from a URI.

args hash

account

This is the account to use.

uri

This is the URI to use.

    $zcmg->composeFromURI({account=>'smtp/whatever', uri=>'mailto:foo@bar'});
    if($zcmg->{error}){
        print "Error!\n";
    }

manageAccounts

This manages the accounts.

    $zcmg->manageAccounts;
    if($self->{error}){
        print "Error!\n";
    }

dialogs

This returns the available dailogs.

windows

This returns a list of available windows.

errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.

    $self->{error}=undef;
    $self->{errorString}="";

dialogs

At this time, no windows are supported.

windows

accountmanage

compose

ERROR CODES

1

Failed to initialize ZConf::Mail.

2

Failed to initialize ZConf::GUI.

3

Backend error.

4

Missing arguement.

5

The URI is not a mailto URI.

6

The URI appears to not contain any to address.

AUTHOR

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

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

SUPPORT

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

    perldoc ZConf::Mail::GUI

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2008 Zane C. Bowers, all rights reserved.

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