Render Weekly Report File
Use “Render Weekly Report File” in Recued. Renders one week of your own warehouse into a dated markdown file on your disk: mail volume, the busiest senders, and the week's calendar.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (46 steps)
window
date_period
Apply date_period
since
date_parse
Parse window start as a date
until
date_parse
Parse window end as a date
week_label
date_format
Format as a date
week_end_label
date_format
Format as a date
run_day
date_period
Apply date_period
generated_on
date_format
Format as a date
mailbox_set
compare
Check if setting mail slug has data
mailbox_note
ternary
Apply ternary
messages_raw
core.mail.email.list
List mail email
skip: step.mailbox_set equal false
messages
default
Apply default
mail_stale
default
Apply default
mail_behind
all
Check if all conditions are true
mail_count
count
Count items in messages
unread_mail
filter
Filter by condition
unread_count
count
Count items in unread mail
attachment_mail
filter
Filter by condition
attachment_count
count
Count items in attachment mail
by_sender
group_by
Group by hot_fields.from
senders_sorted
sort
Sort by count
top_senders
slice
Take a subset of
sender_rows
map
Extract from each item
sender_body
join
Join items with "
"
events_raw
core.data.calendar.list
List data calendar
events
default
Apply default
cal_stale
default
Apply default
either_stale
any
Check if any of the conditions are true
source_note
ternary
Apply ternary
event_count
count
Count items in events
events_safe
map
Extract summary from each item
events_dated
map
Extract from each item
event_rows
map
Extract from each item
event_body
join
Join items with "
"
slug_ready
compare
Check if setting report slug has data
calendar_named
compare
Check if setting calendar slug has data
calendar_label
ternary
Apply ternary
mail_basis
ternary
Apply ternary
report_md
template
Generate text from a template
report_b64
encode_base64
Apply encode_base64
skip: step.slug_ready equal false
report_path
template
Generate text from a template
write_report
core.storage.file.write
Write storage file
skip: step.report_b64 is_null
written
core.storage.file.stat
Stat storage file
skip: step.write_report is_null
written_bytes
default
Apply default
report_state
ternary
Apply ternary
sender_table
to_table
Format results as a data table
card
to_summary
Format results as a summary card
▼
Output
summary
card
table
sender_table
json
events
json
by_sender
json
written
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
week
setting
=
last_week
mail slug
setting
=
[object Object]
report dir
setting
=
recued-reports
scan limit
setting
=
2000
event limit
setting
=
200
report slug
setting
=
report title
setting
=
Weekly report
calendar slug
setting
=
top sender limit
setting
=
10
Uses (4 operations)
Mail
List mail email
core.mail.email.list
Calendar
List data calendar
core.data.calendar.list
Files
Write storage file
core.storage.file.write
Files
Stat storage file
core.storage.file.stat
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.
What it's allowed to do
Read
Mail
core.mail.email.list
read-only
Read
Calendar
core.data.calendar.list
read-only
Write
Files
core.storage.file.write
external change
Read
Files
core.storage.file.stat
read-only