potiuk opened a new pull request, #14:
URL: https://github.com/apache/comdev/pull/14

   Closes #9.
   
   In `quick` mode, PonyMail's `/api/stats.lua` returns email objects without 
`subject`/`from`/`id`, so `search_list`'s emails loop rendered each entry as:
   
   ```
   - **undefined**
     From: undefined | Date: 2026-05-15 | ID: undefined
   ```
   
   `quick` is documented as **stats-only** (and `emails_only` exists for email 
summaries), so this skips the emails section entirely when `quick=true`. The 
`subject`/`from`/`id` fields are also guarded with fallbacks (`(no subject)`, 
`(unknown sender)`, `(no id)`) so a sparse entry can never render as 
`undefined`.
   
   **Verified live** against `[email protected]` (the exact repro from 
the issue):
   
   - `quick=true` → now returns stats only (`Hits: 76`, archive range), no 
broken emails section.
   - `emails_only=true` → still renders populated subjects, senders, and IDs.
   
   Tests: 43/43 pass; prek clean.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to