Run a reply check: plan, read, mark, finish
freeapply_check_repliesCheck replies to job applications by reading your mailbox, recording each found email outcome, and marking messages as configured.
Instructions
Runs one email reply check (the freeapply-replies procedure), always beginning with action start, and, when the user saved an email login in Settings, reads and marks their mailbox itself. Each email found is recorded with freeapply_record_outcome. Use: start first; then read (start's mail.reader freeapply) or the Gmail connector (connector); mark after recording each email read returned; finish once everything found is recorded. Behavior: start: read-only, repeatable. read: signs in with the app password kept on this computer (you never see it), returns matching emails, changes nothing. mark: stars and/or labels one email as the user chose in Settings. finish: sets the last check to now, so the next check reads only newer email: only after recording everything found. Returns: start (the plan) {since, gmail (the user's mail settings: action none|star|label|star_and_label, label_name, ...), mail {reader: freeapply|connector, address}, applied [{job_id, company, title, submitted_at}], known_message_ids (already recorded)}. read {emails: [{gmail_message_id, gmail_thread_id, sender, subject, received_at, text}] newest first, already-recorded left out, count}. mark {mail_action} (for freeapply_record_outcome). finish {last_check}. Errors: an action other than start, read, mark or finish; read or mark without a saved email login; the mail server refusing the login.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Required for mark: the outcome you recorded for the email. | |
| action | Yes | start (always first): the plan; read: the mailbox; mark: star or label one email; finish (always last): the check is done. | |
| gmail_message_id | No | Required for mark: the email's id, from read. |