Saravanan666/pypi-org huggingface dataset:
Package: mailmq
MailMQ======`sendmail` like mail-relaying via MQ.When working with PHP and transaction email services, there's the super useful`ssmtp`, which works great, except that `ssmtp` is synchronous and if yourmail relay is slow, it will slow your entire web request down.Enter `mailmq`, which does the same thing, but via a producer-consumer model.You run an AMQP service, e.g. RabbitMQ, and a Celery worker that runs`mailmq.server` and then you can use `mailmq.client` to send emailasynchronously.The server is designed for Docker, so all configuration happens via theenvironment.Server------Via Docker:```docker-compose up```Or directly:```CELERY_BROKER=localhost SMTP_HOST=mail celery -A mailmq.server worker```The following environment variables are supported:* `CELERY_BROKER` - AMQP broker (required)* `SMTP_HOST` - destination SMTP server host (required)* `SMTP_PORT` - destination SMTP server port* `SMTP_USER` - user for SMTP auth* `SMTP_PASS` - password for SMTP auth* `MAIL_FROM` - default sender (strongly recommended)Client------Designed to have the same command line arguments as `sendmail`.From pip:```pip install mailmq```With source:```python setup.py install``````CELERY_BROKER=amqp mailmq -t << EOFFrom: badger@badger.comTo: badger@badger.comSubject: badgerBadger!EOF```Or without installing:```CELERY_BROKER=localhost python -m mailmq.client badger@example.com```The following environment variables are supported:* `CELERY_BROKER` - AMQP broker (required)Add the following to your `php.ini` to use with PHP:```sendmail_path = "mailmq -t"```Running Tests Locally---------------------# Install PHPUnit, with an appropriate version of PHP also installedand available locally.# Make python3 available. you might have to use virtualenv to do this.e.g. `mkvirtualenv --python=python3 .`# Install celery locally with `pip install -r requirements.txt`# `./tests/run.sh` - this starts up the required docker containers,configures PHP to use mailmq for sending email, then runs the phpunittests defined in /testsLicense-------MIT license.Copyright (c) 2016, Squareweave <hello@squareweave.com.au>Permission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copiesof the Software, and to permit persons to whom the Software is furnished to doso, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
Package: mailoo
MailooModulo Python que facilita o envio de Emails  usando  provedoresSMTP.Com funçoes de carregamento de conteudo de arquivos, à escritas dehtmlin-line.O mesmo proporciona de forma facil e com poucas linhas a criaçao e envio de emails.Para os amantes deEmail-Marketingou Entusiastas em geral.Suporte para Versao 3 de PythonInstalaçao:$ pip install mailooUso>> import mailoo

>> email = mailoo.Mail(email_user, key_pass)   # email_user -> email do usuário.

                                               # key_pass -> Chave de Aplicativo 
                                               -> GMAIL, ou senha do email nos 
                                               demais casos.

>> email.send(subject,msg,email)               # Envio do email...Outros Usos============
Emails.txt:
|-- email1
|-- email2
|-- ...
============

>> email.send(subject,msg, Emails.txt)

######### OU #########

>> email.send(subject,file.html, arquivo.txt)  # arquivo html para varios emails.

                                               # file.html -> arquivo html a ser 
                                               enviado no lugar de uma mensagem 
                                               comum.CaracterísticasEnvio de Varios emails com simplicidade.Escolha automática de envio via SSL/TLS.Escreva mensagens simples ou insira texto html.Leitura e envio de conteudo de arquivo html/txt.Obs:O modulo usa os servidores de saída dos provedores de emails do usuário.
EX: GMAIL, OUTLOOK, HOTMAIL,YAHOO.

