I could detect if I'm connected to Gmail and just not append of course, but I'd like to understand what's happening.
Inspecting Apple Mail's traffic, I can see it's appending to All Mail as well, but it doesn't seem to ever duplicate. Perplexing.
If anyone knows anything I'd be very interested!
Posting incase any IMAP/SMTP buffs follow me:
Gmail copies whatever is sent via SMTP into IMAP. If you try to APPEND the same message to Sent, you get a dupe.
If you APPEND to All Mail though, then immediately store a \Sent label, it doesn't duplicate…90% of the time.
So why does this work most of the time, but sometimes fail?
When it's working the server seems to return both EXPUNGE and EXISTS simultaneously. If it fails, you only get an EXISTS.
@meaden they hold an irrational amount of control over our emotions!
Thank you ❤️
@bardi Yeah pretty much. iMovie would probably get you there too.
@bardi http://screen.studio + Final Cut. For the most part SS is pretty decent, but sometimes the exports aren't great and need fixing up.
@alex Yeah that's definitely an option, though trying to avoid adding too many settings where possible.
@nmn no set schedule, just whenever the next build is ready. Hopefully this week !
@dimitribouniol 0.7s vs 0.3s on my tests...so yes!
@dimitribouniol Yeah I've decided it's probably simpler to just do away with those methods entirely.
It's not as elegant, but hey, it's a lot more predictable.
Thanks for your help!
@dimitribouniol Ahh-ha, yes it does look like lineRange is from NSString, as is range(of:). Perhaps there is some utf8 to utf16 weirdness going on then.
@dimitribouniol Thanks Dimitri these are really great suggestions!
I don't *think* I'm mixing indexes and ranges. It looks like range(of:range:) and lineRange both return String.Index.
The test input of a blank key and multiple colons looks alright too. And \r\r just gets treated as two lines, and so the second line just returns nil on the match.
Vexing!
@santim thank you! 🙌
@mattiem oooo that’s a good suggestion! I’ll give it a go when I’m back at my desk.
Spec says servers shouldn’t be returning those unencoded…but since when has that stopped them 🤓
@tomk thanks I’ll check that out too!
@mattiem it's weird right!? Only thing that has a wiff of suspicion is it takes a ‘locale’ argument which could be doing...something.
🏳️🌈 Founder / Maker
Building that new email app.
Swift and rollercoasters are my thing.
Recovering VC.