---
title: "Discussion on \"Decluttering Mailbox Using Python\" | Hashnode"
description: "Discussion on \"Decluttering Mailbox Using Python\". Deleting unread emails with python"
url: "https://hashnode.com/posts/decluttering-mailbox-using-python/60b20945fb51fd32a4dc02d0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Decluttering Mailbox Using Python](https://yomaokobiah.com/decluttering-mailbox-using-python?utm_source=hashnode&utm_medium=feed)

Deleting unread emails with python

May 29, 2021 · 6 min read · yomaokobiah.com  
Updated Aug 9, 2021  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#email](https://hashnode.com/tag/email)

## Written by

[Yoma Okobiah](https://hashnode.com/@yomaokobiah)

@yomaokobiah · United Kingdom

  
[View profile](https://hashnode.com/@yomaokobiah)

Community Programs Manager

I’m a community programs manager who is skillful at building vibrant local and global communities and has a proven track record of driving engagement and fostering collaboration. I am committed to empowering students and individuals and achieving impactful results.

## Responses 3

Markdown supported · ⌘↵ to post

[Ran Talbott](https://hashnode.com/@RanTalbott)

[Aug 9, 2023](https://hashnode.com/posts/decluttering-mailbox-using-python/60b20945fb51fd32a4dc02d0/comment/64d36eb1c1b3ce0c7e9357f7)

Thanks, Yoma!

After a decade of using Gmail,, getting tons of "promotions" I'm rarely interested in, Ihave over 25000 unread emails! I've done a program to download header info into a CSV (similar to what you've done), and needed to know how to send the unwanted ones to Trash once I've sifted through them. Your tips on the specifics of doing it the Gmail way will make that easy.

I ran into annoyances with MIME-encoding and embedded line terminators in From and Subject fields that I overcame. I'd be happy to send you a copy of my code if you'd like to use my clean-ups.

Thanks again,

Ran

[Victoria Lo](https://hashnode.com/@victoria)

[May 30, 2021](https://hashnode.com/posts/decluttering-mailbox-using-python/60b20945fb51fd32a4dc02d0/comment/60b2ef9c9b1e2e1dccbcfe29)

This is a great example of how you can use your programming skills to solve everyday problems! Amazing article [Ogheneyoma Okobiah](https://hashnode.com/@yomdroid) 😊 😊

[Yoma Okobiah](https://hashnode.com/@yomaokobiah)

[Jun 1, 2021](https://hashnode.com/posts/decluttering-mailbox-using-python/60b20945fb51fd32a4dc02d0/comment/60b2ef9c9b1e2e1dccbcfe29#reply-60b69ebd225c4a6801126bfd)

Thank you😊

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[May 29, 2021](https://hashnode.com/posts/decluttering-mailbox-using-python/60b20945fb51fd32a4dc02d0/comment/60b20aa29b1e2e1dccbce4bb)

Really insightful article. Thanks for sharing chief! 🤲🏾
