---
title: "#이맥스 #이메일: mu4e mbsync - 지메일"
url: "https://notes.junghanacs.com/notes/20250415T120555"
author: "Junghan Kim"
date: "2025-04-15T12:05:00+09:00"
lastmod: "2025-04-15T12:05:00+09:00"
tags: ["bib","doomemacs"]
description: "mu4e와 mbsync로 지메일을 Emacs 안에서 다루는 설정을 정리한 노트이다."
---

> [!abstract] 이 노트에 대하여
> 
> Gmail을 mbsync와 mu4e, msmtp 조합으로 Emacs 안에 붙이는 과정을 정리한다. 메일도 텍스트 편집 워크플로우 안으로 가져오려는 시도가 담긴 실용 노트다.

## BIBLIOGRAPHY

- “Setting up Gmail in Doom Emacs Using Mbsync and Mu4e.” n.d. Accessed October 12, 2024. <https://www.erichgrunewald.com/posts/setting-up-gmail-in-doom-emacs-using-mbsync-and-mu4e/>.

## 히스토리

-   [2025-04-15 Tue 12:05] 할 때가 되었다.

## mu4e 아래 참고

[2024-10-13 Sun 05:49]

### Setting Up Gmail in Doom Emacs using mbsync and mu4e

([“Setting up Gmail in Doom Emacs Using Mbsync and Mu4e” n.d.](https://notes.junghanacs.com/notes/20250415T120555#citeproc_bib_item_1)) Texts on this and that.

### 설정

```elisp


;; add to $DOOMDIR/config.el
(after! mu4e
  (setq sendmail-program (executable-find "msmtp")
        send-mail-function #'smtpmail-send-it
        message-sendmail-f-is-evil t
        message-sendmail-extra-arguments '("--read-envelope-from")
        message-send-mail-function #'message-send-mail-with-sendmail))
```

```text
mu init --maildir ~/mail/gmail --my-address junghanacs@gmail.com
+-------------------+----------------------------------------------------+
| maildir           | /home/junghan/mail/gmail                           |
+-------------------+----------------------------------------------------+
| database-path     | /home/junghan/.cache/mu/xapian                     |
+-------------------+----------------------------------------------------+
| schema-version    | 466                                                |
+-------------------+----------------------------------------------------+
| max-message-size  | 100000000                                          |
+-------------------+----------------------------------------------------+
| batch-size        | 50000                                              |
+-------------------+----------------------------------------------------+
| created           | 2024년 10월 13일 (일) 오전 05시 57분 54초 |
+-------------------+----------------------------------------------------+
| personal-address  | junghanacs@gmail.com                               |
+-------------------+----------------------------------------------------+
| messages in store | 0                                                  |
+-------------------+----------------------------------------------------+
| last-change       | never                                              |
+-------------------+----------------------------------------------------+
| last-index        | never                                              |
+-------------------+----------------------------------------------------+
database created; use the 'index' command to fill/update it.
~ via  v20.14.0 via 🐍 v3.12.3
➜

```

### 옴니 워크플로우 완성하고 있다.

[2024-10-13 Sun 07:27]

## 관련노트

-   [#이맥스 #이메일 - notmuch](https://notes.junghanacs.com/notes/20240502T052530)
-   [#이맥스통합검색환경 #옴니유즈 #워크플로우 consult-omni](https://notes.junghanacs.com/notes/20241013T213018)
