anicholson / obsidian-google-mail

Fetch emails to Obsidian (as markdown) from Gmail server
53 stars 4 forks source link

Can't fetch mail in 1.4.3 #30

Closed bhemmelgarn closed 4 months ago

bhemmelgarn commented 10 months ago

After some trial and error, everything worked fine through setup. I have some labels applied, I have a template and my folders set up. I can do the plugin setup in Obsidian and it recognizes the labels. But when I go to actually fetch the mail, nothing is retrieved. No idea what my error might be. Error log in the developer console attached.

image

thingnotok commented 10 months ago

I'm currently using version 1.4.16 and it is still working in my environment. It seems that the problem occurs when the plugin attempts to parse the body of the email, based on the error message. If you can, please try using this build which reports the format and structure of the email body, so that I can assist you further. Alternatively, could you send me (thingnotok_at_gmail.com) the first email under the label you want to fetch? This will allow me to debug the issue in my environment.

image
bhemmelgarn commented 10 months ago

Email sent. Interestingly, still on the 1.4.30 build, the email was captured & fetched after forwarding it to you. Similar emails still have not been fetched.

thingnotok commented 10 months ago

I have received the email and will dig into it this weekend. You mentioned that the email can be fetched after being forwarded. Can you confirm if this applies to all emails or just this specific one?

bhemmelgarn commented 10 months ago

Yes, I was able to replicate it in several emails, it appears to be consistent.

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Nov 17, 2023 at 4:59 PM thingnotok @.***> wrote:

I have received the email and will dig into it this weekend. You mentioned that the email can be fetched after being forwarded. Can you confirm if this applies to all emails or just this specific one?

— Reply to this email directly, view it on GitHub https://github.com/thingnotok/obsidian-google-mail/issues/30#issuecomment-1817226254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZD675UP7TVRAULQGANZF63YE7T4TAVCNFSM6AAAAAA7ICYA6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGIZDMMRVGQ . You are receiving this because you authored the thread.Message ID: @.***>

dotnich-io commented 7 months ago

@thingnotok This is happening to me also, but only on some emails. Looking into it, I believe the issue is related to flatten_parts, as on the message that broke for me, the MIME type was multipart/mixed not multipart/related or multipart/alternative (which is what flatten_parts checks for).