Giter Site home page Giter Site logo

matteogaetzner / mailsync-daemon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 46 KB

This daemon periodically runs mbsync to synchronize local copies of emails with their remote counterparts.

License: GNU General Public License v2.0

Python 86.11% Shell 13.89%

mailsync-daemon's Introduction

Purpose

Neomutt is an awesome terminal email client. Unfortunately I couldn't find a solution, which allowed me to enter a single master password, to enable mailbox synchronization for the whole session, without saving the mailbox passwords as plain text in a configuration file, or caching gpg credentials via the gpg agent. I therefore modified isync to take credentials from stdin, and wrote a custom daemon that feeds in the necessary credentials.

Installation

This daemon has been tested with python 3.10.3 on Arch Linux.

To install dependencies, run:

pip install python-gnupg daemonize systemd-python

To set up Neomutt and offline email access with it, I recommend you to check out this fantastic project https://github.com/LukeSmithxyz/mutt-wizard.

You will need a modified version of mbsync (isync) for this daemon to work, because the daemon relies on being able to pass credentials through stdin. The official version (at least on arch linux) doesn't support that.

To install the compatible mbsync (isync) version, run:

git clone [email protected]:MatteoGaetzner/isync-with-cli-passwords.git
cd isync-with-cli-passwords

./autogen.sh 
./configure
make
sudo make install

Additionally make sure that:

  1. You have not specified Pass or PassCmd in your mbsyncrc configuration file.

  2. You have all required, with gnupg encrypted, mailbox passwords saved at the same location, e.g. ~/.password-store/.

Usage

Run:

./mailsync_daemon.py --quiet [options]

For an overview regarding the available options, run:

./mailsync_daemon.py -h

Licensing

This daemon periodically runs mbsync to synchronize local copies of emails with their remote counterparts. Copyright © 2022 Matteo Gätzner [email protected]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.

mailsync-daemon's People

Contributors

matteogaetzner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.