FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matcha/plugins/thread_tracker.lua at master · floatpane/matcha · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
floatpane
/
matcha
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
82
Star
1.1k
Code
Issues
53
Pull requests
24
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
matcha
/
plugins
/
thread_tracker.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (14 loc) · 514 Bytes
Breadcrumbs
matcha
/
plugins
/
thread_tracker.lua
Copy path
File metadata and controls
17 lines (14 loc) · 514 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--
thread_tracker.lua
--
Tracks how many replies and forwards you receive per session.
local
matcha
=
require
(
"
matcha
"
)
local
replies
=
0
local
forwards
=
0
matcha
.
on
(
"
email_received
"
,
function
(
email
)
local
subj
=
email
.
subject
:
lower
()
if
subj
:
match
(
"
^re:
"
)
or
subj
:
match
(
"
^re%[%d+%]:
"
)
then
replies
=
replies
+
1
elseif
subj
:
match
(
"
^fwd:
"
)
or
subj
:
match
(
"
^fw:
"
)
then
forwards
=
forwards
+
1
end
matcha
.
set_status
(
"
inbox
"
,
replies
..
"
replies,
"
..
forwards
..
"
fwd
"
)
end
)
Back
|
FazBrowse Home
|
New Git URL