-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneomutt1.lua
More file actions
26 lines (23 loc) · 851 Bytes
/
neomutt1.lua
File metadata and controls
26 lines (23 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local inspect = require("inspect/inspect")
local n = neomutt
print()
print("________________________________________")
print(os.date("%Y-%m-%d %H:%M:%S"))
-- log(LOG_DEBUG, inspect(a))
log(LOG_DEBUG, "NeoMutt: %s (%d Accounts)", n, n:num_accounts())
-- print("NeoMutt:", n, "(" .. n:num_accounts() .. " Accounts)")
for a in n:accounts() do
-- log(LOG_DEBUG, inspect(a))
log(LOG_DEBUG, " Account: %s (%d Mailboxes)", a, a:num_mailboxes())
-- print(" Account:", a, "(" .. a:num_mailboxes() .. " Mailboxes)")
for m in a:mailboxes() do
-- log(LOG_DEBUG, inspect(m))
log(LOG_DEBUG, " Mailbox: %s (%d Emails)", m, m:num_emails())
-- print(" Mailbox:", m, "(" .. m:num_emails() .. " Emails)")
for e in m:emails() do
-- log(LOG_DEBUG, inspect(e))
log(LOG_DEBUG, " Email: %s", e)
-- print(" Email:", e)
end
end
end