Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/email/__pycache__/ |
� �,d�N � �T � d Z g d�ZddlZddlZddlZddlZddlmZ ddlm Z m Z ddlmZ dZ dZ ej d � � Z ej d ej � � Z G d� d� � Z G d � de� � ZdZ G d� de� � Z e eej dz � � � � Zdez Zej ZdS )z:Classes to generate plain text from a message object tree.)� Generator�DecodedGenerator�BytesGenerator� N)�deepcopy)�StringIO�BytesIO)�_has_surrogates�_� z \r\n|\r|\nz^From c � � e Zd ZdZddd�d�Zd� Zdd�Zd� Zd � Zd � Z d� Z d� Zd � Zd� Z d� ZeZd� Zd� Zd� Zd� Zedd�� � Zed� � � ZdS )r z�Generates output from a Message object tree. This basic generator writes the message to the given file object as plain text. N��policyc �X � |�|�dn|j }|| _ || _ || _ || _ dS )a� Create the generator for message flattening. outfp is the output file-like object for writing the message to. It must have a write() method. Optional mangle_from_ is a flag that, when True (the default if policy is not set), escapes From_ lines in the body of the message by putting a `>' in front of them. Optional maxheaderlen specifies the longest length for a non-continued header. When a header line is longer (in characters, with tabs expanded to 8 spaces) than maxheaderlen, the header will split as defined in the Header class. Set maxheaderlen to zero to disable header wrapping. The default is 78, as recommended (but not required) by RFC 2822. The policy keyword specifies a policy object that controls a number of aspects of the generator's operation. If no policy is specified, the policy associated with the Message object passed to the flatten method is used. NT)�mangle_from_�_fp� _mangle_from_�maxheaderlenr )�self�outfpr r r s �6/opt/alt/python311/lib64/python3.11/email/generator.py�__init__zGenerator.__init__$ s<