Live data from Hacker News

Show HN: Mail Memories – A desktop app to rescue photos from Gmail

mailmemories.com

41–50 of 71 posts

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#41
Here's a gmail extractor google apps script that does the same thing, but for not $30!

function autoExtractGmailMedia() { const START_TIME = Date.now(); const TIME_LIMIT = 1000 * 60 * 5; // 5 minutes (leaves a 1-minute safety buffer) const BATCH_SIZE = 50; const FOLDER_NAME = "Gmail_Media_Export";

  // 1. Retrieve our current position from the script's property store
  const scriptProperties = PropertiesService.getScriptProperties();
  let startIndex = parseInt(scriptProperties.getProperty('START_INDEX')) || 0;

  // Locate or create the destination folder
  let folder;
  const folders = DriveApp.getFoldersByName(FOLDER_NAME);
  if (folders.hasNext()) {
    folder = folders.next();
  } else {
    folder = DriveApp.createFolder(FOLDER_NAME);
  }

  // 2. Process batches in a loop
  // Updated search query to ignore USPS and non-primary tabs
  const searchQuery = 'has:attachment -from:usps.gov -category:promotions -category:updates -category:social (filename:jpg OR filename:jpeg OR filename:png OR filename:zip)';
  
  while (true) {
    const threads = GmailApp.search(searchQuery, startIndex, BATCH_SIZE);
    
    // If the search returns empty, we've hit the end of the inbox
    if (threads.length === 0) {
      console.log("Extraction completely finished.");
      scriptProperties.deleteProperty('START_INDEX');
      deleteTriggers(); // Clean up so it doesn't keep running
      return;
    }

    for (let i = 0; i  102400) {
            if (type.includes('image/') || name.endsWith('.zip')) {
              folder.createFile(attachment);
            }
          }
        }
      }
    }

    // Increment our starting index for the next batch
    startIndex += BATCH_SIZE;

    // 3. The Stopwatch Check
    if (Date.now() - START_TIME > TIME_LIMIT) {
      console.log(`Approaching timeout at index ${startIndex}. Saving state and passing the baton...`);
      scriptProperties.setProperty('START_INDEX', startIndex.toString());
      scheduleNextRun();
      return; // Exit to avoid the hard timeout exception
    }
  }
}

