mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-16 14:20:10 -07:00
Added parsing check for message date bump 4.2.1
This commit is contained in:
parent
3b26c08e07
commit
c5110a6681
@ -1,5 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
## 4.2.1 - 2021-03-29
|
||||
|
||||
- Added a check for parsing the mail date. A bad formatted message date was failing to load the plugin.
|
||||
|
||||
## 4.2.0 - 2021-03-23
|
||||
|
||||
- Added dark/light mode option.
|
||||
|
@ -10,7 +10,7 @@ const MailHops = {
|
||||
loading: false,
|
||||
previousId: null,
|
||||
options: {
|
||||
version: 'MailHops Plugin 4.2.0',
|
||||
version: 'MailHops Plugin 4.2.1',
|
||||
api_key: '',
|
||||
owm_key: '',
|
||||
lang: 'en',
|
||||
@ -129,11 +129,23 @@ MailHops.getRoute = async function () {
|
||||
var headListUnsubscribe = MailHops.message.headers['list-unsubscribe'] ? MailHops.message.headers['list-unsubscribe'][0] : '';
|
||||
|
||||
var all_ips = new Array();
|
||||
var rline = '',firstDate=headDate,lastDate;
|
||||
var rline = '';
|
||||
var firstDate = headDate;
|
||||
var lastDate;
|
||||
//empty secure and time
|
||||
MailHops.message.secure = [];
|
||||
MailHops.message.time = null;
|
||||
try {
|
||||
MailHops.message.date = new Date(headDate).toISOString();
|
||||
} catch (error) {
|
||||
headDate = headDate.substring(0, headDate.lastIndexOf(' '));
|
||||
}
|
||||
try {
|
||||
MailHops.message.date = new Date(headDate).toISOString();
|
||||
} catch (error) {
|
||||
headDate = new Date();
|
||||
}
|
||||
|
||||
MailHops.message.auth = MailHops.auth( headXMailer, headUserAgent, headXMimeOLE, headAuth, headReceivedSPF, headListUnsubscribe );
|
||||
|
||||
//loop through the received headers and parse for IP addresses
|
||||
|
@ -2,7 +2,7 @@
|
||||
"manifest_version": 2,
|
||||
"name": "__MSG_appName__",
|
||||
"description": "__MSG_appDesc__",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.1",
|
||||
"author": "Hopsware LLC",
|
||||
"developer": {
|
||||
"name": "Andrew Van Tassel",
|
||||
|
Loading…
x
Reference in New Issue
Block a user