-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create NIP for mail events #84
Conversation
so the only difference with nip4 is the encrypted subject? |
yes, thats why i thought would be more appropieta to specify a structure or soemthing. the idea is that chat apps dond show mail events and mail apps dont show chat events. Also devs could imagine new structures that dont fit on these. |
we already have a subject tag, why not simply add that tag to a kind-4 but encrypted like the content, then you decrypt both, you don't need the structure and clients that don't support the encrypted subject will ignore as it's not needed |
The problem is that chat apps will show mail messages and the mail clients wills how chat mssages. I feel that they are not the same, but if it is what i should do i will do it. |
why are they not the same? what's the difference other than the UI abstraction? |
for me these messages has not the same context, i dont want to receive on my gmail small messages as good morning, how are you etc. For that u use whatsapp or signal. A mail is used in other context, more polites maybe. For me is more than just a UI asbtraction, is a way of comunication, if they were the same people would just use gmail as a message app. |
Another option will be have keys for chat apps and keys for mail apps, maybe it a bit annoying for users idk. What do u think? |
what prevents anyone from sending you events in this format but like it was a chat? the format doesn't change anything if it doesn't impose a structure, you can also receive a bunch of these saying |
Ofc the format didnt change anything, that the reason i ask for an extension of the nip 5. For setting the intention of the messages. People can send small mail for saying |
The main difference is not the structre, is the intention and the scope of the message, it is not a tech dif, is a language context diff. |
kind-4 already goes out of the way and makes it a direct communication avenue, it's exactly what you want. the intention is irrelevant if sending a kind-4 or kind-44 if the rest in unchanged, but that's just my perspective, feel free to use a different kind for that, but the key points of nostr is interoperability, so you can levarage existing apps that already talk the same language, if you're creating a new kind just for yourself, you can, but what would be the reason for anyone else to use your different format if they can already talk to each other? |
Sure, i understand your point and see the advantages of it. We can let this pr open for a week to see more peolpe opinions and then we can close it. |
I will also ask on anigma, but i thinking your point is really good |
I make some updates on the nip, i think now is different from the dm, cuz it has more functionalities (set category, mark if read, etc) If someone want to add something will be helpful. |
Im also valuing using shared secrets #59. The idea would be have a shared secret or group chat as mail thread, but maybe a user will have a lot of keys to manage. |
something I've always wanted is a more general nip04 that has encrypted tags and maybe even encrypted kinds. you could even retain queryability by hashing the shared secret into the tag value: {kinds: [444], #k: sha256(shared_secret, 7)} that way you could create reactions to dms, etc. |
I like the idea, can u develop the idea a lite more pls? |
Maybe add email-specific metadata ( |
That was mi initial idea with issue #83, I propose to set a few tags for specifying some kind of encrypted messages. I explained the idea bad :( |
even more general:
but this doesn't work because it is eqivalent to EDIT: nm I dont think this works, because there is more than one way to query a pubkey. maybe it does somehow, but would have to think a lot more on how this would work. |
waiting for @Semisol to take this idea #84 (comment) and make it work |
@arejula27 if it helps I had implemented an SMTP to Nostr Gateway using NIP-04: https://github.com/Cameri/smtp-nostr-gateway In my implementation the event's
I think you could consider keeping |
I think I will be implement the client as kind 4, cuz every one looks agree with that. |
I was following the DATA command as in the RFC. It's not redundant since the To: field can contain a petname and more than one recipient. |
I write this NIP for creating a new kind of structure direct message as i was suggested in the issue #83 . I make this proposal for discuss the best way of doing this structured events