export function buildMailHeaders(opts: {
  fromAddress: string;
  sesConfigurationSet: string | undefined;
}): Record<string, string> {
  const headers: Record<string, string> = {
    "List-Unsubscribe": `<mailto:${opts.fromAddress}>`,
  };
  if (opts.sesConfigurationSet) {
    headers["X-SES-CONFIGURATION-SET"] = opts.sesConfigurationSet;
  }
  return headers;
}
