sup-tweak-labels: Changed labels not reflected in sup

12 views
Skip to first unread message

Robert Winkler

unread,
Jul 8, 2020, 1:17:32 PM7/8/20
to The Sup email client
Hi, I try to homogenize the use of labels from my different accounts. As a first step, I wanted to remove all unnecessary labels and inbox by:

/usr/local/sup/bin/sup-tweak-labels --all-sources -r gmail_archive, inbox_archive, sentg_archive, senti_archive, sentm_archive, inbox
Found 6000 documents across 18 sources. Scanning...
Scanned 4000 / 6000 messages and changed 4000.
Optimizing index...
[2020-07-08 09:06:11 -0500] Flushing Xapian updates to disk. This may take a while...

looks fine. Well, I run this a few times (I got >20k mails), until I get:

Found 0 documents across 18 sources. Scanning...
Scanned 0 / 0 messages and changed 0.
[2020-07-08 09:07:11 -0500] Flushing Xapian updates to disk. This may take a while...

and
sup-sync

Now, my inbox in sup should be empty, isn't it?

Unfortunately, there are still 21635 messages in index.

Anything I am missing?

Best regards, 

Robert 

Iain Parris

unread,
Jul 8, 2020, 2:43:32 PM7/8/20
to Robert Winkler, The Sup email client
Hi Robert,

Excerpts from Robert Winkler's message of 2020-07-08 10:17:32 -0700:
> Now, my inbox in sup should be empty, isn't it?
>
> Unfortunately, there are still 21635 messages in index.
>
> Anything I am missing?

There's a distinction between:

- "in index" - This is the total number of messages that Sup knows
about, i.e., all messages that have been indexed by Xapian. This is
expected to be a very big, and usually ever-increasing, number. :-)

- "in inbox" - Messages with the special label "Inbox". These will
appear in the "index-mode" buffer (the default buffer shown when you
launch sup).

To see some very approximate counts for messages in each label, type "L"
(capital-L) in index-mode, which will prompt "Show threads with label
(enter for listing)" - then press enter without specifying a label.
Normal labels are shown, as are the special labels (e.g., "Inbox").

Kind regards,
Iain

Iain Parris

unread,
Jul 8, 2020, 5:51:27 PM7/8/20
to Robert Winkler, sup...@googlegroups.com
Hi Robert,

Excerpts from Robert Winkler's message of 2020-07-08 14:44:09 -0500:
> Thanks for this explanation. However, there are still 21,400 mails with
> the inbox label.
>
> Somehow, the tweaks operation had no visible effect. Is there any
> additional step necessary after removing the labels?

There should be no additional steps necessary - "sup-tweak-labels"
should be all that's needed.

I think that I've spotted the problem. The comma-separated list for the
"-r" (--remove) parameter can't have any spaces between the label names.

Please could you try this instead (spaces removed):

/usr/local/sup/bin/sup-tweak-labels --all-sources -r gmail_archive,inbox_archive,sentg_archive,senti_archive,sentm_archive,inbox

Kind regards,
Iain

Robert Winkler

unread,
Jul 8, 2020, 6:42:43 PM7/8/20
to The Sup email client
Excellent, you were completely right, Iain!

For the first time in about decade had inbox ;-).

Best regards, 

Robert

Iain Parris

unread,
Jul 8, 2020, 7:06:25 PM7/8/20
to supmua
Excerpts from Robert Winkler's message of 2020-07-08 15:42:42 -0700:
> Excellent, you were completely right, Iain!
>
> For the first time in about a decade I had a 0 inbox ;-).

That's great! It's probably been the best part of a decade for me too
since I was at Inbox Zero. Maybe I should also run sup-tweak-labels. :-)

Kind regards,
Iain
Reply all
Reply to author
Forward
0 new messages