Graybyt3 Was Here
Linux vps-4656817-x.dattaweb.com 5.14.0-570.33.2.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 14 07:37:35 EDT 2025 x86_64
Apache
200.58.107.103
/
lib
/
python3.9
/
site-packages
/
certbot
/
_internal
/
__pycache__
[ HOME ]
Exec
Submit
File Name : eff.cpython-39.pyc
a }|�g� � @ s� d Z ddlZddlmZ ddlZddlmZ ddlmZ ddl m Z ddl mZ ddlm Z e�e�Zeje dd �d d�Zejee dd �dd �Zed�dd�Zedd�dd�Zejdd�dd�Zdee dd�dd�ZdS )z'Subscribes users to the EFF newsletter.� N)�Optional)� configuration)� constants)�Account)�AccountFileStorage)�util)�config�acc�returnc C s| | j du rdS | j du r@| jdu r,td� q^|jj| jd�|_n| jr^t� r^|jj| jd�|_|jjrxt| �}|�|� dS )a� High level function to store potential EFF newsletter subscriptions. The user may be asked if they want to sign up for the newsletter if they have not given their explicit approval or refusal using --eff-mail or --no-eff-mail flag. Decision about EFF subscription will be stored in the account metadata. :param configuration.NamespaceConfig config: Client configuration. :param Account acc: Current client account. FNTz$you didn't provide an e-mail address��register_to_eff) Z eff_email�email�_report_failure�meta�update�_want_subscriptionr r �update_meta�r r Zstorage� r �9/usr/lib/python3.9/site-packages/certbot/_internal/eff.py�prepare_subscription s r c C sH | j s |sdS |jjrDt|jj� |jjdd�|_t| �}|�|� dS )a High level function to take care of EFF newsletter subscriptions. Once subscription is handled, it will not be handled again. :param configuration.NamespaceConfig config: Client configuration. :param Account acc: Current client account. Nr )�dry_runr r � subscriber r r r r r r �handle_subscription, s r )r c C s d} t j| dd�S )z�Does the user want to be subscribed to the EFF newsletter? :returns: True if we should subscribe the user, otherwise, False :rtype: bool ao Would you be willing, once your first certificate is successfully issued, to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. F)�default)�display_utilZyesno)�promptr r r r ? s �r )r r c C sD t j}d| dd�}t�d| � t�d||� ttj||dd�� dS ) zhSubscribe the user to the EFF mailing list. :param str email: the e-mail address to subscribe �jsonZ%eff_supporters_library_subscribe_form)Z data_typer Zform_idz.Subscribe to the EFF mailing list (email: %s).zSending POST request to %s: %s�<