Portanto Cuidado com os Limites estabelecidos por esses provedores, pois os
mesmos estabelecem políticas de controle de envio. No geral os mesmos possuem
limites MÁXIMOS DE ENVIO de 300 emails/dia.
Observando e Respeitando os limites estabelecidos, usem o modulo a vontade...Contato:@informeai
Package: mailpad
MailPad Python LibraryMailPad is a Python library that simplifies email sending and integrates with language models for generating email content. Utilizing OpenAI's language models to generate text emails.InstallationYou can install MailPad using pip:pipinstallmailpadSending Emailfrommailpadimportmailpadimportosmail=mailpad('smtp-server','smtp-port')os.environ["MAILPAD_EMAIL"]="YOUR_EMAIL"os.environ["MAILPAD_PASSWORD"]="YOUR_PASSWORD"from_email="your_email@exphample.com"to_email=["her_email@example.com"]subject="Subject"message="""Message Content"""mail.send_mail(from_email,to_email,subject,message)Sending Email With Attachmentsfrommailpadimportmailpadimportosmail=mailpad('smtp-server','smtp-port')os.environ["MAILPAD_EMAIL"]="YOUR_EMAIL"os.environ["MAILPAD_PASSWORD"]="YOUR_PASSWORD"from_email="your_email@exphample.com"to_email=["her_email@example.com"]subject="Subject"message="""Message Content"""attachment="/Users/Docs/Letter.pdf"mail.send_mail_with_attachmnet(from_email,to_email,subject,message,attachment)Brevo IntegrationCreate account at:https://www.brevo.com/frommailpadimportmailpadimportos#Using Brevo Serversmail=mailpad()mail.brevo()os.environ["MAILPAD_EMAIL"]="YOUR_EMAIL"os.environ["MAILPAD_PASSWORD"]="YOUR_PASSWORD"from_email="your_email@exphample.com"to_email=["her_email@example.com"]subject="Subject"message="""Message Content"""mail.send_mail(from_email,to_email,subject,message)Generating Emails With OpenAifrommailpadimportmailpadAIimportosimportopenaios.environ["OPENAI_API_KEY"]="YOUR_OPENAI_KEY"mail=mailpadAI()mail.openai()form_input="EMAIL_MESSAGE/EMAIL_CONTEXT"email_sender="SENDER_NAME"email_recipient="RECIPIENT_NAME"email_style="EMAIL_STYLE"response=mail.get_llm_response(form_input,email_sender,email_recipient,email_style)print(response)
Package: mailpapa
Mailpapapipinstallmailpapaimportmailpapares=mailpapa.search(company='safaricom',domain="safaricom.co.ke")emails=res.emailsforemailinemails:print(email.address)print(email.name)print(email.position)# unfortunately linkedin hates crawling, this causes mailpapa to return an empty response.emails#To make it easier and avoid Exceptions useifres.ok:foremailinres.emails:print(email.address)print(email.name)print(email.position)Mailpapa accepts diiferent email patterns.
By defaults it usesfirstname.lastname@domainfirst_last=mailpapa.ACCEPTED_PATTERNS.FIRST_LASTres=mailpapa.search(company='safaricom',domain="safaricom.co.ke",pattern=first_last)The following patterns are supportedimportmailpapamailpapa.ACCEPTED_PATTERNS.FIRSTLAST# johndoe@contosdo.commailpapa.ACCEPTED_PATTERNS.LASTFIRST# doejohn@contosdo.commailpapa.ACCEPTED_PATTERNS.LAST# doe@contosdo.commailpapa.ACCEPTED_PATTERNS.FIRST# john@contosdo.commailpapa.ACCEPTED_PATTERNS.FIRST_LAST# john_doe@contosdo.commailpapa.ACCEPTED_PATTERNS.LAST_FIRST# doe_john@contosdo.commailpapa.ACCEPTED_PATTERNS.FIRSTDOTLAST# john.doe@contosdo.commailpapa.ACCEPTED_PATTERNS.LASTDOTFIRST# doe.john@contosdo.commailpapa.ACCEPTED_PATTERNS.FLAST# jdoe@contosdo.commailpapa.ACCEPTED_PATTERNS.LFIRST# djohn@contosdo.commailpapa.ACCEPTED_PATTERNS.FIRSTL#johnd@contosdo.commailpapa.ACCEPTED_PATTERNS.LASTF# doej@contosdo.comMailpapa also allows you to search multiple role. Defaults toceoroles=["sales","ceo","finance"]mailpapa.search(company='safaricom',domain="safaricom.co.ke",positions=roles)# ORmailpapa.search(company='safaricom',domain="safaricom.co.ke",positions="sales")CLImailpapa-h

usage:mailpapa[-h][-pPATTERN][-rROLE][-jfile]companydomain

SearchforEmailsintheWild

positionalarguments:companyCompanynamedomainCompanydomain

optionalarguments:-h,--helpshowthishelpmessageandexit-pPATTERN,--patternPATTERNEmailPattern-rROLE,--roleROLEEmployeePositions

SaveOptions:-jfile,--jsonfileSaveemailsinaJSONfileinthegivenlocation.>>>mailpapasafaricomsafaricom.co.ke-rsales

