这可能是一个微不足道的问题,但我无法在任何地方找到答案。
我需要编写一个脚本,以字符串形式接收整个 MIME 消息,如下所示:
From: Jerry Peek <jerry@ora.com>
To: mh-users@ics.uci.edu
Subject: New edition of "MH & xmh" covers MIME and MH-E
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa0"
Content-ID: <1283.780402430.1@ora.com>
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <1283.780402430.2@ora.com>
We've just released the new third edition of "MH & xmh: Email for
Users & Programmers." Changes include:
- MIME (Multimedia) mail
- The popular MH-E GNU Emacs front-end to MH
...omitted...
------- =_aaaaaaaaaa0--
并将其传递给 SMTP 服务器。
我看到很多例子迫使我解析消息并获取 to、from 和消息数据。有没有一种方法可以让我按原样发送字符串?
谢谢