Repository navigation
Calendar, Spreadsheet, Signatures: send as the account's senderEmail - #258
Merged
Merged
Conversation
Mail sent in a user's name uses whoami's senderEmail: a team account's <username>@puter.email, otherwise the confirmed account email. - Calendar: invitations, cancellations and booking confirmations name senderEmail as organizer. The email worker (v14) accepts it as the caller's address and refuses an unconfirmed email with detail 'email_unconfirmed', which the app shows as a confirm-your-email message. The RSVP worker (v33) sends host notices to the booking's notifyEmail when the organizer guests see is another address. - Spreadsheet: the email worker (v2) sets Reply-To from the session instead of trusting an unconfirmed email. - Signatures: the email worker (v4) reads the sender's address from the session; the request body no longer carries ownerEmail.
…sion - Workers use the account email only when whoami marks it confirmed. - Calendar email worker: a REPLY's ATTENDEE must be the authorized attendee. - Calendar invites: updates and cancellations keep the organizer guests were first mailed, unless it's an unconfirmed email that can no longer send. - RSVP worker: booking mail reads the host's addresses from the owner session instead of the synced config. Guests see senderEmail; the host's own notices go to the confirmed email, else senderEmail. - RSVP links: guest pages show senderEmail for the host. Digests change only for hosts whose shown organizer changes. - Signatures: owner notices go to the confirmed email, else senderEmail, and are refused when the session names neither.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mail these apps send in a user's name now uses
senderEmailfromputer.auth.getUser(): a team account's<username>@puter.email, otherwise the account email once confirmed. Depends on HeyPuter/puter#4805 (whoamisenderEmail).A team account whose email was never confirmed couldn't send calendar invitations: the client named the unconfirmed email as organizer and the email worker refused it with
organizer_mismatch.Calendar
senderEmailas organizer, and the caller's own guest entry is rewritten to it. Stored events and invitation digests aren't changed.senderEmailcounts as the caller's address, and the account email counts only when confirmed.detail: 'email_unconfirmed', and the app shows a confirm-your-email message.senderEmail.senderEmail.senderEmail. Stored link digests change only for hosts whose shown organizer changes, so other hosts don't resync every event.senderEmail, then the confirmed email, then the Puter mailbox.Spreadsheet: email worker v2 sets Reply-To from the session (
senderEmail, else the confirmed email) and leaves it out otherwise.Signatures: email worker v4 takes the sender's address from the session.
ownerEmailis no longer sent in the request body, and a forged one is ignored.senderEmail.owner_email_unavailable) when the session names neither, instead of going to the address in the request.Auth callout: all three workers, and the per-user RSVP worker, now derive sender and recipient-of-own-notice addresses from a session instead of the client.
Rollout
npm run deploy:email-workerin calendar, spreadsheet and signatures. The app redeploys each user's RSVP worker on the version bump. Deploy the signatures worker before its app change, since the app stops sendingownerEmail.Until step 1 is live:
Tests