mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 00:13:37 +00:00
chore: name the app Bulwark Webmail in exported files, outgoing requests and the manifest
This commit is contained in:
@@ -101,7 +101,7 @@ export async function POST(request: NextRequest) {
|
||||
for (let i = 0; i <= MAX_REDIRECTS; i++) {
|
||||
const headers: Record<string, string> = {
|
||||
'Accept': 'text/calendar, application/ics, text/plain, */*',
|
||||
'User-Agent': 'JMAP-Webmail/1.0 Calendar-Fetcher',
|
||||
'User-Agent': 'Bulwark-Webmail-Calendar (+https://bulwarkmail.org)',
|
||||
};
|
||||
if (authHeader && new URL(currentUrl).origin === originalOrigin) {
|
||||
headers['Authorization'] = authHeader;
|
||||
|
||||
@@ -176,7 +176,7 @@ async function mymemoryRequest(
|
||||
|
||||
const res = await fetch(url.toString(), {
|
||||
signal,
|
||||
headers: { 'User-Agent': 'JMAP-Webmail/1.0 Translate-Plugin' },
|
||||
headers: { 'User-Agent': 'Bulwark-Webmail-Translate (+https://bulwarkmail.org)' },
|
||||
});
|
||||
const data = (await res.json().catch(() => null)) as
|
||||
| { responseStatus?: number | string; responseData?: { translatedText?: string }; responseDetails?: string }
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ export default async function manifest(): Promise<ExtendedManifest> {
|
||||
const shortName = branded<string>("appShortName", "") || appName;
|
||||
const description =
|
||||
branded<string>("appDescription", "") ||
|
||||
"A modern webmail client built for Stalwart Mail Server";
|
||||
"Self-hosted webmail for mail, calendar, contacts and files, built on JMAP";
|
||||
const themeColor = branded<string>("pwaThemeColor", "") || "#ffffff";
|
||||
const backgroundColor = branded<string>("pwaBackgroundColor", "") || "#ffffff";
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ describe('POST /api/fetch-ical', () => {
|
||||
expect(guardedFetch).toHaveBeenCalledTimes(1);
|
||||
expect(guardedFetch).toHaveBeenCalledWith(
|
||||
'https://calendar.example.com/feed.ics',
|
||||
expect.objectContaining({ headers: expect.objectContaining({ 'User-Agent': 'JMAP-Webmail/1.0 Calendar-Fetcher' }) }),
|
||||
expect.objectContaining({ headers: expect.objectContaining({ 'User-Agent': 'Bulwark-Webmail-Calendar (+https://bulwarkmail.org)' }) }),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -575,7 +575,7 @@ describe("vCard 4.0 export (issue #1407)", () => {
|
||||
expect(vcf).toBe([
|
||||
"BEGIN:VCARD",
|
||||
"VERSION:4.0",
|
||||
"PRODID:-//JMAP-Webmail//EN",
|
||||
"PRODID:-//Bulwark Mail//Bulwark Webmail//EN",
|
||||
"UID;VALUE=text:sabre-vobject-5e64d0ac-69da-4393-bfe4-87844b9a7db6",
|
||||
"REV:20250728T121700Z",
|
||||
"N:Doe;Jane;;;",
|
||||
|
||||
@@ -116,7 +116,7 @@ export function eventToICS(event: CalendarEvent): string {
|
||||
const now = formatNow();
|
||||
const lines: string[] = [
|
||||
"BEGIN:VCALENDAR",
|
||||
"PRODID:-//JMAP-Webmail//EN",
|
||||
"PRODID:-//Bulwark Mail//Bulwark Webmail//EN",
|
||||
"VERSION:2.0",
|
||||
"CALSCALE:GREGORIAN",
|
||||
"METHOD:PUBLISH",
|
||||
|
||||
+3
-3
@@ -5318,7 +5318,7 @@ export class JMAPClient implements IJMAPClient {
|
||||
|
||||
const lines: string[] = [
|
||||
'BEGIN:VCALENDAR',
|
||||
'PRODID:-//JMAP-Webmail//EN',
|
||||
'PRODID:-//Bulwark Mail//Bulwark Webmail//EN',
|
||||
'VERSION:2.0',
|
||||
'CALSCALE:GREGORIAN',
|
||||
'METHOD:REPLY',
|
||||
@@ -5507,7 +5507,7 @@ export class JMAPClient implements IJMAPClient {
|
||||
|
||||
const lines: string[] = [
|
||||
'BEGIN:VCALENDAR',
|
||||
'PRODID:-//JMAP-Webmail//EN',
|
||||
'PRODID:-//Bulwark Mail//Bulwark Webmail//EN',
|
||||
'VERSION:2.0',
|
||||
'CALSCALE:GREGORIAN',
|
||||
'METHOD:REQUEST',
|
||||
@@ -5685,7 +5685,7 @@ export class JMAPClient implements IJMAPClient {
|
||||
|
||||
const lines: string[] = [
|
||||
'BEGIN:VCALENDAR',
|
||||
'PRODID:-//JMAP-Webmail//EN',
|
||||
'PRODID:-//Bulwark Mail//Bulwark Webmail//EN',
|
||||
'VERSION:2.0',
|
||||
'CALSCALE:GREGORIAN',
|
||||
'METHOD:CANCEL',
|
||||
|
||||
+1
-1
@@ -1178,7 +1178,7 @@ function buildContact(raw: Record<string, string[]>): ContactCard | null {
|
||||
|
||||
// PRODID names the product that wrote the file, not the one that first made
|
||||
// the card, so the card's own prodId is not written back.
|
||||
const VCARD_PRODID = "-//JMAP-Webmail//EN";
|
||||
const VCARD_PRODID = "-//Bulwark Mail//Bulwark Webmail//EN";
|
||||
|
||||
function hasUriScheme(value: string): boolean {
|
||||
return /^[a-z][a-z0-9+.-]*:/i.test(value);
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "bulwark-webmail",
|
||||
"version": "1.19.1",
|
||||
"description": "Bulwark Webmail - a modern webmail client built for Stalwart Mail Server",
|
||||
"description": "Bulwark Webmail: self-hosted webmail for mail, calendar, contacts and files, built on JMAP",
|
||||
"author": "Bulwark Mail <dev@bulwarkmail.org>",
|
||||
"license": "AGPL-3.0-only",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user