----------------------------------------------------------
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
HiddenNamehidden.name@safaricom.co.ke
----------------------------------------------------------How about we send emailconfig={"password":os.environ.get("SMTP_PASS",None),"host":os.environ.get("SMTP_HOST",None),"port":int(os.environ.get("SMTP_PORT",None))}# Paramsemail.sendmail(sender:str=None,subject:str=None,body:str=None,html:bool=False,config:dict=None)email=res.emails[0]email.sendmail("myemail@contosdo.com",#sendersubject="Canton Fair",body="Did you get the ticket to canton?",config=config)https://support.google.com/accounts/answer/6010255https://myaccount.google.com/lesssecureapps
Package: mail-parser-reply
Mail Reply Parser 📧🐍Multi-language email reply parsing for international environments 🌍Mail clients handle reply formatting differently, making reliable parsing difficult. Thank god we havestandards.  This library splitstext-basedemails into separate replies based on common
headers produced by different, multilingual clients usually indicating separation.Replies can either present the whole mail message body, or strip headers, signatures and common disclaimers if required.
Currently supported languages are: English (en), German (de), French (fr), Italian (it) and Japanese (ja) –
adding more languages is quite easy.This is an improved Python implementation of GitHub's Ruby-basedemail_reply_parserand an adaptation of Zapier'semail-reply-parserwhich both split the
mails in fragments instead of distinct replies. They also only support English.⭐ Features⭐ Easy to implement⭐ Multilanguage Support⭐ Text-based mail parsing⭐ Detect headers, signatures and disclaimers⭐ Fully type annotated⭐ Easy-to-read code and well-testedOverview 🔭This library makes it easy to split an incoming mail into replies, making working with emails much more manageable
and easily providing the text content for each reply – with or without signatures, disclaimers and headers.For example, it can turn the following email:Awesome! I haven't had another problem with it.

Thanks,
alfonsrv

On Wed, Dec 20, 2023 at 13:37, RAUSYS <info@rausys.de> wrote:

> The good news is that I've found a much better query for lastLocation.
> It should run much faster now. Can you double-check?Into just the replied text content:Awesome! I haven't had another problem with it.Get started 👾Installationpipinstallmail-parser-replyParse Repliesfrommailparser_replyimportEmailReplyParsermail_body='foobar';languages=['en','de']mail_message=EmailReplyParser(languages=languages).read(text=mail_body)print(mail_message.replies)Orget only the latest reply using:latest_reply=EmailReplyParser(languages=languages).parse_reply(text=mail_body)Parser APIEmailMessage.text:              Mail body
EmailMessage.languages:         Languages to use for parsing headers
EmailMessage.replies:           List of EmailReply; single parsed replies
EmailMessage.include_english:   Always include English language for parsing
EmailMessage.default_language:  Default language to use if language dictionary 
                                doesn't include

EmailMessage.HEADER_REGEX:      RegEx for identifying headers, separating mails
EmailMessage.SIGNATURE_REGEX:   RegEx for identifying signatures
EmailMessage.DISCLAIMERS_REGEX: RegEx for identifying disclaimers

EmailMessage.read(): Parse EmailMessage.text to EmailReply which are then stored 
                     in EmailMessage.repliesEmailReply.content:     Unprocessed mail body with headers, signatures, disclaimers
EmailReply.body:        Mail body without headers, signatures, disclaimers
EmailReply.full_body:   Mail body; just without headers

