Changeset 350


Ignore:
Timestamp:
Mar 8, 2010, 7:05:28 PM (11 years ago)
Author:
zecrazytux
Message:

Merged bearmail-web and bearmail config files

Location:
bearmail
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • bearmail/bin/bearmail.cgi

    r343 r350  
    3131        TMPL_PATH => "$bearmail_dir/template/",
    3232        PARAMS    => {
    33             cfg_file => "$bearmail_dir/conf/bearmail-web.pl",
     33            cfg_file => "$bearmail_dir/conf/bearmail.conf",
    3434        }
    3535    },
  • bearmail/conf/bearmail.conf

    r292 r350  
    44DAYS_TO_KEEP_VIRUSES="30"
    55MAIN_MAIL_DOMAIN="bearmail.tld"
     6
     7# Backend type: Backend::Files, #FIXME
     8# Backend::Files        store mail account credentials in a plain text file ("mailmap")
     9
     10backend = Backend::Files
     11
     12# Global postmaster
     13# Can manage all domains
     14
     15global_postmaster_login = nickname_or_email
     16global_postmaster_password = MD5password
     17
  • bearmail/lib/BearMail/Backend.pm

    r343 r350  
    2020# Should be selected by some config file
    2121sub backend {
    22   return new Backend::Files;
     22  my ($backend) = @_;
     23  return new $backend;
    2324}
    2425
  • bearmail/lib/BearMail/Web.pm

    r349 r350  
    3636    $self->add_callback('load_tmpl', \&_my_load_tmpl);
    3737
    38     # use a configuration file
    39 #    $self->cfg_file('/home/bear/bearmail/conf/bearmail-web.pl');
     38    # Instanciate the backend
     39    $self->{b} = BearMail::Backend::backend($self->cfg('backend'));
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.