{"id":23157,"library":"quotequail","title":"quotequail","description":"A library that identifies quoted text in plain text and HTML email messages. Current version: 0.4.0. Release cadence: low, last release in 2021.","status":"maintenance","version":"0.4.0","language":"python","source_language":"en","source_url":"http://github.com/closeio/quotequail","tags":["email","quoted text","parsing","html","plain text"],"install":[{"cmd":"pip install quotequail","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Main function to identify quoted text.","wrong":null,"symbol":"quote_text","correct":"from quotequail import quote_text"},{"note":"Function to strip quoted text and return the original text.","wrong":null,"symbol":"unquote","correct":"from quotequail import unquote"}],"quickstart":{"code":"from quotequail import quote_text, unquote\n\ntext = \"\"\"On Mon, Jan 1, 2020 at 12:00 PM, John <john@example.com> wrote:\n> This is a quoted line.\n> Another quoted line.\nThis is the reply.\"\"\"\n\nresult = quote_text(text)\nprint(\"Quoted text:\", result)\n\nplain = unquote(text)\nprint(\"Unquoted text:\", plain)\"\"\"","lang":"python","description":"Identify and remove quoted text from an email message."},"warnings":[{"fix":"Always access result['text'] or result['html'] depending on input type.","message":"quote_text returns a dict with keys 'text' and 'html' (even for plain text). For HTML input, 'text' is None.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Test with your specific email format and consider fallback parsing.","message":"unquote may not perfectly handle all edge cases, like nested quotes or custom email formats.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Upgrade Python to 3.7 or later.","message":"Python 3.6 and earlier are not supported; requires Python 3.7+.","severity":"deprecated","affected_versions":"0.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install quotequail'.","cause":"The package is not installed.","error":"ImportError: No module named 'quotequail'"},{"fix":"Use 'from quotequail import quote_text' (version 0.2.0+). For older versions, use 'import quotequail; quotequail.quote_text'.","cause":"Import path is wrong or version is too old.","error":"AttributeError: module 'quotequail' has no attribute 'quote_text'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}