{"id":19686325,"url":"https://github.com/closeio/quotequail","last_synced_at":"2025-07-27T15:39:04.620Z","repository":{"id":5092010,"uuid":"6254533","full_name":"closeio/quotequail","owner":"closeio","description":"a library that identifies quoted text in email messages","archived":false,"fork":false,"pushed_at":"2024-09-10T18:31:04.000Z","size":151,"stargazers_count":59,"open_issues_count":11,"forks_count":23,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-02T09:07:37.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tg123/PhonenumGeoProvider","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/closeio.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-17T01:40:56.000Z","updated_at":"2024-10-28T12:59:41.000Z","dependencies_parsed_at":"2024-06-27T23:12:47.944Z","dependency_job_id":"e0b9a725-db87-43ac-8f3b-a084cb1995a1","html_url":"https://github.com/closeio/quotequail","commit_stats":{"total_commits":104,"total_committers":13,"mean_commits":8.0,"dds":"0.42307692307692313","last_synced_commit":"eb909551dbc9d942a047331057d47f5902955ec2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fquotequail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fquotequail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fquotequail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fquotequail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/closeio","download_url":"https://codeload.github.com/closeio/quotequail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027411,"owners_count":21035594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-11T18:27:32.437Z","updated_at":"2025-04-09T11:12:09.258Z","avatar_url":"https://github.com/closeio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========\nquotequail\n==========\n\nA library that identifies quoted text in plain text and HTML email messages.\nquotequail has no mandatory dependencies, however using HTML methods require\nlibxml.\n\n\n(Interested in working on projects like this? `Close.io`_ is looking for `great engineers`_ to join our team)\n\n.. _Close.io: http://close.io\n.. _great engineers: http://jobs.close.io\n\n\nIntroduction\n------------\n\nquotequail comes with the functions listed below which are documented in detail\nin quotequail's ``__init__.py``.\n\n* ``quote(text)``: Takes a plain text message as an argument, returns a list of\n  tuples. The first argument of the tuple denotes whether the text should be\n  expanded by default. The second argument is the unmodified corresponding\n  text.\n* ``quote_html(html)``: Like ``quote()``, but takes an HTML message as an\n  argument.\n* ``unwrap(text)``: If the passed text is the text body of a forwarded message,\n  a reply, or contains quoted text, a dictionary is returned, containing the\n  type (reply/forward/quote), the text at the top/bottom of the wrapped\n  message, any parsed headers, and the text of the wrapped message.\n* ``unwrap_html(text)``: Like ``unwrap()``, but takes an HTML message as an\n  argument.\n\n\nExamples\n--------\n\n.. code:: python\n\n  In [1]: import quotequail\n\n  In [2]: quotequail.quote(\"\"\"Hello world.\n\n  On 2012-10-16 at 17:02 , Someone \u003csomeone@example.com\u003e wrote:\n\n  \u003e Some quoted text\n  \"\"\")\n  Out[2]:\n  [(True, 'Hello world.\\n\\nOn 2012-10-16 at 17:02 , Someone \u003csomeone@example.com\u003e wrote:'),\n   (False, '\\n\u003e Some quoted text\\n')]\n\n  In [3]: quotequail.unwrap(\"\"\"Hello\n\n  Begin forwarded message:\n\n  \u003e From: \"Some One\" \u003csome.one@example.com\u003e\n  \u003e Date: 1. August 2011 23:28:15 GMT-07:00\n  \u003e To: \"Other Person\" \u003cother@example.com\u003e\n  \u003e Subject: AW: AW: Some subject\n  \u003e\n  \u003e Original text\n\n  Text bottom\n  \"\"\"))\n  Out[3]:\n  {'date': '1. August 2011 23:28:15 GMT-07:00',\n   'from': '\"Some One\" \u003csome.one@example.com\u003e',\n   'subject': 'AW: AW: Some subject',\n   'text': 'Original text',\n   'text_bottom': 'Text bottom',\n   'text_top': 'Hello',\n   'to': '\"Other Person\" \u003cother@example.com\u003e',\n   'type': 'forward'}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fquotequail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloseio%2Fquotequail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fquotequail/lists"}