EmailReply.headers:     Identified Headers
EmailReply.signatures:  Identified Signatures
EmailReply.disclaimers: Identified disclaimers
Package: mailpit-api-client
API-client forhttps://github.com/axllent/mailpitwritten in PythonAuthors:Lars Liedtke <corvan@gmx.de>Version:1.0.0Go to thedocumentationMotivationFor work, I thought about introducing integration testing.
We are working withOdooand I wanted to test if e-mails created by Odoo really were sent.
I rememberedmailhog, which I discovered to be abandoned.
Searching for an alternative, I found Mailpit - for which I decided to write an API-client in my free time.InstallIf you want to use the library withunittest:pipinstallmailpit-api-clientIf you want to use the library withpytest:pipinstallmailpit-api-client[pytest]Usagethis library - as is Mailpit - is mostly meant for testing. Giving the url of Mailpit to a tool to send e-mail messages to and then use this client to check on the API if the mail was sent.ClientThe client itself consists of the classAPIinmailpit/client/api.py, that offers methods, which query the API-Endpoints and are named respectively.
To use this class, simply try something like this.
You have to have Mailpit running on localhost for this[1].importmailpit.client.apiapi=mailpit.client.api.API("localhost:8025")messages=api.get_messages()Additionally, there are some model-classes that wrap the API’s responses.
For example withmessages=api.get_messages()messages will be an instance ofmailpit.client.models.Messages, which you can find in link:mailpit/client/models/messages.py[mailpit/client/models.py]. +
The model-classes’ attributes are named the same as Mailpit’s responses, as documented in the API’sREADME.md, but as is convention in Python in Snakecase.For examples have a look at the link:tests[tests]TestingTo make testing easier there are test-helpers inside themailpit.testingpackage.unittestIn order to provide some convenience a test-case class has been created with the nameEMailTestCasederiving fromunittest.TestCase, which is meant to be inherited from, as you would do fromTestCase:frommailpit.testing.unittestimportEMailTestCaseclassMyTest(EMailTestCase):deftest_sending_email():...The class adds a few methods and attributes, so that you are able to assert, if your message has been sent, or if two messages are equal.pytesttbd[1]If you have it running differently, you have to adjust the URL you pass.
Package: mailprep
mailprepTable of ContentsOverviewUsageInstallationTestingTemplatesLicenseOverviewmailprepconvertsvCarddata into physical labels with aDymo LabelWriter 4XL.Usage$mailprep--helpUsage: mailprep [OPTIONS] VCF_FILEPATH [TEMPLATE_FILEPATH]Options:--printer TEXT   Printer Name--count INTEGER  number of labels to print--simulate       Generate output PDF without printing--help           Show this message and exit.The default template is designed for 2.25" × 1.25" Uline S-12996 labels.Installationmailprep is distributed onPyPIas a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.5+ and PyPy.$pipinstallmailprepDebianThe DYMO printer driver can be installed with$apt-getinstallprinter-driver-dymoTestingSystem DependenciesDebian/StretchTesting requirespdftotextandtox$apt-getinstallpoppler-utilstoxAutomatic TestsAutomatic tests can be run via any of the following methods depending on your workflow$pythonsetup.pytest$hatchtest$toxHitL TestsHuman/Hardware in the Loop tests can be run manually ifxdg-opencan find a pdf reader and a printer is connected.$hatchtest--test-args"--hitl"$tox----hitlTemplatesTemplates are stored asSVGand are evaluated using the Moustache template syntax. Currently the template processing is US-centric, but pull requests and test data is appreciated.Formatted name{{ fn }}in the template is replaced with theformatted namefrom the vCard.AddressCurrentlymailprepgenerate labels from the vCardADR Type Definition. In the future it may make more sense to use theLABEL Type Definitionbut it is unclear which produced more consistent results.{{ adr_street }}
{{ adr_city }}, {{ adr_region }}
{{ adr_code }}Licensemailprep is distributed under the terms of bothMIT LicenseApache License, Version 2.0at your option.Test dataThe vCard test data is fromWikipediaand is licensed asCreative Commons Attribution-ShareAlike.
Package: mailProc
mailProcMail services creation microframeworkWhat is mailProc?mailProc is a Python microframework for building email-bassed services.
The main goal is to easily automate email related tasks.Where can I find the docs?A prebuilt version of current documentation can be found inhttp://mailproc.readthedocs.io/en/latest/Installing mailProcMailproc can be installed using Pypi, so you can simply call:pip install mailprocYou can also download the last version from releases and use it as any other python moduleTesting mailProcYou can run mailProc tests using pytest running it from the project root:python -m pytestYou can also run the complete tests for multiple plataforms using tox from the project root:tox
Package: mailprocessing
The mailprocessing library contains two executables:
maildirproc and imapproc. maildirproc processes one or several several existing mail boxes in the maildir format. It is primarily focused on mail sorting – i.e., moving, copying, forwarding and deleting mail according to a set of rules. It can be seen as an alternative to procmail, but instead of being a delivery agent (which wants to be part of the delivery chain), maildirproc only processes already delivered mail. And that’s a feature, not a bug. imapproc does the same thing for IMAP folders.
Package: mailreceiver
mailreceiver_webthingA web connected mail receiverThis project implements a mail server providing awebthing API.The mailreceiver_webthing package exposes an HTTP WebThing endpoint storing the (newest) received mail.# webthing has been started on host 192.168.0.24
curl http://192.168.0.24:8080/properties
{
"mail": "Received: from 192.168.0.24:56520 by mail-receiver id a864d20d-4025-40e9-8ba7-e80bcd2b3814\n for HE@EXAMPLE.COM, SHE@EXAMPLE.COM; Tue, 17 Aug 2021 06:38:52 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Hello\nFrom: ME@EXAMPLE.COM\nTo: HE@EXAMPLE.COM, SHE@EXAMPLE.COM\n\nHi, how are you today?"
}To consume incoming mails as a HTTP-based stream, open a websocket connection to the WebThing.import websocket

