@remusao/thunderbird-msg-filters
Version:
Library to parse and generate thunderbird msg filters rules
21 lines • 805 B
TypeScript
type ActionNames = 'AddTag' | 'Change priority' | 'Copy to folder' | 'Custom' | 'Delete from Pop3 server' | 'Delete' | 'Fetch body from Pop3Server' | 'Forward' | 'Ignore subthread' | 'Ignore thread' | 'JunkScore' | 'Label' | 'Leave on Pop3 server' | 'Mark flagged' | 'Mark read' | 'Mark unread' | 'Move to folder' | 'Reply' | 'Stop execution' | 'Watch thread';
interface Action {
name: ActionNames;
value?: string;
}
interface Rule {
name: string;
enabled: 'yes' | 'no';
type: '17' | '145';
actions: Action[];
condition: string;
}
interface Rules {
version: '9';
logging: 'yes' | 'no';
rules: Rule[];
}
export declare function format(msgRules: Rules): string;
export declare function parse(msgRulesRaw: string): Rules;
export {};
//# sourceMappingURL=index.d.ts.map