Closed LBBO closed 4 weeks ago
Thank you for opening this issue!
🔔 @xmok you might want to have a look.
Sounds like a great idea. It's something that's actually in my backlog so I'd definitely appreciate you implementing it.
The ImprovMX extension does something similar in case you need inspiration.
There's no need for TanStack since Raycast Utils has a number of useful React Hooks. You could wrap the current calls in useCachedPromise or you could move it all to useFetch; the latter will allow you to remove the node-fetch
dependency entirely.
Please let me know if you need further guidance.
Assigning the issue to you 🫡.
Extension
https://www.raycast.com/xmok/migadu
Description
Apple has a "Hide My Email" feature that will generate a random, unique email that you can use to sign up for random services. Using Migadu's API and Identities, a similar functionality could be implemented without the dependency on Apple.
To this end, it would be useful to have a command that basically just takes the name of the identity you want to create (which would probably end up being the name of the service you're generating the email for) and then creates the identity and copies the new email address to your clipboard. I would suggest a dropdown that allows you to change the mailbox for which the identity is created, but I think it should be pre-populated with a pre-selected default mailbox. It might also be cool to allow for customization of the created identity, i.e. having an input that's prefilled with a random and unique email address.
Who will benefit from this feature?
Any migadu user who would like to use "Hide My Email", but without depending on Apple.
Anything else?
I'd be happy to implement this myself! All I need is the go-ahead that this feature would be appreciated. I've started looking into the code and saw that queries are currently handled via vanilla fetch. Would you mind if I migrate them to TanStack Query? This would remove the need for a manually managed
isLoading
state and enable some useful things in the future. Other extensions seem to also use this library, so I'm optimistic it won't cause any significant issues.