var minisrv_service_file = true; var intro_seen = ssid_sessions[socket.ssid].mailstore.checkMailIntroSeen(); if (!intro_seen && !request_headers.query.intro_seen) { // user is trying to bypass the intro screen headers = "300 OK\nLocation: wtv-mail:/DiplomaMail"; } else { var doClientError = function (msg) { var clientErrorMsg = new clientShowAlert({ 'image': minisrv_config.config.service_logo, 'message': msg, 'buttonlabel1': "Okay", 'buttonaction1': "client:donothing", 'noback': true, }).getURL(); headers = "300 OK\nwtv-visit: " + clientErrorMsg; } var username = ssid_sessions[socket.ssid].getSessionData("subscriber_username"); var userdisplayname = html_entities.encode(ssid_sessions[socket.ssid].getSessionData("subscriber_name")); var address = username + "@" + minisrv_config.config.service_name var notImplementedAlert = new clientShowAlert({ 'image': minisrv_config.config.service_logo, 'message': "This feature is not available.", 'buttonlabel1': "Okay", 'buttonaction1': "client:donothing", 'noback': true, }).getURL(); headers = `200 OK Content-type text/html`; data = ` Write an e-mail message
Mail list
Address
Photo
Recording
Erase
Write an e-mail message

From: 
${address}
(${userdisplayname})
To: 
Subject: 
`; if (!ssid_sessions[socket.ssid].getSessionData("subscriber_signature") || ssid_sessions[socket.ssid].getSessionData("subscriber_signature") == "") { data += `
`; } else { data += ` Disable Signature`; } data += `

`; }