Skip to content

Merge pull request #2737 from nxglabs/sync-to-public_repo-32459158600 - #2247

Merged
raktima-opensignlabs merged 1 commit into
stagingfrom
updates-32480718420
Aug 21, 2026
Merged

Merge pull request #2737 from nxglabs/sync-to-public_repo-32459158600#2247
raktima-opensignlabs merged 1 commit into
stagingfrom
updates-32480718420

Conversation

@nxglabs

@nxglabs nxglabs commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Merge pull request #2736 from nxglabs/raktima-main-patch-security

Merge pull request #2736 from nxglabs/raktima-main-patch-security
Copilot AI lite review requested due to automatic review settings August 21, 2026 12:12
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-sign Ready Ready Preview Aug 21, 2026 12:12pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates OpenSign’s server-side email/link generation and document metadata, and extends client localization for a new “monthly email credits limit reached” message.

Changes:

  • Add RFC 2047 (base64) MIME encoding for non-ASCII display names in Gmail From: headers.
  • Persist request origin IP (OriginIp) when creating documents from the app, and prefer browser Origin for custom-domain signing links in batch sends.
  • Add a new i18n key (quota-mail-limit-reached) across multiple locales.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/OpenSignServer/cloud/parsefunction/sendMailGmailProvider.js Adds encodeMimeAddress() and applies it to From: when constructing raw Gmail messages.
apps/OpenSignServer/cloud/parsefunction/createDocumentFromApp.js Stores OriginIp on newly created contracts_Document records.
apps/OpenSignServer/cloud/parsefunction/createBatchDocs.js Prefers request.headers.origin for publicUrl (custom-domain signing links).
apps/OpenSign/public/locales/kr/translation.json Adds quota-mail-limit-reached Korean translation.
apps/OpenSign/public/locales/it/translation.json Adds quota-mail-limit-reached Italian translation.
apps/OpenSign/public/locales/hi/translation.json Adds quota-mail-limit-reached Hindi translation.
apps/OpenSign/public/locales/fr/translation.json Adds quota-mail-limit-reached French translation.
apps/OpenSign/public/locales/es/translation.json Adds quota-mail-limit-reached Spanish translation.
apps/OpenSign/public/locales/en/translation.json Adds quota-mail-limit-reached English translation.
apps/OpenSign/public/locales/de/translation.json Adds quota-mail-limit-reached German translation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +42 to +46
const value = String(address || '');
const match = value.match(/^(.*?)\s*<([^<>]+)>$/);
const displayName = match ? match[1].trim() : value;

if (/^[\x00-\x7F]*$/.test(displayName)) return value;
Comment on lines +330 to +331
// Use the browser origin so signing links keep the custom domain.
let publicUrl = request.headers.origin || request.headers.public_url;
"quota-mail-info": "To maintain service quality and prevent spam, OpenSign allows up to 15 emails per month on the free plan. Upgrade now for unlimited email sending.",
"quota-mail-reset": "Your signature request email credits will be reset on",
"quota-mail": "You've reached your limit of 15 signature request emails for this month. Upgrade now to continue sending emails directly.",
"quota-mail-limit-reached": "You've reached your monthly limit of 15 email credits. Please upgrade your plan to continue sending emails directly.\nYour email credits will reset on {{resetDate}}",
@raktima-opensignlabs
raktima-opensignlabs merged commit e5f2c5c into staging Aug 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants