* how do i split my email view (AKA I got a new job)
@ 2019-03-10 16:19 Antoine Beaupré
2019-03-10 16:54 ` Ralph Seichter
2019-03-10 18:36 ` Jeremy Nickurak
0 siblings, 2 replies; 4+ messages in thread
From: Antoine Beaupré @ 2019-03-10 16:19 UTC (permalink / raw)
To: notmuch
Hello!
So I got a new job, and that means I have a new email address that
forwards to my regular mail spool. *Normally*, all that junk should end
up in a separate folder so I am tagging it all as "+work" (there are
quite a few corner cases which I handle individually, but from here on
we can assume there's a single tag to identify all that mail).
How do I stay sane during the weekends? There's a *lot* of junk coming
in that's polluting my "notmuch-hello" view. Here's a "screenshot":
Welcome to notmuch. You have 188 359 messages.
Saved searches: [edit]
67 inbox 259 sent 3 drafts 2 todo
Search: .
All tags: [hide]
1 attachment 27 logwatch 3 work-project
72 commit 13 nagios 9 work-admin
17 cron 124 rapports 3 trac
16 lists 147 work 151 unread
Hit `?' for context-sensitive help in any Notmuch screen.
Customize Notmuch or this page.
How can I make that "All tags" junk disappear? Or, more specifically,
how do I make it ignore that crowded "work" tag? Bonus points for
flipping back and forth outside of business hours and weekends. :)
I know I can make a billion saved searches to cover for all those
cases. But so far I've used a technique where I tag messages instead of
doing saved searches and it serves me well.
Thanks!
--
The most prudent course for any society is to start from the
assumption that the Internet should be fundamentally outside the
domain of capital.
- The Internet's Unholy Marriage to Capitalism
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do i split my email view (AKA I got a new job)
2019-03-10 16:19 how do i split my email view (AKA I got a new job) Antoine Beaupré
@ 2019-03-10 16:54 ` Ralph Seichter
2019-03-10 19:58 ` Antoine Beaupré
2019-03-10 18:36 ` Jeremy Nickurak
1 sibling, 1 reply; 4+ messages in thread
From: Ralph Seichter @ 2019-03-10 16:54 UTC (permalink / raw)
To: notmuch
* Antoine Beaupré:
> How can I make that "All tags" junk disappear?
If it bugs you that much, you can use the "this page" link in "Customize
Notmuch or this page".
-Ralph
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do i split my email view (AKA I got a new job)
2019-03-10 16:19 how do i split my email view (AKA I got a new job) Antoine Beaupré
2019-03-10 16:54 ` Ralph Seichter
@ 2019-03-10 18:36 ` Jeremy Nickurak
1 sibling, 0 replies; 4+ messages in thread
From: Jeremy Nickurak @ 2019-03-10 18:36 UTC (permalink / raw)
To: Antoine Beaupré; +Cc: Notmuch Mailing List
[-- Attachment #1: Type: text/plain, Size: 2790 bytes --]
If it were me, I'd be looking to do something to automatically use a
different configuration at different times of the week. One config would
look like whatever your configuration is, while the other would include the
'work' tag in your 'exclude_tags=' options, so your work email would be
invisible unless you explicitly went looking for it.
Off the top of my head, you could have 2 config files (automatically
created maybe), and you could either tweak the NOTMUCH_CONFIG environment
variable or a --config= option to select one or the other. You could also
look into emacs automation to change the notmuch-command variable to select
one configuration or the other.
On Sun, Mar 10, 2019 at 10:19 AM Antoine Beaupré <anarcat@orangeseeds.org>
wrote:
> Hello!
>
> So I got a new job, and that means I have a new email address that
> forwards to my regular mail spool. *Normally*, all that junk should end
> up in a separate folder so I am tagging it all as "+work" (there are
> quite a few corner cases which I handle individually, but from here on
> we can assume there's a single tag to identify all that mail).
>
> How do I stay sane during the weekends? There's a *lot* of junk coming
> in that's polluting my "notmuch-hello" view. Here's a "screenshot":
>
> Welcome to notmuch. You have 188 359 messages.
>
> Saved searches: [edit]
>
> 67 inbox 259 sent 3 drafts 2 todo
>
> Search:
> .
>
> All tags: [hide]
>
> 1 attachment 27 logwatch 3
> work-project
> 72 commit 13 nagios 9
> work-admin
> 17 cron 124 rapports 3 trac
> 16 lists 147 work 151 unread
>
> Hit `?' for context-sensitive help in any Notmuch screen.
> Customize Notmuch or this page.
>
> How can I make that "All tags" junk disappear? Or, more specifically,
> how do I make it ignore that crowded "work" tag? Bonus points for
> flipping back and forth outside of business hours and weekends. :)
>
> I know I can make a billion saved searches to cover for all those
> cases. But so far I've used a technique where I tag messages instead of
> doing saved searches and it serves me well.
>
> Thanks!
>
> --
> The most prudent course for any society is to start from the
> assumption that the Internet should be fundamentally outside the
> domain of capital.
> - The Internet's Unholy Marriage to Capitalism
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
>
[-- Attachment #2: Type: text/html, Size: 3694 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do i split my email view (AKA I got a new job)
2019-03-10 16:54 ` Ralph Seichter
@ 2019-03-10 19:58 ` Antoine Beaupré
0 siblings, 0 replies; 4+ messages in thread
From: Antoine Beaupré @ 2019-03-10 19:58 UTC (permalink / raw)
To: notmuch
On 2019-03-10 17:54:54, Ralph Seichter wrote:
> * Antoine Beaupré:
>
>> How can I make that "All tags" junk disappear?
>
> If it bugs you that much, you can use the "this page" link in "Customize
> Notmuch or this page".
Ooooh... I remember now! I digged in the source last time we chatted
about this in #notmuch. I did so again and found what I was looking for:
(setq notmuch-hello-tag-list-make-query "tag:unread and not tag:work")
Now I need to figure out how to make schedules in Emacs... :) It looks
like I need to do something with `run-at-time' or something to that
effect:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html#Timers
I also found out about the "midnight" mode, but that seems to support
only a single time trigger:
https://www.emacswiki.org/emacs/MidnightMode
I also found idle timers, but that seems irrelevant:
https://www.emacswiki.org/emacs/IdleTimers#toc2
Anyone else played with scheduling like this?
In any case, I guess just having a defun that flips that around would be
a good start. :) I'm thinking of something like:
(defun anarcat/notmuch-work-off ()
(interactive)
(setq notmuch-hello-tag-list-make-query "tag:unread and not tag:work")
(notmuch-refresh-this-buffer))
(defun anarcat/notmuch-work-on ()
(interactive)
(setq notmuch-hello-tag-list-make-query "tag:unread")
(notmuch-refresh-this-buffer))
That's actually two defun - and it looks rather silly, mayb there's a
way to make that a toggle somehow?
Anyways, does that look sane?
A.
--
When spider webs unite, they can tie up a lion.
- ethiopian proverb
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-10 19:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-10 16:19 how do i split my email view (AKA I got a new job) Antoine Beaupré
2019-03-10 16:54 ` Ralph Seichter
2019-03-10 19:58 ` Antoine Beaupré
2019-03-10 18:36 ` Jeremy Nickurak
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).