#qt #viewer #qml #imap #proof-of-concept #writting

app mailmodel

A proof-of-concept mail viewer writting with Qt using QML

5 releases

Uses old Rust 2015

0.1.5 Oct 29, 2018
0.1.4 Oct 9, 2018
0.1.2 Sep 24, 2018

#263 in Email

AGPL-3.0-or-later

95KB
2.5K SLoC

Rust 2K SLoC // 0.0% comments QML 553 SLoC C++ 36 SLoC // 0.3% comments

Simple mail viewer using Rust Qt Binding Generator

Compilation

Install cmake, rustc, cargo, Qt, and make or ninja.

cd mailmodel
mkdir build
cd build
cmake -GNinja ..
ninja

Running the progam

Create a configuration file for MailDir or IMAP.

{
    "MailDir": {
        "path": "/home/user/mail"
    }
}
{
    "IMAP": {
        "domain": "imap.electronmail.org",
        "username": "username",
        "password": "v3ry53cur3",
        "port": 993,
        "ssl": true
    }
}
./mailmodel config.json

Development tip

Changing the bindings

If you want to change bindings.json, Rust Qt Binding Generator should be installed.

Testing with IMAP

To try mail commands on the command-line connect to an IMAP server like so: openssl s_client -connect example.com:993

Dependencies

~13–26MB
~404K SLoC