mailbench 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.12'
20
+
21
+ - name: Install build dependencies
22
+ run: pip install build
23
+
24
+ - name: Build package
25
+ run: python -m build
26
+
27
+ - name: Publish to PyPI
28
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,40 @@
1
+ # Virtual environment
2
+ venv/
3
+ .venv/
4
+ env/
5
+
6
+ # Python
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+ *.so
11
+ .Python
12
+ build/
13
+ dist/
14
+ eggs/
15
+ *.egg-info/
16
+ *.egg
17
+
18
+ # IDE
19
+ .idea/
20
+ .vscode/
21
+ *.swp
22
+ *.swo
23
+
24
+ # Local data
25
+ *.db
26
+ *.sqlite
27
+ *.sqlite3
28
+
29
+ # OS
30
+ .DS_Store
31
+ Thumbs.db
32
+
33
+ # Testing
34
+ .pytest_cache/
35
+ .coverage
36
+ htmlcov/
37
+
38
+ # Distribution
39
+ *.tar.gz
40
+ *.whl
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jim Steil
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,20 @@
1
+ .PHONY: run install clean
2
+
3
+ VENV := venv
4
+ PYTHON := $(VENV)/bin/python
5
+ PIP := $(VENV)/bin/pip
6
+
7
+ run: $(VENV)
8
+ $(PYTHON) -m mailbench
9
+
10
+ install: $(VENV)
11
+
12
+ $(VENV): requirements.txt
13
+ python3 -m venv $(VENV)
14
+ $(PIP) install -r requirements.txt
15
+ touch $(VENV)
16
+
17
+ clean:
18
+ rm -rf $(VENV)
19
+ rm -f mailbench/mailbench.db
20
+ find . -type d -name __pycache__ -exec rm -rf {} +
@@ -0,0 +1,93 @@
1
+ Metadata-Version: 2.4
2
+ Name: mailbench
3
+ Version: 0.3.4
4
+ Summary: A Python email client for Kerio Connect
5
+ Project-URL: Homepage, https://github.com/jpsteil/mailbench
6
+ Project-URL: Repository, https://github.com/jpsteil/mailbench
7
+ Project-URL: Issues, https://github.com/jpsteil/mailbench/issues
8
+ Author: Jim
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: client,email,gui,kerio,mail
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: X11 Applications
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Communications :: Email
22
+ Classifier: Topic :: Communications :: Email :: Email Clients (MUA)
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: pyside6>=6.5
25
+ Requires-Dist: requests>=2.28
26
+ Provides-Extra: dev
27
+ Requires-Dist: black>=23.0.0; extra == 'dev'
28
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
29
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
30
+ Provides-Extra: keyring
31
+ Requires-Dist: keyring>=24.0.0; extra == 'keyring'
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Mailbench
35
+
36
+ A desktop email client for Kerio Connect mail servers, built with Python and Tkinter.
37
+
38
+ ## Features
39
+
40
+ - **Multi-account support** - Connect to multiple Kerio Connect servers
41
+ - **3-pane layout** - Folders, message list, and preview pane
42
+ - **Dark/light themes** - Toggle between themes with Ctrl+D
43
+ - **Compose, Reply, Forward** - Full email composition with HTML support
44
+ - **Attachments** - View, download, and attach files
45
+ - **Address book integration** - Autocomplete from Kerio contacts and cached addresses
46
+ - **Local caching** - SQLite database for offline message access
47
+ - **Keyboard shortcuts** - Efficient navigation and actions
48
+ - **Zoom support** - Ctrl+scroll to adjust preview size
49
+
50
+ ## Requirements
51
+
52
+ - Python 3.10+
53
+ - Kerio Connect mail server with JSON-RPC API access
54
+
55
+ ## Installation
56
+
57
+ ```bash
58
+ # Clone the repository
59
+ git clone https://github.com/jpsteil/mailbench.git
60
+ cd mailbench
61
+
62
+ # Create virtual environment
63
+ python -m venv venv
64
+ source venv/bin/activate # On Windows: venv\Scripts\activate
65
+
66
+ # Install dependencies
67
+ pip install -e .
68
+ ```
69
+
70
+ ## Usage
71
+
72
+ ```bash
73
+ mailbench
74
+ ```
75
+
76
+ On first run, go to **Accounts > Add Account** to configure your Kerio Connect server.
77
+
78
+ ## Keyboard Shortcuts
79
+
80
+ | Shortcut | Action |
81
+ |----------|--------|
82
+ | Ctrl+N | New message |
83
+ | Ctrl+R | Reply |
84
+ | Ctrl+Shift+R | Reply All |
85
+ | Ctrl+F | Forward |
86
+ | Ctrl+D | Toggle dark mode |
87
+ | Ctrl+Scroll | Zoom preview |
88
+ | Delete | Delete message |
89
+ | Escape | Clear filter / Discard compose |
90
+
91
+ ## License
92
+
93
+ MIT License - see [LICENSE](LICENSE) file.
@@ -0,0 +1,60 @@
1
+ # Mailbench
2
+
3
+ A desktop email client for Kerio Connect mail servers, built with Python and Tkinter.
4
+
5
+ ## Features
6
+
7
+ - **Multi-account support** - Connect to multiple Kerio Connect servers
8
+ - **3-pane layout** - Folders, message list, and preview pane
9
+ - **Dark/light themes** - Toggle between themes with Ctrl+D
10
+ - **Compose, Reply, Forward** - Full email composition with HTML support
11
+ - **Attachments** - View, download, and attach files
12
+ - **Address book integration** - Autocomplete from Kerio contacts and cached addresses
13
+ - **Local caching** - SQLite database for offline message access
14
+ - **Keyboard shortcuts** - Efficient navigation and actions
15
+ - **Zoom support** - Ctrl+scroll to adjust preview size
16
+
17
+ ## Requirements
18
+
19
+ - Python 3.10+
20
+ - Kerio Connect mail server with JSON-RPC API access
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ # Clone the repository
26
+ git clone https://github.com/jpsteil/mailbench.git
27
+ cd mailbench
28
+
29
+ # Create virtual environment
30
+ python -m venv venv
31
+ source venv/bin/activate # On Windows: venv\Scripts\activate
32
+
33
+ # Install dependencies
34
+ pip install -e .
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```bash
40
+ mailbench
41
+ ```
42
+
43
+ On first run, go to **Accounts > Add Account** to configure your Kerio Connect server.
44
+
45
+ ## Keyboard Shortcuts
46
+
47
+ | Shortcut | Action |
48
+ |----------|--------|
49
+ | Ctrl+N | New message |
50
+ | Ctrl+R | Reply |
51
+ | Ctrl+Shift+R | Reply All |
52
+ | Ctrl+F | Forward |
53
+ | Ctrl+D | Toggle dark mode |
54
+ | Ctrl+Scroll | Zoom preview |
55
+ | Delete | Delete message |
56
+ | Escape | Clear filter / Discard compose |
57
+
58
+ ## License
59
+
60
+ MIT License - see [LICENSE](LICENSE) file.
@@ -0,0 +1,3 @@
1
+ """Mailbench - A Python email client for Kerio Connect."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,76 @@
1
+ """Entry point for mailbench."""
2
+
3
+ import sys
4
+
5
+
6
+ def check_pyside6():
7
+ """Check if PySide6 is available and provide installation instructions if not."""
8
+ try:
9
+ import PySide6
10
+ return True
11
+ except ImportError:
12
+ pass
13
+
14
+ import platform
15
+ system = platform.system().lower()
16
+
17
+ print("Error: PySide6 is not installed.")
18
+ print()
19
+ print("Mailbench requires PySide6 for its graphical interface.")
20
+ print()
21
+
22
+ if system == "linux":
23
+ print("To install PySide6:")
24
+ print(" pip install PySide6")
25
+ elif system == "darwin":
26
+ print("To install on macOS:")
27
+ print(" pip install PySide6")
28
+ elif system == "windows":
29
+ print("To install on Windows:")
30
+ print(" pip install PySide6")
31
+ else:
32
+ print("To install PySide6:")
33
+ print(" pip install PySide6")
34
+
35
+ print()
36
+ print("After installing, run mailbench again.")
37
+ return False
38
+
39
+
40
+ def main():
41
+ """Main entry point with argument handling."""
42
+ if len(sys.argv) > 1:
43
+ arg = sys.argv[1].lower()
44
+
45
+ if arg in ("--install-launcher", "--create-launcher"):
46
+ from mailbench.launcher import create_launcher
47
+ success = create_launcher()
48
+ sys.exit(0 if success else 1)
49
+
50
+ elif arg in ("--remove-launcher", "--uninstall-launcher"):
51
+ from mailbench.launcher import remove_launcher
52
+ success = remove_launcher()
53
+ sys.exit(0 if success else 1)
54
+
55
+ elif arg in ("--help", "-h"):
56
+ print("Mailbench - Python Email Client for Kerio Connect")
57
+ print()
58
+ print("Usage: mailbench [options]")
59
+ print()
60
+ print("Options:")
61
+ print(" --install-launcher Create a desktop launcher for this OS")
62
+ print(" --remove-launcher Remove the desktop launcher")
63
+ print(" --help, -h Show this help message")
64
+ print()
65
+ print("Run without arguments to start the application.")
66
+ sys.exit(0)
67
+
68
+ if not check_pyside6():
69
+ sys.exit(1)
70
+
71
+ from mailbench.app import main as app_main
72
+ app_main()
73
+
74
+
75
+ if __name__ == "__main__":
76
+ main()