Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archiving message isn't working as intended #396

Closed
manishrjain opened this issue Sep 7, 2017 · 6 comments
Closed

Archiving message isn't working as intended #396

manishrjain opened this issue Sep 7, 2017 · 6 comments
Labels

Comments

@manishrjain
Copy link

I have the following poll.sh script:

#! /bin/bash

if ! ping -w 1 -W 1 -c 1 mail.google.com; then
  echo "No internet connection"
  exit
fi

echo "Running imapfilter"
/usr/bin/imapfilter

echo "Retrieving mail"
/usr/bin/offlineimap

notmuch new

notmuch tag --batch <<EOF
  +work +inbox tag:new and folder:work/inbox
  +work -inbox +github tag:new and folder:work/github
  +personal +inbox tag:new and folder:personal/inbox
EOF

After I read a thread/message, pressing a shows the inbox tag as removed; but on the next poll, the messages shows up again in the inbox as new, inbox. So far, I haven't modified astroid's views, so I'm just using the default functionality (the only mod is the poll script).

Any ideas what's going on?

@gauteh
Copy link
Member

gauteh commented Sep 7, 2017 via email

@gauteh gauteh added the question label Sep 7, 2017
@manishrjain
Copy link
Author

Yes, I removed the new tag -- I had done it elsewhere and forgot to update it here. Here's the updated poll.sh


if ! ping -w 1 -W 1 -c 1 mail.google.com; then
  echo "No internet connection"
  exit
fi

echo "Running imapfilter"
# /usr/bin/imapfilter

echo "Retrieving mail"
/usr/bin/offlineimap

notmuch new

notmuch tag --batch <<EOF
  +work +inbox tag:new and folder:work/inbox
  +work -inbox +github tag:new and folder:work/github
  +personal +inbox tag:new and folder:personal/inbox
  -new tag:new
EOF

But, this still doesn't do the sync from Astroid -> Gmail (via notmuch). I can see the inbox tag removed via astroid interface, but just somehow doesn't make it to Gmail. I have set notmuch sync flag to true.

@gauteh
Copy link
Member

gauteh commented Sep 7, 2017 via email

@gauteh
Copy link
Member

gauteh commented Sep 7, 2017

@manishrjain
Copy link
Author

Ah.. Ok. Would be good to put this in documentation -- that using offlineimap won't sync your changes back to Gmail.

I'll try out gmailieer. Thanks!

@gauteh
Copy link
Member

gauteh commented Sep 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants