Saravanan666/pypi-org huggingface dataset:
Package: mailbox-cleaner
mailbox-cleanera simple CLI tool to clean IMAP foldersInstallationTo install with pip:$ pip install -U mailbox-cleanerAfter installation the commandmailbox-cleanershould be available.
You can also just download themailbox_cleaner.pyfile and execute it directly.UsageTo delete emails older than 15 days in the INBOX folder:mailbox-cleaner imap.example.com me@example.com myPassword -d 15To delete emails older than 30 days in the Trash folder using a STARTTLS connection to a host with non-standard port:mailbox-cleaner imap.example.com:9999 me@example.com myPassword -c STARTTLS -f Trash -d 30To see all available options and more information use:mailbox-cleaner --helpLicenseLicensed GPLv3+, see the LICENSE file for details.Copyright © 2022 Asiel Díaz Benítez.
Package: mailbox-report-generator
Mbox mail analysisThis is a script that analyzes amboxmail export, such as the one provided by Google Takeout from a Gmail box, and produces a report on the content.Current reportsreceived mails over hour of the day and day of the weekmail per day over timemost active addressesUsageYou need an export of your mailbox inmboxformat (for Gmail you can get it fromGoogle Takeout).Install the tool using pip:python3 -m pip install mailbox-report-generatorThen run this command:generate_mbox_report "/path/to/the/mbox/file.mbox"a report will be created in the form of an HTML file, and opened with your default browser.Extending the reportThe report is generated by running every message through a series ofProcessors.
Each Processor implements its own logic to aggregate relevant details and can output the report as an HTML string. They are independent from each other.These strings are simply concatenated to generate a static HTML file, two processors output the header and footer of this file.This structure makes it quite easy to add or remove specific analysis, run automated tests and implement caching.Possible future improvementsExamine the mail lenght and word usage over timeNote that extracting text from mails is very hard, the multipart format and the weird formats used by advertisement e-mails make it an extremely unreliable operation.Examine the textual content of the emails with SpaCy, retrieve Named Entities like people and locations (see note on previous point)Find which languages are used in the e-mail body
Package: mailboxzero
Mailbox ZeroCan't reach Inbox Zero? Just create a new one.MailboxZero is a server that provides you an infinite number of mailboxes that
you can check via a REST API.It combines a SMTP server that accepts incoming emails and a web server that
provides access to the emails over a REST API.How to use itmb0.wtte.ch is a demo instance of MailboxZeroSend an email tosomerandomstring@mb0.wtte.chVisithttp://mb0.wtte.ch:8880/api/somerandomstring@mb0.wtte.chfor a list
of messages in your mailboxRetrieve an individual message by visitinghttp://mb0.wtte.ch:8880/api/somerandomstring@mb0.wtte.ch/<messageID>Messages get deleted about ten minutes after arriving. You get a parsed version
of the email, not the raw email. MailboxZero will show you:the richest body, usually the HTML versionthe simplest body, usually the plain text versionthe URLs in each bodythe headers of the email as a list of(name, value)pairsthe subject, from and date fieldsDeploying your own instanceQuick start:Install Python 3.8 or newerInstall MailboxZeropip install -U mailboxzeroRunmailboxzeroasroot.To run an instance reachable from the public internet you need a public IP,
assign a hostname to it, and setup a MX record to point to that hostname. You
should also use something like systemd to run MailboxZero in order to limit its
privileges and not run it asroot.DevelopmentSetup the development dependencies withpython -m pip install -U -r dev-requirements.txt.
We usepytestto run the tests intests/.Main libraries used:aiosmtpdtornado
Package: mailcap-fix
NoteA fix has now been merged intoPython 3.6.0.This package remains as a backport for previous versions.SummaryThis package patches the python standard library’smailcapmodule in order
to correctly handle windcard entries.The bug is documented on the bug tracker here:issue 14977Installation$pipinstallmailcap-fixExampleConsider a mailcap file that contains the following two linesimage/*; feh %s
image/jpeg; eog %sBecause theimage/*entry is defined first, it should take
precedence over theimage/jpegentry when searching for a match.
This behavior is defined byRFC 1524.
However, the standard library’s implementation will always evaluate
wildcard entries last.Before>>>importmailcap>>>d=mailcap.getcaps()>>># Incorrectly returns the second entry>>>mailcap.findmatch(d,'image/jpeg',filename='test.jpg')('eog test.jpg',{'view':'eog%s'})After>>>frommailcap_fiximportmailcap>>>d=mailcap.getcaps()>>># Correctly returns the wildcard entry>>>mailcap.findmatch(d,'image/jpeg',filename='test.jpg')('feh test.jpg',{'view':'feh%s','lineno':0})How it worksThe goal of this patch is to conform to RFCC 1524,
while preserving as much backwards compatibility as possible and without adding any “magic”.mailcap_fixadds a new fieldlinenoto each entry in the mailcap dict.
This line number is then used to sort entries in descending order when searching for a match.
For backwards compatability, iflinenois not present entries will simply not be sorted.
Because RFC 1524 defines a whitelist of valid mailcap fieldnames, the addition oflinenoshould not conflict with any other mailcap fields.BenchmarkPython 3.4.0Ubuntu 14.04 LTS 64bitIntel® Core™ i5-3210M CPU @ 2.50GHz × 48 GiB RAMmailcap.get_caps() - per filemailcapmailcap_fixmailcap_short.txt0.081881 ms0.084525 msmailcap_long.txt17.746289 ms18.407623 msmailcap.lookup() - avg function callmailcapmailcap_fixmailcap_short.txt0.000996 ms0.003144 msmailcap_long.txt0.000798 ms0.002731 ms
Package: mailcat
Mailcat outputs mail files to the text console.
It works just likecat:$ mailcat example.eml
Subject: Plushy
From:    Jan <jan@catnip.nowhere>
To:      Marta <marta@purrrrr.xyz>
Date:    Fri, 21 Aug 2015 23:10:43 +0200

Hi Marta,

Here are the pictures of my cat, Plushy. She's so cute!!!

Attachments:
[1] Plushy1.jpg (image/jpeg)
[2] Plushy2.jpg (image/jpeg)
[3] Plushy3.jpg (image/jpeg)Download and installInstall Mailcat withpip:pip install mailcatTo use Mailcat withless, add this to~/.lessfilter:#!/bin/sh

case "$1" in
    *.eml|*.mbx|*.mbox)
        mailcat --color=always "$1"
        exit 0
        ;;
esac

exit 1and make~/.lessfilterexecutable:chmod +x ~/.lessfilterThe source code is available from theGit repository at Bitbucket.Mailcat is written in Python and licensed under GNU GPL version 3 or any later version.Version history0.2(released on October 3, 2015)Added support formboxfiles.Added support for reading from stdin.Fixed UnicodeEncodeError in Python 2 when stdout is a file or a pipe.0.1(released on August 21, 2015)Added support for reading.emlfiles (plain text MIME messages).Added formatting of HTML bodies as plain text or raw HTML.Added attachment listing.Added color highlighting.
Package: mailchimp
DeprecatedThis SDK and Mailchimp API 2.0 are deprecated.[See the current Mailchimp Marketing SDKs](https://mailchimp.com/developer/tools/)OverviewA Python client for [v2 of the MailChimp API](http://apidocs.mailchimp.com/api/2.0/). Please note that we generate this client/wrapper, so while we’re happy to look at any pull requests, ultimately we can’t technically accept them. We will, however comment on any additions or changes made due to them before closing them.###Usage
This can be installed via our [pypi package](https://pypi.python.org/pypi/mailchimp) using:` $ pip install mailchimp `—A basic example app to help kickstart you which - will also automatically install this package - is over in a public [github](https://github.com/mailchimp/mcapi2-python-examples) repo
Package: mailchimp-scraper
Titlemailchimp ScraperDescrptionWith mailchimp Scraper you can scrape search results and extract the contents produced by the search result.In mailchimp scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.JSON sample data{"Scraper_How_Mailchimp":{"Header":"The Jump","Header_NextUpContentLarge_contentTitle":"Joe Talbot - 1049 Gotho","Header_PodcastDetails_subtitle":"S3:E1 David Byrne - Loco de Amor","Mailchimp_Presents":"David Byrne - Loco de Amor - The Jump \u2022 Mailchimp Presents","NextUpContentSmall_bottomText":"S3:E2 Joe Talbot - 1049 Gotho","PodcastDetails_description":"David Byrne, former Talking Heads frontman, found his voice by venturing outside his comfort zone. He shares how a love of Latin music led to his genre-breaking song, Loco de Amor, and his own personal musical liberation.","PodcastPlayer_title":"David Byrne - Loco de Amor","ProgressTimer_PodcastPlayer_timer":"Loading...","RightRailCard_duration":"1 minute","Season":"The Jump - Season 3","Text_NextUpContentLarge_description_hidden":"IDLES lead singer Joe Talbot discusses his song, 1049 Gotho.",Click Here for moreRun Scraperfrommailchimp_scraperimport*link="https://mailchimp.com/presents/podcast/call-paul/"data=run_mailchimp_scraper(link)How it works?It takes URL of mailchimp page with a search keyword to scrape the data.It generates the json data which contains the information of the mailchimp search result.It gives the every detail present inside website in the form of json data.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: mailchimpworker
=====mailchimp_sender_package=====Quick start-----------0. Install package::pip install mailchimpworker1. Add "mailchimp_sender_package" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'mailchimpworker',...]2. Make migrations::python manage.py makemigrations mailchimpworkerpython manage.py migrate3. Add the MAILCHIMP_API_KEY in settings.py::MAILCHIMP_API_KEY = 'YOUR API KEY'4. Create into folder with settings.py, wsgi.py and etc. file 'celery.py' with this content::from __future__ import absolute_import, unicode_literalsimport osfrom celery import Celeryfrom celery.schedules import crontabos.environ.setdefault("DJANGO_SETTINGS_MODULE", "[proj_name].settings") # insert project name instead of "[proj_name]"app = Celery('[proj_name]') # insert project name instead of "[proj_name]"app.config_from_object('django.conf:settings', namespace='CELERY')app.conf.broker_url = 'redis://localhost:6379/0'app.conf.beat_schedule = {'mailchimpworker.tasks.send_new_emails': {'task': 'mailchimpworker.tasks.send_new_emails','schedule': crontab(minute=0),'args': ([YOUR_LIST_ID], [YOUR_CATEGORY_ID], [YOUR_INTEREST_ID]) # that should be strings, not lists},}app.autodiscover_tasks()5. Write view for creating objects of model Subscriber and bind him with forms. Example of view::from django.shortcuts import renderfrom mailchimpworker.models import Subscriberdef new_subscriber(request):data_email = request.POST.get('EMAIL')unique_check = Subscriber.objects.filter(email=data_email)if not len(unique_check):Subscriber.objects.create(email=data_email)return render(request, '[path_to_"thanks"_template].html', {})P.S. To run scripts correctly, you need to run Celery-worker:celery -A [proj_name] worker -l info -B
Package: mail-cleaner
1mail-cleanerVersion:1.2.0Source:https://github.com/maykinmedia/mail-cleanerKeywords:django, email, sanitizePythonVersion:3.9Handle and sanitize HTML & text emailsContents1mail-cleaner2Features3Installation4Usage5Local development2FeaturesSanitize untrusted linksBest-effort plain-text message extraction from HTML e-mails3InstallationInstallpipinstallmail-cleaner4UsageSee the usagedocumentation.5Local developmentTo install and develop the library locally, use:pipinstall--no-build-isolation-e.[tests,coverage,docs,pep8,release]
Package: mailcli
Mail CLIEncapsulation for email senders, include mailgun service and SMTP mailer.InstallTo install mail helper, run this command in your terminal:$pipinstall-Ugit+https://github.com/debugtalk/mail-cli.git#egg=mail-cliUsage$ python mailcli.py -h
usage: mailcli.py [-h] [-V] [-u MAILGUN_SMTP_USERNAME]
                  [-p MAILGUN_SMTP_PASSWORD] [--mail-sender MAIL_SENDER]
                  [--mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]]
                  [--mail-subject MAIL_SUBJECT] [--mail-content MAIL_CONTENT]
                  [--mail-content-path MAIL_CONTENT_PATH]

Mail-CLI, send mail with mailgun service.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show version
  -u MAILGUN_SMTP_USERNAME, --mailgun-smtp-username MAILGUN_SMTP_USERNAME
                        Specify mailgun smtp username.
  -p MAILGUN_SMTP_PASSWORD, --mailgun-smtp-password MAILGUN_SMTP_PASSWORD
                        Specify mailgun smtp password.
  --mail-sender MAIL_SENDER
                        Specify email sender.
  --mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]
                        Specify email recepients.
  --mail-subject MAIL_SUBJECT
                        Specify email subject.
  --mail-content MAIL_CONTENT
                        Specify email content.
  --mail-content-path MAIL_CONTENT_PATH
                        Load file content as mail content.Examplessend mail with content$pythonmailcli.py\-u"user@mail.com"\-p"pwd123"\--mail-sender"sender@mail.com"\--mail-recepientstest1@mail.comtest2@mail.com\--mail-subjectsubject-test\--mail-contenthello-worldsend mail with file content$pythonmailcli.py\-u"user@mail.com"\-p"pwd123"\--mail-sender"sender@mail.com"\--mail-recepientstest1@mail.comtest2@mail.com\--mail-subjectsubject-test\--mail-content-path1534006836.html
Package: mailcomposer
mailcomposeraims to provide a simple, cross-platform interface for composing emails through an external application like Microsoft Outlook. Some reasons you might use it are:You're behind a corporate firewall, and are only able to send email using Outlook.You don't have an SMTP server, or don't want the hassle of usingsmtplib.You just prefer your desktop email client.Here's how easy it is to use:# This automatically selects an appropriate email applicationfrommailcomposerimportMailComposermc=MailComposer()# Set some message headersmc.to="nobody@example.com"mc.subject="Testing mailcomposer"# Set the message bodymc.body="This is a demonstration of the mailcomposer package."# Attach this README filemc.attach_file("README.md")# Display the message in your email applicationmc.display()The mailcomposer module can also be called as a script from the command line. When used this way, it provides an interface similar to the Unixmailutility. For more information, trypython -m mailcomposer --help.FeaturesNotable features include:Straightforward APICross-platformRuns on both Python 2 and 3Uses your desktop email client; no SMTP server requiredTo, CC, and BCC fields accept single recipients or Python listsMessages can be composed in either plain-text or HTML formatAttachments are easy -- just pass the filenameSupported Email ApplicationsSupported email applications currently include:Microsoft Outlook (Windows only; requirespywin32)Mozilla ThunderbirdOn Unix systems, mailcomposer can also access other email applications via thexdg-emailutility fromxdg-utils. However, some features like setting the body format are not supported usingxdg-email.
Package: mail-deduplicate
What is Mail Deduplicate?Provides themdedupCLI, an utility to deduplicate mails from a set of boxes.FeaturesDuplicate detection based on cherry-picked and normalized mail
headers.Fetch mails from multiple sources.Reads and writes tombox,maildir,babyl,mhandmmdfformats.Deduplication strategies based on size, content, timestamp, file path
or random choice.Copy, move or delete the resulting set of duplicates.Dry-run mode.Protection against false-positives with safety checks on size and content differences.Supports macOS, Linux and Windows.Standalone executablesfor Linux, macOS and Windows.Shell auto-completion for Bash, Zsh and Fish.⚠️Warning: Performancesmdedupimplementation is quite naive at the moment and everything resides in memory.If this is good enough for a volume of a couple of gigabytes, the more emailsmdeduptry to parse, the closer you'll reach the memory limits of your machine. In which casemdedupwill exit abrubtly, zapped by theOOM killerof your OS. Of course your mileage may vary depending on your hardware.You can influence implementation of this feature with pull requests, orpurchase of business support 🤝 and sponsorship 🫶.ExampleInstallationFrom sourcesEasiest way is to installmdedupfrom sources withpipx:$pipxinstallmail-deduplicateOtheralternatives installation methodsare available in the documentation.ExecutablesStandalone executables ofmdedup's latest version are available for several platforms and architectures:Platformx86_64LinuxDownloadmdedup-linux-x64.binmacOSDownloadmdedup-macos-x64.binWindowsDownloadmdedup-windows-x64.exe
Package: maildesk
maildeskPython Library to read email from any email service.
You can just dowload to yout python script folder or install it with pip.
This library using Imaplib python to read email with IMAP protocol.Usagepipinstall--usermaildeskimportmaildesk# imap_server = "imap-mail.outlook.com"# imap_port = 993# smtp_server = "smtp-mail.outlook.com"# smtp_port = 587# imap_server = "outlook.office365.com"# imap_port = 993# smtp_server = "smtp.office365.com"# smtp_port = 587imap_server="imap.gmail.com"imap_port=993smtp_server="smtp.gmail.com"smtp_port=587mail=maildesk.Client(imap_server,imap_port,smtp_server,smtp_port)Complete list of functionsExamplessend emailmail.login('emailaccount@domain.com','yourpassword')mail.send_email('recipient@email.com','subject','message body')select foldermail.login('emailaccount@domain.com','yourpassword')mail.select('Inbox')email IDmail.login('emailaccount@domain.com','yourpassword')mail.select('Inbox')date=datetime.date(1970,1,1)all_ids=mail.all_ids_since(date)unread_ids=mail.unread_ids_since(date)read_ids=mail.read_ids_since(date)latest_id=mail.latest_id_since(date)latest_unread_id=mail.latest_unread_id_since(date)latest_read_id=mail.latest_read_id_since(date)email contentmail.login('emailaccount@domain.com','yourpassword')mail.select('Inbox')date=datetime.date(1970,1,1)id=mail.latest_unread_id_since(date)email_message=mail.get_email(id)printmail.mail_body(email_message)printmail.mail_subject(email_message)printmail.mail_from(email_message)printmail.mail_to(email_message)attachments=mail.mail_attachments(email_message)forkey,valueinattachments.items():file_name=keyfile_bytes=value
Package: mail-devel
mail-develThis tool combines an in-memory SMTP mail-sink with an IMAP server. All mails coming over SMTP
are stored in the IMAP inbox. This can be used to test outgoing and incoming mail configurations.
Built on top ofaiosmtpdandpymap.The frontend is minimally handling the content of the mailbox. Please connect a proper mail client
like Thunderbird for more advanced usage.DO NOT USE FOR PRODUCTION.SupportedSMTP (optionally with STARTTLS)SMTPSIMAP (optionally with STARTTLS)
Package: maildiff
git maildiffmaildiffis a simple git command to email diff in color to reviewer/ co-worker.InstallNavigate to git-maildiff directory you cloned or downlaoded from terminalpip install .where . refers to your current working directory i.e. inside git-maildiff
and you are good to go.Uninstallpip  uninstall  maildiffSetup Configgit config --global maildiff.mailto recipient@email.com	

git config --global maildiff.smtpserver smtp.gmail.com	

git config --global maildiff.smtpserverport 587	

git config --global maildiff.mailFrom sender@email.com	

git config --global maildiff.smtpencryption tlse.g. Gmail uses tls encryptionif you forget to run the above setup the git maildiff command will prompts each
one by one and update in .gitconfig the email password is stored in OS keychain.Usagegit maildiff- Email the diff of commited or uncommited changes in colored to multiple recipients and allows attaching patches.git maildiff -d 'HEAD^1'- will email the diff.when no -diff or -d flag is passed with value the default value isgit diff HEAD^ HEADgit maildiff -toemail@domain.com- will email diff to this email address.git maildiff -v- use the -v flag to enable verbosity and display what command is run and what is the result of executed command.type git maildiff -hin shell for more help.NoteIf you are behind a proxy server, and you are having issues accessing git repository you can update gitconfig to add
proxy settings likegit config --global http.proxy http://mydomain\\myusername:mypassword@myproxyserver:8080Dependenciesargparsekeyringloggingcolorlogcolorama(for windows only)######Typegit maildiff -hfor help in command line/ terminalContactEmail:sansupercool@duck.comWebsite:www.devilsan.com
Package: mail_diff
MailDiffAutomatically mails your group members the local changes you make in
your projectInstallation>> pip install mail_diffUsage:>> cd your_project_directory
>> mail_diffThen follow through the instructionsExamples:>> cd Documents/scripts
>> mail_diff
Enter your Password:
sending mail to apndey.15@gmail.com .......
mail sent

sending mail to someone@gmail.com .......
mail sent
Package: maildir2mbox
maildir2mboxConvert mailbox from maildir format to mbox format, with support for nested foldersImprovements by Philippe Fremy:porting to Python 3 to deal with filesystem encoding problems: works when moving maildir data from a partition
supporting utf8 filenames (Ext3) to a partition supporting mbcs filenames (ntfs)argument handling and help displayadd support for nested directoriesmove to GitHubTo install:either download directly the maildir2mbox.py file and execute it:$ python maildir2mbox.py --helpor install with pip, then run it with -m:$ pip install maildir2mbox
 $ python -m maildir2mbox --helpAuthors:Philippe Fremy, April 2013-2020FrÃ©dÃ©ric Grosshans, 19 January 2012Nathan R. Yergler, 6 June 2010The file is under no license/public domain. See LICENSE.txt for more details.
Package: maildir-deduplicate
!DANGER!This is anold version. The project has been renamed toMail
Deduplicateand is now available on:Github athttps://github.com/kdeldycke/mail-deduplicatePyPi athttps://pypi.org/project/mail-deduplicateCommand-line tool to deduplicate mails from a set of maildir folders.Stable release:Development:FeaturesDuplicate detection based on cherry-picked mail headers.Source mails from multiple maildirs.Multiple removal strategies based on size, timestamp or file path.Dry-run mode.Protection against false-positives by checking for size and content
differences.InstallationThis package isavailable on PyPi, so you can install the
latest stable release and its dependencies with a simplepipcall:$pipinstallmaildir-deduplicateDocumentationDocs arehosted on Read the Docs.Changes for v2.2.0 (2020-09-03)Add disclaimer to prepare project name change.Fix Header being object instead of string (#61).Make body_lines conversion more reliable.Fix bugs in counter statistics (#45, #57).Add Message-ID as a header to check.FixUnicodeDecodeError. Closes #53 and #55.Bump requirement toclick_log >= 0.2.0. Closes #58, #59 and #60.Replacenosebypytest.Only notify by mail of test failures.Drop support of Python 3.3.Full changelog.
Package: maildir-featurizer
Get features of a maildir very quickly, by not opening the files.As a side effect, the features reveal little private information.I made this for my dada portal; I wanted to be able to analyze my
emails in the context of other things, but I didn’t want to have
sensitive information in my dada portal.It implements only a subset of the maildir filename format.
(http://cr.yp.to/proto/maildir.html).I use it like this to find only the emails I sent../maildir_featurizer.py my-maildir/*/*/Sent/Or, if you install it,maildir-featurizer my-maildir/*/*/Sent/Or, from Python, which is how I really use it,from maildir_featurizer import messages
for message in messages('my-maildir'):
    print(message)