Use new module

This commit is contained in:
Jamie Cameron
2009-03-01 08:02:07 +00:00
parent 5b3c6e91f4
commit 012aa17f67
2 changed files with 2 additions and 28 deletions

View File

@@ -2535,32 +2535,6 @@ local $mail = { 'headers' =>
return &send_mail($mail, undef, 1, 0, $smtp);
}
# clear_time_locale()
# Temporarily force the locale to C, until reset_time_locale is called
sub clear_time_locale
{
if ($main::clear_time_locale_count == 0) {
eval {
$main::clear_time_locale_old = POSIX::setlocale(POSIX::LC_TIME);
POSIX::setlocale(POSIX::LC_TIME, "C");
};
}
$main::clear_time_locale_count++;
}
# reset_time_locale()
# Revert the locale to whatever it was before clear_time_locale was called
sub reset_time_locale
{
if ($main::clear_time_locale_count == 1) {
eval {
POSIX::setlocale(POSIX::LC_TIME, $main::clear_time_locale_old);
$main::clear_time_locale_old = undef;
};
}
$main::clear_time_locale_count--;
}
# make_from_line(address, [time])
# Returns a From line for mbox emails, based on the current time
sub make_from_line

View File

@@ -1,8 +1,8 @@
# mailboxes-lib.pl
# Common functions for reading user mailboxes
do '../web-lib.pl';
do '../ui-lib.pl';
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
do "$module_root_directory/boxes-lib.pl";
do "$module_root_directory/folders-lib.pl";