Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Nov 23, 2022
1 parent 7402b05 commit 06e0b39
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions js/pim-mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,56 +14,6 @@
General Public License for more details.
*/

var SERVERS = [
{suffixes: ['@yandex.ru', '@yandex.com'],
smtp: {
host: 'smtp.yandex.ru',
port: 587,
ssl: false,
tls: true}
},

{suffixes: ['@gmail.com'],
smtp: {
host: 'smtp.gmail.com',
port: 587,
ssl: false,
tls: true}
},

{suffixes: ['@mail.ru'],
smtp: {
host: 'smtp.mail.ru',
port: 587,
ssl: false,
tls: true}
},

{suffixes: ['@rambler.ru'],
smtp: {
host: 'smtp.rambler.ru',
port: 465,
ssl: true,
tls: false}
}]

function findServer(addr)
{
for(var i = 0;i < SERVERS.length;i++)
{
var s = SERVERS[i];
var j = 0;
for(var j = 0;j < s.suffixes.length;j++)
if (addr.trim().toLowerCase().endsWith(s.suffixes[j].trim().toLowerCase()))
break;
if (j >= s.suffixes.length)
continue;
return s;
}
return null;
}


function saveToDefaultIncoming(mail, message)
{
var defaultIncoming = mail.folders.findFirstByProperty("defaultIncoming", 'true')
Expand Down

0 comments on commit 06e0b39

Please sign in to comment.