Skip to content

Commit

Permalink
Fix thsmi#799 - Sieve as a Thunderbird plug broken
Browse files Browse the repository at this point in the history
- Accommodate nsIMsgIncomingServer interface change
- https://hg.mozilla.org/comm-central/rev/e7602ee8cf16b8885dcc63d6f70650223b26260f
  • Loading branch information
dxdxdt committed Sep 8, 2022
1 parent cfedd1b commit 85d8acb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/wx/api/sieve/SieveAccountsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@
},

async getUsername(id) {
return await getIncomingServer(id).realUsername;
const retval =
await getIncomingServer(id).realUsername ||
await getIncomingServer(id).username;
return retval;
},

async getHostname(id) {
return await getIncomingServer(id).realHostName;
const retval =
await getIncomingServer(id).realHostName ||
await getIncomingServer(id).hostName;
return retval;
}
}
}
Expand Down

0 comments on commit 85d8acb

Please sign in to comment.