[{"data":1,"prerenderedAt":293},["ShallowReactive",2],{"project-22989904":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":41,"post_text":43,"what":44,"said":60,"maker_in_thread":150,"shape":161,"grid":165,"attempts":257,"same_week":258,"maker_shows":40,"maker_hidden":285,"reader_version":286,"card":287},"22989904","gmail-helper","Gmail CLI Utils (bulk delete mail by query, get\u002Fcreate filters)","title","Show HN: Gmail CLI Utils (bulk delete mail by query, get\u002Fcreate filters)","https:\u002F\u002Fgithub.com\u002Fabhishekkr\u002Fgmail-helper","github.com","abionic",1587932565,2020,192,39,291,3028,10,"notable","productivity","email management","cli",[24,25,26,27],"gmail cli","gmail filters","bulk delete email","gmail api","curious",0.146,{"positive":31,"neutral":32,"mixed":33,"critical":31},3,7,0,13,{"idea":36,"performance":38,"execution":39},{"positive":37,"critical":33},2,{"positive":33,"critical":31},{"positive":40,"critical":33},1,[31,33,33,33,33,31,33,33,33,33,33,33,31,31,40,31,40,40,33,33,42,33,33,33,33,33,33,33,33,33,33,31,33,33,42,33,31,33,42],5,null,{"problem":45,"audience":43,"pricing":43,"motivation":43,"time_to_build":43,"stack":51,"openness":58,"stage":59,"team_size":59},{"value":46,"source":47,"evidence":48},"Bulk deleting Gmail messages by query and managing Gmail filters from the command line","maker",[49],{"id":50},"post",[52],{"value":53,"source":47,"evidence":54},"google-api-client",[55],{"id":56,"by":11,"text":57},"22993037","I am using google-api-client, which has a \"create\" for single GMail Filter available here: https:\u002F\u002Fdevelopers.google.com\u002Fgmail\u002Fapi\u002Fv1\u002Freference\u002Fusers\u002Fsettings\u002Ffilters","open_source","unknown",{"praise":61,"objections":78,"requests":94,"questions":113,"alternatives":125},[62],{"value":63,"source":64,"evidence":65},"Useful and sweet to see built","commenter",[66,70,74],{"id":67,"by":68,"text":69},"22990025","adamfeldman","This looks useful! For \"Declarative configuration for Gmail filters\", see also https:\u002F\u002Fgithub.com\u002Fmbrt\u002Fgmailctl",{"id":71,"by":72,"text":73},"22990945","matlin","This is sweet. If you're interested, I'd be happy to help out with your todo to integrate with a local database. Getting the rate-limiting and retries right can be a little…",{"id":75,"by":76,"text":77},"22990633","jimbob45","I will be going to work tomorrow and baking this into our email test suite.",[79],{"value":80,"source":64,"evidence":81},"Bulk deletion in the Gmail web UI is unreliable for very large mailboxes",[82,86,90],{"id":83,"by":84,"text":85},"22993658","stevekemp","Having gone through this recently you'll see a spinner\u002Fprogress indicator. Then a short time later it'll terminate and half your messages will still be present. I took several…",{"id":87,"by":88,"text":89},"22993027","pfranz","I've had the same issue spanning years. I didn't bother going further than the web UI. I would delete 100k+ messages, it would hang, and when it returned it would only have…",{"id":91,"by":92,"text":93},"22991782","notyourday","I know this is an odd question but... Have you tried deleting a very large number of messages? I am talking about > 100,000. I once needed to clean up > million messages and it…",[95,106],{"value":96,"source":64,"evidence":97},"Find and delete messages by attachment size",[98,102],{"id":99,"by":100,"text":101},"22990723","harikb","Related: would this tool let me analyze my gmail for cleanup? That is, identify which senders\u002Fdomains send me the most email by number or size. Some way to automatically download…",{"id":103,"by":104,"text":105},"22991552","ronyeh","How might I use this to delete emails with big attachments? Can I filter and delete by message size? I'm cheap. :-)",{"value":107,"source":64,"evidence":108},"Automatic label creation based on sender and open behaviour",[109],{"id":110,"by":111,"text":112},"22994109","aryamaan","This is nice. A couple of days back I was thinking of a utility where labels are created automatically. It uses meta information like: ``` * How many emails I get from a sender *…",[114,118],{"value":115,"source":64,"evidence":116},"Can it handle deleting very large numbers of messages?",[117],{"id":91,"by":92,"text":93},{"value":119,"source":64,"evidence":120},"Is there a way to add a single filter without recreating all of them?",[121],{"id":122,"by":123,"text":124},"22991127","lifeisstillgood","I did something similar - in fact looking at the add filter, very similar, where I add a label to certain mails by query and then delete - but the weirdest part was i could not…",[126,130,137,143],{"value":127,"source":64,"evidence":128},"gmailctl for declarative Gmail filter configuration",[129],{"id":67,"by":68,"text":69},{"value":131,"source":64,"evidence":132},"Gmail search has:attachment larger:5M",[133],{"id":134,"by":135,"text":136},"22992237","jedberg","I know this isn't exactly what you are looking for, but I run this search once every few months: [has:attachment larger:5M] That finds everything bigger than 5 megabytes. You…",{"value":138,"source":64,"evidence":139},"labeller procmail-style Gmail rules",[140],{"id":141,"by":84,"text":142},"22992897","See also my little hack, a sort of procmail for gmail, with a small scripting language: https:\u002F\u002Fgithub.com\u002Fskx\u002Flabeller\u002F Adding\u002FRemoving labels based upon arbitrary…",{"value":144,"source":64,"evidence":145},"notmuch and mbsync for email cleanup",[146],{"id":147,"by":148,"text":149},"23029294","tleb_","Related: I recently used mbsync and notmuch to clean-up my Outlook\u002FLive\u002FOffice email account. A one-liner to get email count per domain: ``` notmuch address '*' | sed \"s\u002F^.*@\u002F\u002F\"…",{"comments":42,"answered":37,"key":151},[152,155,158],{"id":153,"text":154},"22993013","suggestion by @jedberg would work good for a search based on attachment size your suggestion on \"auto analysis for cleanup\" is good, I'll add it to my ToDo list",{"id":156,"text":157},"22993052","yes I did although I tried deleting for one or two years at a time",{"id":159,"text":160},"22993028","any help is welcome, thanks",{"commenters":162,"max_depth":42,"maker_replies":42,"first_comment_mins":163,"lifespan_hours":164},25,12,86,[166,168,170,172,174,176,177,180,183,186,188,191,194,196,200,202,204,206,207,209,212,215,217,218,220,223,226,228,231,233,235,237,240,242,244,249,251,252,255],[99,33,31,167,100,33],"project\u002Fneutral\u002Fidea",[134,33,33,169,135,33],"commenter\u002Fneutral\u002Fnone",[153,33,33,171,11,40],"maker\u002Fpositive\u002Fidea",[173,33,33,169,100,33],"22993491",[67,40,33,175,68,33],"other\u002Fneutral\u002Fnone",[110,40,31,167,111,33],[178,37,33,175,179,33],"22993892","hugothefrog",[181,37,33,175,182,33],"22994151","throwaway_pdp09",[184,37,33,175,185,33],"22994366","statictype",[187,37,33,175,179,33],"22994402",[189,37,33,175,190,33],"22996476","njhaveri",[192,37,33,175,193,33],"22994405","Accacin",[91,31,31,195,92,33],"project\u002Fneutral\u002Fperformance",[197,31,31,198,199,33],"22992573","project\u002Fneutral\u002Fnone","bishalb",[83,31,40,201,84,33],"project\u002Fcritical\u002Fperformance",[203,31,31,195,92,33],"22994706",[205,31,40,201,92,33],"22994676",[87,31,40,201,88,33],[156,31,33,208,11,40],"maker\u002Fneutral\u002Fperformance",[210,31,33,175,211,33],"22993059","emmelaich",[71,213,42,214,72,33],4,"maker\u002Fpositive\u002Fexecution",[159,213,33,216,11,40],"maker\u002Fpositive\u002Fnone",[147,42,33,175,148,33],[141,219,33,175,84,33],6,[221,32,33,175,222,33],"22991019","gigatexal",[224,32,33,175,225,33],"22991432","alfonsodev",[227,32,33,175,135,33],"22992229",[229,32,33,175,230,33],"22993316","Freeboots",[232,32,33,169,135,33],"22993411",[234,32,33,175,230,33],"22994910",[236,32,33,175,199,33],"22992567",[122,238,31,239,123,33],8,"project\u002Fneutral\u002Fexecution",[56,238,33,241,11,40],"maker\u002Fneutral\u002Fexecution",[243,238,33,169,123,33],"22993583",[245,246,42,247,248,33],"22991042",9,"project\u002Fpositive\u002Fidea","rodcoelho",[250,246,33,169,11,40],"22993040",[103,18,31,167,104,33],[253,18,33,175,254,33],"22991870","xuhu",[75,256,42,247,76,33],11,[],[259,264,268,272,276,281],{"id":260,"name":261,"points":262,"category":263},"23006794","Editly",429,"dev_tools",{"id":265,"name":266,"points":267,"category":263},"23021295","Insomnia Designer",317,{"id":269,"name":270,"points":271,"category":20},"22985055","Kanmail",271,{"id":273,"name":274,"points":275,"category":263},"22996374","delta",261,{"id":277,"name":278,"points":279,"category":280},"22979288","exchangerate.host",249,"finance_crypto",{"id":282,"name":283,"points":284,"category":20},"22974380","Help Me Decide Please",194,false,"v2",{"id":288,"name":5,"line":6,"ai":285,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":289,"top":18,"kw":290,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":291,"url":9,"mix":292,"praise":63,"objection":80,"sub":21},22989904,0.15,[24,25,26,27],"300003000000331311005000000000030050305",[31,32,33,31],1793991008237]