GmailAttachmentsExtractor icon indicating copy to clipboard operation
GmailAttachmentsExtractor copied to clipboard

creates multiple copies of the email as it gets tripped by its own .yml attachment

Open evolphotonics opened this issue 1 year ago • 1 comments

Czesc Tomasz, Thank you for this lifesaver. However, the program stops in the middle for various reasons (if there are say weird characters in the file attachments it is downloading; e.g. found valid base64 character after a padding character (=)). It has happened many times that when I restart it, after removing the labels and renaming the download folder, of course - it seems to process the already processed emails even when though it does not clearly match the parameters (e.g. size larger than 1M) and it seems to be creating duplicates of already processed emails with empty attachment files ending in .yml.yml.yml etc.

I had around 10.5k emails, now it is showing 3 times more around 30k emails. Is there a way to dedupe this? or should I have to manually search and delete any email with a more than one .yml (i.e., .yml.yml, or .yml.yml.yml)?

It seems kind of silly that it does not recognize that it has processed an email if it already has a .yml file with 0 or whatever small arbitrary size.

Hope you can help me out. Dziękuję

evolphotonics avatar Jan 09 '24 05:01 evolphotonics

@TeWu appreciate your input.

evolphotonics avatar Jan 11 '24 12:01 evolphotonics