nostr_mail 1.4.3
nostr_mail: ^1.4.3 copied to clipboard
A Dart SDK for sending and receiving emails over the Nostr protocol using NIP-59 gift-wrapped messages.
1.4.3 #
- Fix: save giftwraps events outside of NDK cache
1.4.2 #
- New: add fetchRecent() for simple parallel sync without fetchedRanges
1.4.0 #
- New:
resync()method to clear fetchedRanges and sync from scratch (useful for recovering late-arriving events) - Improvement: Refactored filter creation into reusable private methods
1.3.1 #
- Bug fix:
recipientPubkeynow correctly extracted from theptag of the email event instead of using the gift wrap recipient - Bug fix: Fallback to HTML body for single-part HTML emails
- Breaking: Emails without a
ptag are now skipped (malformed emails)
1.3.0 #
- New: NIP-32 labels system (
addLabel,removeLabel,moveToTrash,markAsRead,star, etc.) - New: Unified
watch()stream withMailEventsealed class (EmailReceived,EmailDeleted,LabelAdded,LabelRemoved) - New: Convenience stream getters (
onEmail,onTrash,onRead,onStarred,onLabel) - New:
getInboxEmails()andgetSentEmails()with pagination andincludeTrashedoption - New:
htmlBodygetter onEmail(parsed on demand from rawContent) - New:
stopWatching()method to close stream and cleanup resources - Improvement: Local-first labels (save and notify immediately, broadcast in background)
- Improvement: Shared broadcast stream for
watch()(multiple listeners share same subscriptions)
1.2.2 #
- Use the new ndk version
1.2.1 #
- Use the new ndk version
1.2.0 #
- Performance fix:
watchInbox()now useslimit: 0to only receive new real-time events, avoiding re-processing of historical gift wraps at startup - New:
sync()now accepts optionallimit,since, anduntilparameters for incremental sync
1.1.1 #
- Security fix: Added
recipientPubkeyfield to Email model to properly filter emails by recipient - Performance fix: Mark all gift wraps as processed after decryption to avoid re-decrypting DMs and other non-email content on each sync
1.1.0 #
- RFC 2822 compatibility: addresses without domain now get
@nostrsuffix - Standardized on npub format for all Nostr addresses (hex pubkeys auto-converted)
- Fixed: "To" field was empty when sending to npub addresses
1.0.0 #
- Initial version.