Giter Club home page Giter Club logo

Comments (3)

GuillaumeSeren avatar GuillaumeSeren commented on July 23, 2024 2

Hey,
sorry to be late.

I do the same, so yes it can be done, it is not synchronous so new mails are not tagged / sorted etc,
but it is good to have the imap storage to be close that the notmuch state.

Before each sync I use the MailMover to move the according to some rules like:

# Perso
Perso/INBOX = 'tag:spam':Perso/spam 'tag:sent':Perso/sent 'not tag:inbox':Perso/archive 'tag:trash':Perso/trash
Perso/archive = 'tag:inbox':Perso/INBOX 'tag:spam':Perso/spam 'tag:sent':Perso/sent 'tag:trash':Perso/trash
Perso/spam = 'NOT tag:spam':Perso/INBOX 'tag:sent':Perso/sent 'tag:trash':Perso/trash
Perso/sent = 'NOT tag:sent':Perso/INBOX 'tag:spam':Perso/spam 'tag:trash':Perso/trash
Perso/trash = 'tag:inbox':Perso/INBOX 'tag:spam and not tag:trash':Perso/spam 'tag:sent and not tag:trash':Perso/sent

from afew.

benmezger avatar benmezger commented on July 23, 2024 1

@ploum I believe you might need a few more steps. I solved this with Gmail by using the following approach:

  1. run afew with -m flag before running mbsync
  2. Run mbsync, then tag all your email
  3. Run afew with the -m flag again, and ideally, before that, tag all your emails again.

See: https://github.com/benmezger/dotfiles/blob/main/dot_config/afew/config

Ideally, you need to filter for the folder instead. If the email is in the deleted folder, for example, remove all other tags and keep the +deleted flag.

from afew.

agenbite avatar agenbite commented on July 23, 2024

As I said in #317 for those of us that do have an intricate folder tree, it'd be nice to have an afew solution which does not involve listing all the folders. Thanks for contributing, though.

from afew.

Related Issues (20)

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.