UNPKG

a-mail-signature

Version:

Generate and modify Apple Mail E-Mail signatures

42 lines (41 loc) 1.81 kB
/** * determine the current used base path * for storing mail signatures in apple mail */ export declare const getBasePath: (mailDir?: string | undefined) => string; /** * add a signature entry to the file containing all signatures * @param uuid the uuid for the signature to be added */ export declare const addSignatureToAllSignatures: (uuid: string, name: string, mailDir?: string | undefined) => void; /** * Promt the user to select the account to which the signature will be added * @param uuid the uuid for the signature to be added */ export declare const addSignatureToAccount: (uuid: string, mailDir?: string | undefined) => Promise<void>; /** * create the mail signature file * @param uuid the uuid for the signature to be added * @param templateFilePath the template file to be used */ export declare const createMailSignature: (uuid: string, templateFilePath: string, update?: boolean, mailDir?: string | undefined) => Promise<void>; /** * Find an existing signature by it's name * @param name the signature name */ export declare const getSignatureIdByName: (name: string, mailDir?: string | undefined) => string; /** * Delete an existing mail signature * @param name the name for the signature that should be deleted */ export declare const removeSignatureFromAllSignatures: (name: string, mailDir?: string | undefined) => string; /** * remove an existing mail signature file * @param uuid the uuid for the signature to be removed */ export declare const removeMailSignature: (uuid: string, mailDir?: string | undefined) => void; /** * Promt the user to select the account to which the signature will be added * @param uuid the uuid for the signature to be added */ export declare const removeSignatureFromAccount: (uuid: string, mailDir?: string | undefined) => void;