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 (39 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
run_day
date_period
Apply date_period
generated_on
date_format
Format as a date
messages_raw
?
messages
default
Apply default
mail_stale
default
Apply default
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
?
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 hot_fields.summary from each item
events_dated
map
Extract hot_fields.start_at 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
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
?
skip: step.report_b64 is_null
written
?
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
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
week
setting
=
last_week
mail slug
setting
=
primary
report dir
setting
=
recued-reports
scan limit
setting
=
2000
event limit
setting
=
200
report slug
setting
=
report title
setting
=
Weekly report
calendar slug
setting
=
primary
top sender limit
setting
=
10
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.