# Postal-mime - 브라우저 및 서버리스용 이메일 파싱 라이브러리

> Clean Markdown view of GeekNews topic #18841. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=18841](https://news.hada.io/topic?id=18841)
- GeekNews Markdown: [https://news.hada.io/topic/18841.md](https://news.hada.io/topic/18841.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2025-01-22T09:30:03+09:00
- Updated: 2025-01-22T09:30:03+09:00
- Original source: [github.com/postalsys](https://github.com/postalsys/postal-mime)
- Points: 10
- Comments: 0

## Summary

Postal-mime은 브라우저 환경과 서버리스 함수에서 동작하는 이메일 파싱 라이브러리로, RFC822 이메일 메시지를 구조화된 객체로 파싱합니다. 이 라이브러리는 이메일의 헤더, 수신자, 첨부파일 등의 정보를 Promise 형태로 반환하며, 다양한 이메일 관련 정보를 포함합니다. 이 라이브러리는 EmailEngine 개발팀에 의해 만들어졌습니다.

## Topic Body

- 브라우저 환경(웹워커 포함) 및 서버리스 함수(Cloudflare Email Workers 처럼)에서 동작   
- RFC822 이메일 메시지를 읽어서 헤더/수신자/첨부파일등의 객체로 구성된 구조체로 파싱   
- `PostalMime.parse(email, options) -> Promise&lt;ParsedEmail&gt;`  
  - 구조화 객체를 Promise로 리턴함   
  - 모든 헤더의 키/밸류   
  - from, sender 의 이름/이메일 주소   
  - deliveredTo, returnPath   
  - to, cc, bcc, replyTo   
  - messageId, inReplyTo, references  
  - date : 전송일자의 ISO8601 포맷  
  - html  
  - text   
  - 첨부파일 : 파일이름, mimeType, disposition, related(인라인 이미지일경우 true), contentId, content, encoding   
- [EmailEngine - IMAP/SMTP를 REST API로 접근하는 오픈소스](https://news.hada.io/topic?id=4855) 개발팀이 만든 것

## Comments



_No public comments on this page._
