I have an add-on for Thunderbird that archives emails in my management system. After the latest August update, on some devices, the email is not arriving complete at the server. This is the script that handles the file transmission:
var formData2 = new FormData();
formData2.append('autoriz', 'tuttok');
formData2.append('annox', annoy);
formData2.append('mesex', mesey);
formData2.append('giornox', giornoy);
formData2.append('idx', idx);
formData2.append('file', data); // 'file' truncated
fetch(url, {
method: 'POST',
body: formData2, // Pass the FormData as the request body
})
.then(response => {
if (!response.ok) {
throw new Error('Error in the request: ' + response.statusText);
}
return response.text();
})
.then(responseText => {
console.log("send_email_auto2 " + responseText);
})
.catch(error => {
console.log('Error during the request:', error);
});
any suggestions?