{"size": 881, "ext": "js", "max_stars_repo_path": "sample/sample.js", "max_stars_repo_name": "Silver-birder/rMinc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "sample/sample.js", "max_issues_repo_name": "Silver-birder/rMinc", "max_issues_repo_issues_event_min_datetime": "2021-03-10T07:00:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T10:34:13.000Z", "max_forks_repo_path": "sample/sample.js", "max_forks_repo_name": "Silver-birder/rMinc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 27.53125, "max_line_length": 64, "alphanum_fraction": 0.6311010216}
function myFunction() {
    const user = new RMinc.User();
    const after = new Date('2019-11-01');
    const before = new Date('2019-12-01');
    const mail1 = new RMinc.TohoCinemasMailRule(before, after);
    const mail2 = new RMinc.AmazonMailRule(before, after);
    const mail3 = new RMinc.ShokutakubinMailRule(before, after);
    const mail4 = new YourFavoriteService(before, after);
    user.setMailRules([mail1, mail2, mail3, mail4]);
    user.fetchMails();
    user.doRMinc();
}

class YourFavoriteService extends RMinc.MailRule {
    constructor() {
        super();
        this.name = 'name';
        this.filteringKeyword = 'from:(shipment@service.com)';
    }

    extractLocation(body) {
        return 'location';
    }

    extractDateRange(body) {
        return {start: new Date(), end: new Date()}
    }

    extractTitle(body) {
        return 'title';
    }
}