function scheduleNextRun() { deleteTriggers(); // Prevent duplicate overlapping triggers ScriptApp.newTrigger("autoExtractGmailMedia") .timeBased() .after(60 * 1000) // Fire a new execution 1 minute from now .create(); }

function deleteTriggers() { const triggers = ScriptApp.getProjectTriggers(); for (let i = 0; i < triggers.length; i++) { if (triggers[i].getHandlerFunction() === "autoExtractGmailMedia") { ScriptApp.deleteTrigger(triggers[i]); } } }

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#42
post #15

Earlier quoted context omitted.

Takeout is great for a total archive backup, but using it just to extract photos is where the UX breaks down for most people. When you export Mail with Takeout, Google dumps your entire history into a huge .mbox file. If you have a 20-year-old account, you're downloading tens of gigabytes of raw text data, headers, and metadata just to get to the images. Once you have that huge file, you still have to figure out a wa…

This script will extract all of the attachments from a MBOX file - https://gist.github.com/georgy7/3a80bce2cd8bf2f9985c

I think the target market isn’t doing this; heck, I’d normally be like you, but the price is low enough here to “one and done and forget it” here.

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#43
post #5

First, I really love this idea, and I thank you for getting it into my head. That said, if no AI is really important, I guess it's worth $29, though I can't tell if you used AI to build it or not from here. Like, I just one-shot a script that does the same with Claude, after it listed 5 free projects that do the same, including one GUI. The whole thing took less time than writing this comment. Now, if it were $2.99,…

> Like, I just one-shot a script that does the same with Claude, after it listed 5 free projects that do the same, including one GUI. The whole thing took less time than writing this comment. I'm assuming the author put in the effort to validate their program handles all kinds of pictures. With that assumption: - how did *you* validate the one-shot script that Claude handed you works correctly? - after all said and d…

The website is clearly vibecoded, and that makes me assume the app is also vibecoded. When I open the installer, Edge gives me a warning that the file is not safe. I know that just means the dev hasn't purchased a certificate, but it adds to the general feeling that this is a rushed project that asks 30 dollars for something that I can make with Gemini in about the time it took to write this comment.

I'm pretty sure the dev has good intentions, the app is safe, and it works... but I'm not going to find out because it's too much money and too risky.

It is a good idea, though. I'll check the comments for free, open-source alternatives, but if I don't find one, I'll probably just generate a script that does this when I get back home.

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#44
post #38
post #32

Earlier quoted context omitted.

I don't like how somebody is flagging/downvoting all your comments. This is about your product; it's highly relevant, whatever somebody might think about it.

I don't think it's just "somebody"; I think it's a lot of bodies. I'm downvoting him too because he vibe-coded a super simple "app", then is trying to sell it here as some life-saving tool . My main complaints: - Why is this $30? - Why is it Windows/Mac only? - Why is it Gmail only when it's using IMAP? But what really irks me is that you know you can do this exact thing with like two Linux CLI commands? ``` $ offlin…

[flagged]

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#45
post #5

First, I really love this idea, and I thank you for getting it into my head. That said, if no AI is really important, I guess it's worth $29, though I can't tell if you used AI to build it or not from here. Like, I just one-shot a script that does the same with Claude, after it listed 5 free projects that do the same, including one GUI. The whole thing took less time than writing this comment. Now, if it were $2.99,…

> Like, I just one-shot a script that does the same with Claude, after it listed 5 free projects that do the same, including one GUI. The whole thing took less time than writing this comment. I'm assuming the author put in the effort to validate their program handles all kinds of pictures. With that assumption: - how did *you* validate the one-shot script that Claude handed you works correctly? - after all said and d…

It worked fist shot, and found 3k+ photos, which feels about right. Validated with Vibes. It's going to take more than $30 in time to look at them all, and it's 3k+ more photos than I had before. So, I'm satisfied.

For apps without a network-effect, or highly specialized domains, coding agents are driving a convergence of the cost of software toward the cost of tokens to generate it. OP should have MIT licensed this, collected his 15m, and moved on to the next idea.

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#46
post #6
post #5

First, I really love this idea, and I thank you for getting it into my head. That said, if no AI is really important, I guess it's worth $29, though I can't tell if you used AI to build it or not from here. Like, I just one-shot a script that does the same with Claude, after it listed 5 free projects that do the same, including one GUI. The whole thing took less time than writing this comment. Now, if it were $2.99,…

The website is clearly AI-written (along with the text), and the screenshot also looks quite like the styles that LLMs love

You're half right. The HTML and CSS are from a standard template that I imagine exists in just about every LLM's dataset, since they've scraped an internet's worth of them. I wrote (and rewrote and rewrote...) and edited every single word on the page, though.

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#47
post #15
post #7

Or you can just use Google Takeout: https://takeout.google.com Deselect everything, select "Mail", create export, wait until it's done, and then download the zip.

Takeout is great for a total archive backup, but using it just to extract photos is where the UX breaks down for most people. When you export Mail with Takeout, Google dumps your entire history into a huge .mbox file. If you have a 20-year-old account, you're downloading tens of gigabytes of raw text data, headers, and metadata just to get to the images. Once you have that huge file, you still have to figure out a wa…

Thank you Claude

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#49
Just wanted to take a moment to say thank you to everyone who commented today. Launching on HN isn't for the faint of heart, but it’s been really valuable.

What a day. I was told my landing page looks like an AI wrote it, got roasted for a confusing illustration metric (and rightly so), and received the ultimate rite of passage: being told my app could be replaced by a couple of Linux CLI commands.

Unironically, thanks everyone. Because of your feedback, the site copy's a little tighter, and the Windows installer no longer throws a scary UAC prompt. I couldn't have asked for a better (or more intense) test.

Re: Show HN: Mail Memories – A desktop app to rescue photos from Gmail

#50
post #33

I'd love to somehow do the opposite of this but I don't think it's possible? It would be deleting attachments from emails without deleting the email thread. For example I'm always 1-2 GB away from my Google account being full. I've pruned Google Drive to the absolute bare minimum. I've had my Google account for a really long time. There's tens of thousands of emails since day 1. However, there's many emails that have…

I will tell you who this is for: my parents who “back up” their photos by emailing them to themselves, and finally get convinced to use a real cloud photo solution.
Post reply on HN