// Name: Postmark Email Fetcher
// Description: Fetch emails from Postmark API with custom subject and time filters
// Author: zacjones93
import "@johnlindquist/kit"
const POSTMARK_API_KEY = await env("POSTMARK_API_KEY", {
hint: "Get your API key from https://postmarkapp.com/",
secret: true
})
const subject = await arg("Enter subject to search for:", {
placeholder: "e.g., Password Reset, Welcome, Order Confirmation",
hint: "Search will match emails containing this text in the subject"
})
const timeOptions = [
{ name: "Last 24 hours", value: 24 },
{ name: "Last 12 hours", value: 12 },
{ name: "Last 6 hours", value: 6 },