Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added yambuu-mail/css/._franz.css
Binary file not shown.
3 changes: 3 additions & 0 deletions yambuu-mail/css/franz.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
footer {
display: none !important;
}
Binary file added yambuu-mail/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions yambuu-mail/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions yambuu-mail/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// just pass through Franz
module.exports = Franz => Franz;
23 changes: 23 additions & 0 deletions yambuu-mail/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Yambuu Mail",
"version": "1.0.0",
"description": "Yambuu Mail – Security and control for Email",
"main": "index.js",
"author": "Yambuu Corporation <[email protected]>",
"license": "MIT",
"config": {
"serviceURL": "https://www.yambuu.com/yambuu-web/main.html#/",
"serviceName": "Yambuu Mail",
"message": "Secure Email WEB Client - Compatible with Gmail, Office365, Outlook, Exchange, Zimbra, Own Server, etc",
"popup": [],
"hasNotificationSound": true,
"hasIndirectMessages": false,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
},
"openDevTools": false
}
}
22 changes: 22 additions & 0 deletions yambuu-mail/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require('path');

module.exports = (Franz, options) => {
const getMessages = () => {
// get unread messages
const updates = document.getElementById('franz').getAttribute('data-unread');

// get conversations in 'My Inbox'
const inbox = document.getElementById('franz').getAttribute('data-inbox');

// set Franz badge
// updates => active unread count
// inbox => passive unread count
Franz.setBadge(updates, inbox);
};

// inject franz.css stylesheet
Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));

// check for new messages every second and update Franz badge
Franz.loop(getMessages);
};