r/GMail • • 1d ago

Solution: Make my replies pull thread to top of the inbox

Something that annoys me is that when I reply to an message the thread stays sorted in the inbox based on the date of the thread's most recent incoming message. I want the thread's sort position to be based on its most recent message, regardless of whether that message is incoming or outgoing. Today (with the help of Claude Code), I learned that all it takes to get this behavior is to apply the "Inbox" label to outgoing messages. So I wrote some code (that calls the Gmail API) that periodically runs and applies the "Inbox" label to any outgoing messages it finds in the inbox. (I run this code once a minute as a service on my Raspberry Pi.)

0 Upvotes

1 comment sorted by

0

u/nmishkin 1d ago

This work was follow-on to another feature I implemented that periodically marks all snoozed messages as "unread" so that when the snooze expires the message shows up in bold in the inbox which makes it more prominent. (Note that Gmail makes the no-longer-snoozed message's thread sort based on the expiration date, not the date of the thread's most recent message. It was this behavior that got me thinking about getting the behavior that I described in my first post.)