{"id":33938997,"url":"https://github.com/coreygirard/pmail","last_synced_at":"2026-03-10T11:07:15.416Z","repository":{"id":48288216,"uuid":"112249441","full_name":"coreygirard/pmail","owner":"coreygirard","description":"Crazy simple Gmail fetching via username and password. Bells and whistles not included.","archived":false,"fork":false,"pushed_at":"2025-12-05T18:31:39.000Z","size":50,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T03:17:35.443Z","etag":null,"topics":["active"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coreygirard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-27T21:14:35.000Z","updated_at":"2025-05-20T00:09:23.000Z","dependencies_parsed_at":"2022-08-31T22:00:33.626Z","dependency_job_id":null,"html_url":"https://github.com/coreygirard/pmail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coreygirard/pmail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreygirard%2Fpmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreygirard%2Fpmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreygirard%2Fpmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreygirard%2Fpmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreygirard","download_url":"https://codeload.github.com/coreygirard/pmail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreygirard%2Fpmail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active"],"created_at":"2025-12-12T15:07:40.272Z","updated_at":"2026-03-10T11:07:15.409Z","avatar_url":"https://github.com/coreygirard.png","language":"Python","readme":"# pmail\n\n[![Build Status](https://travis-ci.org/coreygirard/pmail.svg?branch=master)](https://travis-ci.org/coreygirard/pmail) \u003cbr\u003e\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) \u003cbr\u003e\u003cbr\u003e\n\n**THIS IS ALL INACCURATE FOR THE MOMENT**\n\n### Basic usage\n\n```python\ngmail = Gmail('tokens.json')\nfor folder in gmail.get_folders():\n    print('\\n\\nFolder: ' + folder.name)\n\n    for message in folder.get_emails():\n        print(message.get_subject())\n```\n\n```\nFolder: Important\nTop 10 sweaters made from dryer lint\nExclusive adventures to watch paint dry! Act now!\n\nFolder: Unimportant\nYou are two centuries behind on your rent\nOne trick to tell if your house is on fire\nIs your car cheating on you?\n```\n\n#### Explanation\n\n```python\ngmail = Gmail(filepath)\n```\n\n`filepath` is the path to a JSON file formatted with your Gmail username and password:\n\n```json\n{ \"username\": \"notmyemail@gmail.com\", \"password\": \"notmypassword\" }\n```\n\n`Gmail()` returns an object that can be used to fetch your Gmail folders. `.get_folders()` returns a list of `Folder` objects:\n\n```python\nfor folder in gmail.get_folders()\n```\n\nThe `.name` property of a Folder object gives the folder label. To get all emails in a folder, use `.get_emails()`:\n\n```python\nfor message in folder.get_emails()\n```\n\n`Email` objects provide various methods to return the email components:\n\n```\nmessage.get_to()\nmessage.get_from()\nmessage.get_subject()\n```\n\nMore coming soon!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreygirard%2Fpmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreygirard%2Fpmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreygirard%2Fpmail/lists"}