{"id":16696665,"url":"https://github.com/zenithalhourlyrate/muttrc","last_synced_at":"2025-08-02T15:33:03.072Z","repository":{"id":130587203,"uuid":"302889399","full_name":"ZenithalHourlyRate/muttrc","owner":"ZenithalHourlyRate","description":"One possible Mutt configuration","archived":false,"fork":false,"pushed_at":"2024-04-19T10:41:13.000Z","size":261,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T03:11:28.031Z","etag":null,"topics":["getmail","msmtp","mutt","muttrc"],"latest_commit_sha":null,"homepage":"https://blog.zenithal.me/2020/10/11/Mutt-%E9%85%8D%E7%BD%AE%EF%BC%9A%E4%B8%80%E7%A7%8D%E5%AE%9E%E8%B7%B5%E7%9A%84%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F/","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZenithalHourlyRate.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":"2020-10-10T11:46:08.000Z","updated_at":"2024-06-17T04:51:49.000Z","dependencies_parsed_at":"2024-11-19T18:44:00.495Z","dependency_job_id":"a6e4657f-9d65-4709-84e9-dfe3ea9e4460","html_url":"https://github.com/ZenithalHourlyRate/muttrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZenithalHourlyRate/muttrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenithalHourlyRate%2Fmuttrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenithalHourlyRate%2Fmuttrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenithalHourlyRate%2Fmuttrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenithalHourlyRate%2Fmuttrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZenithalHourlyRate","download_url":"https://codeload.github.com/ZenithalHourlyRate/muttrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenithalHourlyRate%2Fmuttrc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268410747,"owners_count":24246066,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["getmail","msmtp","mutt","muttrc"],"created_at":"2024-10-12T17:44:30.259Z","updated_at":"2025-08-02T15:33:03.021Z","avatar_url":"https://github.com/ZenithalHourlyRate.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mutt 配置\n\n处理邮件，难。\n\n命令行处理邮件，更难。\n\n但是能够在命令行中完成大部分工作，爽。\n\n但是能够亲手处理（mangle）大部分细节，更爽。\n\n## Tunight\n\n本配置参加过一次 Tunight，讲稿和相关链接在 slides 文件夹中。\n\n## 架构\n\n本配置中，我们主要使用了三个程序，分别完成收、处理、发邮件的过程。尽管 Mutt 本身可以完成全过程，但本文不使用该方式。\n\n本文使用 `getmail` 获取邮件，储存在 Maildir 中（可以参考 `procmail`，使得被传递前进行一些处理）；`mutt` 读取 Maildir 中的邮件，根据 muttrc 作出相应处理；当在 `mutt` 中写好邮件时，`mutt` 通过调用 `sendmail`（在我们的系统中链接被符号链接到 `msmtp` 上） 发送邮件。\n\n由于三个程序之间的接口相当标准，您可以自由更换其中的部件。\n\n三个软件的配置方式请参考其对应文件夹。\n\n## 环境变量\n\n我们可以设置这样一些环境变量，使得方便我们的使用。\n\n```bash\nexport MAIL=/path/to/your/maildir\nexport EDITOR=your favorite editor\n```\n\n在设置了 `MAIL` 变量时，zsh 等 shell 会检查 `MAILCHECK` 的环境变量，以检查 `MAIL` 是否改动，若有改动，会在终端中提醒 `You have new mail.`\n\n### 一些假设\n\n我们会在配置文件中硬编码一些环境变量，所以我们作出以下假设，这些假设在所有配置中起作用。若您的部署与我不同，请在相应文件夹中找到相应字符串进行更改。\n\n```bash\nexport MAIL=~/M/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenithalhourlyrate%2Fmuttrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenithalhourlyrate%2Fmuttrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenithalhourlyrate%2Fmuttrc/lists"}