Skip to content

Commit

Permalink
Minor fixes to mail processing
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Oct 18, 2020
1 parent 4c16b1a commit 8b38e86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/pim-mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ function saveToDefaultIncoming(mail, message)
var defaultIncoming = mail.folders.findFirstByProperty("defaultIncoming", 'true')
if (defaultIncoming == null)
return false;
defaultIncoming.saveMessage(message);
return true;
return defaultIncoming.saveMessage(message);
}

Luwrain.addHook("luwrain.pim.message.new.save", function(mail, message){
var listId = message.list.id;
if (listId.isEmpty())
// if (listId.isEmpty())
return saveToDefaultIncoming(mail, message);
var existingFolder = mail.folders.findFirstByProperty("list", listId)
if (existingFolder != null)
Expand Down

0 comments on commit 8b38e86

Please sign in to comment.