GithubHelp home page GithubHelp logo

Comments (3)

gauteh avatar gauteh commented on May 17, 2024

from lieer.

impaktor avatar impaktor commented on May 17, 2024

Hi!

Thanks for reply. I've now been experimenting with this further and I
understand better what is going on, and I think all my 4 points above are OK
now. Just user error on my part (thus closing).

Have you checked Trash and All Mail

Right you are, they're in "All Mail", and the error was mine, as I think at
some point during my experimentation I must have removed the "inbox"-tag in notmuch and
didn't realize it's a 1:1 with gmail's "INBOX"-folder; which I now realize is
just a tag, and of course syncing tags is exactly what gmailieer does.

Specifically, I am/was hazy on how labels work in gmail, and never even noticed
there's an "All mail" in gmail.

  • Do you have several gmail accounts that could have gotten mixed up?

No, however, there are other parallel non-gmail accounts that I sync with mbsync, e.g:

~/.mail/gmail
~/.mail/work
~/.mail/other

...but problem solved now.

  • Did you start with a fresh account in notmuch? i.e: no e-mail from
    that account in your notmuch database on the first gmi pull?

Nope. In fact, I have a more general, gmail, question, you might
have pointer on:

1. Sent mail tag?

In notmuch the mails sent from gmail have the "sent" tag, but for me some have
a "[Gmail]/Sent Mail"-tag. I believe this comes from when I initially tried to
get gmail and mbsync to play nice, and in that process I mapped gmail's IMAP
folder "[Gmail]/Sent Mail" (linked to the "Sent Mail"-folder/tag in the web
interface) into a "sent/"-folder on my local machine. That worked in my
Wanderlust setup.
Now, I suspect the following:

1a. This isn't normal, all the "[Gmail]/Sent Mail"-tags should be "sent" (in notmuch).

1b. Thus, in the web version of gmail, I can remove the "[Gmail]/Sent Mail" label/tag.

1c. But the README seems to indicate it's not possible to push the "sent" tag?

2. Unread/inbox tags on sent mail

Right now, I think I need to sync twice, to get sent email downloaded, "inbox", "unread"-tags
removed, and then pushed back up again and shown properly in both notmuch and
gmail.com, and not shown as "unread" on either side.

I have in my notmuch config:

[new]
tags=inbox;unread;new;
ignore=*.json;

and a post-new hook:


notmuch tag -inbox tag:sent and tag:inbox and tag:new
notmuch tag -unread tag:sent and tag:unread and tag:new

# gmail arbitrarily marks mails as "important",
# note: not the same as "flagged". 
notmuch tag -important tag:important

# gmailieer needs the "new" tag initially, can no be removed: 
notmuch tag -new tag:new

When I used the fcc dir, notmuch ran this code:

(setq notmuch-fcc-dirs '(("work.com" . "\"work/Sent Items\" -unread -inbox")
                         ;;("gmail.com" . "\"gmail/Sent Mail\" "-unread -inbox") ;; using gmailieer
                         ("other" . "\"other/Sent\" -unread -inbox")))

Which was handy, as it removed the "unread" and "inbox" tags right when
sending the mail.

3. trash vs. delete?

I notice the default tag for thrashing messages in notmuch, is "deleted". Is
it possible to map "deleted" to be alias for "trash"?

Closing

If you have any thought on what I've written, I'd be interested in hearing them, but I'm closing this now, as the main "issue" has been clarified now. Thanks!

from lieer.

gauteh avatar gauteh commented on May 17, 2024

from lieer.

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.