{"id":22742216,"url":"https://github.com/heitang/mailcat","last_synced_at":"2025-04-14T07:52:27.100Z","repository":{"id":43708612,"uuid":"383149163","full_name":"HeiTang/MailCat","owner":"HeiTang","description":"Auto Gmail Rules Manager","archived":false,"fork":false,"pushed_at":"2025-02-25T15:58:23.000Z","size":879,"stargazers_count":20,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T02:07:05.340Z","etag":null,"topics":["apps-script","gmail","google-apps-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HeiTang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-05T13:23:29.000Z","updated_at":"2025-02-25T15:58:28.000Z","dependencies_parsed_at":"2024-08-04T15:30:17.968Z","dependency_job_id":null,"html_url":"https://github.com/HeiTang/MailCat","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeiTang%2FMailCat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeiTang%2FMailCat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeiTang%2FMailCat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeiTang%2FMailCat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeiTang","download_url":"https://codeload.github.com/HeiTang/MailCat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844080,"owners_count":21170486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apps-script","gmail","google-apps-script"],"created_at":"2024-12-11T00:35:15.045Z","updated_at":"2025-04-14T07:52:27.088Z","avatar_url":"https://github.com/HeiTang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eMailCat\u003c/h1\u003e\n  \n  \u003ca href=\"https://github.com/HeiTang/MailCat/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/HeiTang/MailCat?color=orange\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/HeiTang/MailCat/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/HeiTang/MailCat?color=brightgreen\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/HeiTang/MailCat\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/HeiTang/MailCat\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/HeiTang/MailCat\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/HeiTang/MailCat?color=ff69b4\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/HeiTang/MailCat/main/demo/page.png\"\u003e\n  \u003cp\u003e- - -\u003c/p\u003e\n  \u003cp\u003e\u003ci\u003e“ Gmail 自動化管理工具！ ”\u003c/i\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n## 說明\n\nMailCat 是一個以 Google Apps Script 開發的一套規則管理器。不同於以往需要使用者自行在 Gmail 設定中添加的篩選器，MailCat ~~直接讓你複製貼上就搞定~~，適合擁有多家網路銀行帳戶的人。\n\n## 功能\n\n### 1. 標記銀行/電子支付信件 🔖\n\n- 目前支援：\n  - 銀行\n    - `007 第一銀行`  \n    - `008 華南銀行`\n    - `009 彰化銀行`\n    - `012 富邦銀行`\n    - `013 國泰世華`\n    - `048 王道銀行`\n    - `053 台中銀行`\n    - `081 匯豐銀行`\n    - `108 陽信銀行`\n    - `700 中華郵政`\n    - `803 聯邦銀行`\n    - `805 遠東銀行`\n    - `807 永豐銀行`\n    - `808 玉山銀行`\n    - `810 星展銀行`\n    - `812 台新銀行`\n    - `822 中國信託`\n    - `823 將來銀行`\n    - `824 連線銀行`\n  - 電子支付\n    - `391 iPASS MONEY`\n    - `397 歐付寶`\n  - 第三方支付\n    - `000 PayPal`\n\n### 2. 標記特定信件 🔖\n\n- 銀行信件分成三類：\n  - `0.登入通知`\n  - `1.交易通知`\n  - `2.電子帳單`\n\n### 3. 定時刪除信件 ⏳\n\n- 主要針對登入通知、~~驗證信~~的信件。\n- 使用者可以決定信件要在多少天後自動刪除。\n\n### 4. 自動封存信件 🗃️\n\n- 主要針對登入通知、交易通知的信件。\n- MailCat 會將已讀的信件進行封存。\n\n### 5. 備份附件 ☁️\n\n- 主要針對電子帳單的信件。\n- MailCat 會將資料夾建立在 Google Drive 的根目錄下。\n\n## 使用方法\n\n1. 登入 Google 帳戶並且開啟 [Apps Script](https://script.google.com/home/start) 頁面。\n\n2. 建立新專案，然後將 [`main.gs`](https://github.com/HeiTang/MailCat/blob/main/main.gs) 和 [`bank.gs`](https://github.com/HeiTang/MailCat/blob/main/bank.gs) 檔案複製進去並存檔。\n\n3. 在 `bank.gs` 中的 `BankList_Own` 中填入需管理的銀行代碼（請參考上述所支援銀行）。\n\n   範例：\n\n   ```\n   var BankList_Own = ['008', '013', '803', '805', '807', '812', '822', '824'];\n   ```\n\n4. 選擇「觸發條件」點選「新增觸發條件」。\n\n   |    執行的功能    | 部署作業 | 活動來源 | 時間型觸發條件類型 |    小時間隔    |\n   | :--------------: | :------: | :------: | :----------------: | :------------: |\n   |    Bank_Label    |   上端   | 時間驅動 |     小時計時器     |     每小時     |\n   | Bank_AutoRemove  |   上端   | 時間驅動 |      日計時器      | 午夜到上午一點 |\n   | Bank_AutoArchive |   上端   | 時間驅動 |     小時計時器     |     每小時     |\n   |  Bank_AutoSave   |   上端   | 時間驅動 |      日計時器      | 午夜到上午一點 |\n\n   \u003e 參考設定，可自行調整。\n\n5. 如果尚未支援您的銀行，歡迎來發個 PR ~(=^‥^)/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheitang%2Fmailcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheitang%2Fmailcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheitang%2Fmailcat/lists"}