ws = websocket.WebSocketApp("ws://192.168.0.24:8080/", on_message=lambda ws, message: print(message))
ws.run_forever()This example above prints the incoming messages such as shown below{"messageType": "propertyStatus", "data": {"mail": "Received: from 172.17.0.1:56760 by mail-receiver id f67213dd-83e2-46bf-8eab-ce91d626f5ba\n for SHE@EXAMPLE.COM; Tue, 17 Aug 2021 07:31:57 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Hello\nFrom: ME@EXAMPLE.COM\nTo: SHE@EXAMPLE.COM\n\nHi, how are you today?"}}
{"messageType": "propertyStatus", "data": {"mail": "Received: from 172.17.0.1:56766 by mail-receiver id 264ab273-6a71-4394-a3ea-86ef395ebc71\n for THEY@EXAMPLE.COM; Tue, 17 Aug 2021 07:42:23 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Re: Hello\nFrom: YOU@EXAMPLE.COM\nTo: THEY@EXAMPLE.COM\n\nNot too bad!"}}To run this software you may use Docker orPIPpackage manager such as shown belowDocker approachsudo docker run -p 8080:8080 -p 2525:2525 -t grro/mailreceiver:0.0.5PIP approachsudo pip install mailreceiver_webthingAfter this installation you may start the webthing http endpoint inside your python code or via command line usingsudo mailreceiver --command listen --port 8080 --mailserver_port 2525Here, the webthing API will be bind to on port 8080. Furthermore, the mail server will be bind to port 2525.The WebThing server providesmDNSto enable clients discovering the WebThing interfaces.By running asystemd-based Linux distributionyou may use theregistercommand to register and start the webthing service as systemd unit.
By doing this the webthing service will be started automatically on boot. Starting the server manually using thelistencommand is no longer necessary.sudo mailreceiver --command register --port 8080 --mailserver_port 2525To start the mailreceiver use the listen commandsudo mailreceiver --command listen --port 8080 --mailserver_port 2525
Package: mailreceiver-webthing
mailreceiverA web connected mail receiverThis project implements a mail server providing awebthing API. It exposes an
HTTP WebThing endpoint storing the (newest) received mail.# webthing has been started on host 192.168.0.24
curl http://192.168.0.24:8080/properties
{
"mail": "Received: from 192.168.0.24:56520 by mail-receiver id a864d20d-4025-40e9-8ba7-e80bcd2b3814\n for HE@EXAMPLE.COM, SHE@EXAMPLE.COM; Tue, 17 Aug 2021 06:38:52 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Hello\nFrom: ME@EXAMPLE.COM\nTo: HE@EXAMPLE.COM, SHE@EXAMPLE.COM\n\nHi, how are you today?"
}To consume incoming mails as a HTTP-based stream, open a websocket connection to the WebThing.import websocket

# webthing´s websocket address is ws://192.168.0.24:8080/
ws = websocket.WebSocketApp("ws://192.168.0.24:8080/", on_message=lambda ws, message: print(message))
ws.run_forever()This example above prints the stream of incoming mails such as shown below{"messageType":"propertyStatus","data":{"mail":"Received: from 172.17.0.1:56760 by mail-receiver id f67213dd-83e2-46bf-8eab-ce91d626f5ba\nfor SHE@EXAMPLE.COM; Tue, 17 Aug 2021 07:31:57 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Hello\nFrom: ME@EXAMPLE.COM\nTo: SHE@EXAMPLE.COM\n\nHi, how are you today?"}}{"messageType":"propertyStatus","data":{"mail":"Received: from 172.17.0.1:56766 by mail-receiver id 264ab273-6a71-4394-a3ea-86ef395ebc71\nfor THEY@EXAMPLE.COM; Tue, 17 Aug 2021 07:42:23 +0000\nContent-Type: text/plain; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nSubject: Re: Hello\nFrom: YOU@EXAMPLE.COM\nTo: THEY@EXAMPLE.COM\n\nNot too bad!"}}...To run this software you may use Docker orPIPpackage manager such as shown belowDocker approachsudo docker run -p 8080:8080 -p 2525:2525 -t grro/mailreceiver:0.1.8PIP approachsudo pip install mailreceiver-webthingAfter this installation you may start the webthing http endpoint inside your python code or via command line usingsudo mailreceiver --command listen --port 8080 --mailserver_port 2525Here, the webthing API will be bind to on port 8080. Furthermore, the mail server will be bind to port 2525.The WebThing server providesmDNSto enable clients discovering the WebThing interfaces.By running asystemd-based Linux distributionyou may use theregistercommand to register and start the webthing service as systemd unit.
By doing this the webthing service will be started automatically on boot. Starting the server manually using thelistencommand is no longer necessary.sudo mailreceiver --command register --port 8080 --mailserver_port 2525To start the mailreceiver use the listen commandsudo mailreceiver --command listen --port 8080 --mailserver_port 2525