File: //lib/python3.10/__pycache__/mailbox.cpython-310.pyc
o
    E�h�3 �                   @   s>  d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
ZddlZddlZddl
mZ zddlZW n eyI   dZY nw g d�Zej�d�ZG dd� d�ZG dd	� d	e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� dejj�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G d d!� d!e�Z"G d"d#� d#e�Z#G d$d%� d%�Z$G d&d'� d'e$�Z%d?d)d*�Z&d+d,� Z'd-d.� Z(d/d0� Z)d1d2� Z*d3d4� Z+G d5d6� d6e,�Z-G d7d8� d8e-�Z.G d9d:� d:e-�Z/G d;d<� d<e-�Z0G d=d>� d>e-�Z1dS )@zDRead/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.�    N)�GenericAlias)�Mailbox�Maildir�mbox�MH�Babyl�MMDF�Message�MaildirMessage�mboxMessage�	MHMessage�BabylMessage�MMDFMessage�Error�NoSuchMailboxError�
NotEmptyError�ExternalClashError�FormatError�asciic                   @   s  e Zd ZdZdCdd�Zdd� Zdd	� Zd
d� Zdd
� Zdd� Z	dDdd�Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� ZdDd0d1�Zd2d3� ZdDd4d5�Zd6d7� Zd8d9� Zd:d;� Zd<d=� Z d>d?� Z!d@Z"dEdAdB�Z#e$e%�Z&dS )Fr   z*A group of messages in a particular place.NTc                 C   s    t j�t j�|��| _|| _dS )zInitialize a Mailbox instance.N)�os�path�abspath�
expanduser�_path�_factory��selfr   �factory�create� r   �/usr/lib/python3.10/mailbox.py�__init__%   s   
zMailbox.__init__c                 C   �   t d��)�$Add message and return assigned key.�&Method must be implemented by subclass��NotImplementedError�r   �messager   r   r    �add*   �   zMailbox.addc                 C   r"