0
H403
358ſà f
403 Forbidden
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.
# ˆl–Ðz¾”Jj"TÒ�zàœ¸”Å£Â
ƒ gÁÀÄ § #!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/convert_maildir_to_mdbox Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
package scripts::convert_maildir_to_mdbox;
use strict;
=head1 NAME
convert_maildir_to_mbox - Convert a cpanel user and all their accounts
or single email account from maildir to mdbox.
=head1 SYNOPSIS
convert_maildir_to_mdbox [options] ..
Options:
-help Brief help
-user= Convert a cPanel user and all of their email account
-email= Convert a single email account
-delete-old-format Remove maildir files after a successful conversion
=head1 OPTIONS
=over 4
=item B<-help>
Print a brief help message and exits.
=item B<-user=>
Convert a cPanel user and all of their email account from
maildir to mdbox format.
=item B<-email=>
Convert a single email account from maildir to mdbox format
The email should be in one of the following formats:
user@domain.tld
cpuser
_mainaccount@domain.tld
=item B<-delete-old-format>
Remove the maildir files after a successful conversion to mdbox
=back
=head1 DESCRIPTION
B will convert the email accounts from maildir to
mdbox format and reconfigure dovecot to access the
converted account in maildir format.
=cut
use parent 'Cpanel::Email::Convert::CLI';
sub _TARGET_FORMAT { return 'mdbox'; }
sub _SOURCE_FORMAT { return 'maildir'; }
exit( __PACKAGE__->script(@ARGV) ) unless caller();
# ˆl–Ðz¾”Ëm
q@=q¦nõ1hßÃ
ƒdMÂÁÅ © # SPDX-License-Identifier: MIT
"""
Classes Without Boilerplate
"""
from functools import partial
from typing import Callable
from . import converters, exceptions, filters, setters, validators
from ._cmp import cmp_using
from ._config import get_run_validators, set_run_validators
from ._funcs import asdict, assoc, astuple, evolve, has, resolve_types
from ._make import (
NOTHING,
Attribute,
Factory,
attrib,
attrs,
fields,
fields_dict,
make_class,
validate,
)
from ._next_gen import define, field, frozen, mutable
from ._version_info import VersionInfo
s = attributes = attrs
ib = attr = attrib
dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)
class AttrsInstance:
pass
__all__ = [
"Attribute",
"AttrsInstance",
"Factory",
"NOTHING",
"asdict",
"assoc",
"astuple",
"attr",
"attrib",
"attributes",
"attrs",
"cmp_using",
"converters",
"define",
"evolve",
"exceptions",
"field",
"fields",
"fields_dict",
"filters",
"frozen",
"get_run_validators",
"has",
"ib",
"make_class",
"mutable",
"resolve_types",
"s",
"set_run_validators",
"setters",
"validate",
"validators",
]
def _make_getattr(mod_name: str) -> Callable:
"""
Create a metadata proxy for packaging information that uses *mod_name* in
its warnings and errors.
"""
def __getattr__(name: str) -> str:
dunder_to_metadata = {
"__title__": "Name",
"__copyright__": "",
"__version__": "version",
"__version_info__": "version",
"__description__": "summary",
"__uri__": "",
"__url__": "",
"__author__": "",
"__email__": "",
"__license__": "license",
}
if name not in dunder_to_metadata.key