You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postsack/postsack-native
Benedikt Terhechte 9bfa5551a0
Maildir support (#35)
* Initial Maildir importer code

* Copied bluebird75 maildir test data into the repository

The data comes from
https://github.com/bluebird75/maildir2mbox

* Allow already-parsed emails as importer input

* Switched to mail-parser

It is a littlebit slower but brings some advantages:

- It parses all my emails without a hitch. Which means there's no need
  for a custom fork anymore.
- It supports emails both with CRLF and LF. Maildir seems to like storing
  mails in LF so the former email-parser failed all those mails.

* Fix bug when selecting to_* fields

* Disable Windows Support for maildir at it is not supported by the crate

* Added maildir test

* Should also not use maildir in the windows Cargo.toml

* What a typo

* Maybe this does the trick

* Forgot one
2 years ago
..
icons Removed postsack to postsack-native 3 years ago
src Removed postsack to postsack-native 3 years ago
tests Maildir support (#35) 2 years ago
.gitignore Removed postsack to postsack-native 3 years ago
Cargo.lock Removed postsack to postsack-native 3 years ago
Cargo.toml Fix macOS version (#30) 2 years ago
Readme.md Added Arch and NixOS install instructions (#33) 2 years ago
build_linux.sh Added documentation 3 years ago
build_mac.sh Fix macOS version (#30) 2 years ago
build_windows.bat Updated deployment github action and documentation 3 years ago
shell.nix Added Arch and NixOS install instructions (#33) 2 years ago

Readme.md

Postsack Native

This crate embeds ps-core, ps-database and ps-importer to build a native version of Postsack for macOS, Linux and Windows.

A native version can be run via cargo run or cargo build, however a proper application requires installing cargo bundle:

cargo install cargo-bundle

macOS

For macOS, there is a script that will build a fat binary (with aarch64 and x86_64) into a macOS Postsack.app bundle. Just running cargo bundle --release will also create an app bundle, but it will only contain the host architecture.

./build_mac.sh

Linux

Depending on your Linux installation, you will need to install a couple of dependencies:

Fedora Based

sudo dnf install @development-tools glib cairo-devel pango-devel gdk-pixbux2-devel atk-devel gtk3 gtk3-devel libsqlite3x-devel

Ubuntu based

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libsqlite3-dev

Arch based

Thanks to Emilio Reggi, there's an Arch package here

NixOS

There's a shell.nix in this directory. It can be used to run Postsack on NixOS via:

> nix-shell shell.nix
$ cargo run

Building

./build_linux.sh

Windows

Building for Windows works but doesn't create a proper application (e.g. with an icon) and also doesn't create a proper installer.

Running build_windows.bat therefore will currently just run cargo build --release

build_windows.bat