为什么我仍然喜欢用 Alpine 在 Linux 终端中发送电子邮件
邮件 Alpine

> 
> 这个免费的邮件客户端使用直观、易于定制，并且可以在许多操作系统上使用。
> 
> 
> 


![](/data/attachment/album/201808/31/201329h2gqcud5q2e0qd1q.jpg)


也许你有这个经历：你试了一个程序，并且很喜欢它。多年后，有新的程序开发出来，它可以做同样的事情或者更多，甚至更好。你试了下它们，它们也很棒 —— 但你会继续使用第一个程序。


这是我与 [Alpine Mail](https://en.wikipedia.org/wiki/Alpine_(email_client)) 关系的故事。所以我决定写一篇赞美我最喜欢的邮件程序的文章。


![alpine_main_menu.png](/data/attachment/album/201808/31/201336uvguhgzihihuiinn.png "alpine_main_menu.png")


*Alpine 邮件客户端的主菜单屏幕*


在 90 年代中期，我发现了 [GNU/Linux](https://www.gnu.org/gnu/linux-and-gnu.en.html) 操作系统。因为我之前从未见过类 Unix 的系统，所以我阅读了大量的文档和书籍，并尝试了很多程序来熟悉这个迷人的系统。


没多久，[Pine](https://en.wikipedia.org/wiki/Pine_(email_client)) 成了我最喜欢的邮件客户端，其后是其继任者 Alpine。我发现它直观且易于使用 —— 你始终可以在底部看到可能的命令或选项，因此引导很容易快速学习，并且 Alpine 提供了很好的帮助。


入门很容易。


大多数发行版包含 Alpine。它可以通过包管理器安装。


只需按下 `S`（或移动高亮栏到“设置”那一行）你就会看到可以配置的项目。在底部，你可以使用快捷键来执行你可以立即执行的命令。对于其他命令，按下 `O`（“其他命令”）。


按下 `S` 进入配置对话框。当你向下滚动列表时，很明显你可以设置 Apline 如你所希望的那样运行。如果你只有一个邮件帐户，只需移动到你想要更改的行，按下 `C`（“更改值”），然后输入值：


![alpine_setup_configuration.png](/data/attachment/album/201808/31/201337fbeeloljtfd8bocr.png "alpine_setup_configuration.png")


*Alpine 设置配置屏幕*


请注意如何输入 SNMP 和 IMAP 服务器，因为这与那些有辅助助手和预填字段的邮件客户端不同。如果你像这样输入“服务器/SSL/用户”：



```
imap.myprovider.com:993/ssl/user=max@example.com
```

Alpine 会询问你是否使用“收件箱”（选择“是”）并在“服务器”两边加上大括号。完成后，按下 `E`（“退出设置”）并按下 `Y`（“是”）提交更改。回到主菜单，然后你可以移动到文件夹列表和收件箱以查看是否有邮件（系统将提示你输入密码）。你现在可以使用 `>` 和 `<` 进行移动。


![navigating_the_message_index.png](/data/attachment/album/201808/31/201338xz66cg6jj6chm70c.png "navigating_the_message_index.png")


*在 Apline 中浏览消息索引*


要撰写邮件，只需移动到相应的菜单并编写即可。请注意，底部的选项会根据你所在的行而变化。`^T`（`Ctrl + T`）可代表 To Addressbook（“地址簿”）或 To Files（“文件”）。要附加文件，只需移动到 Attchmt:（“附件”）然后按 `Ctrl + T` 转到文件浏览器，或按 `Ctrl + J` 输入路径。


用 `^X` 发送邮件。


![composing_an_email_in_alpine.png](/data/attachment/album/201808/31/201338jpv3vak38yy3pc30.png "composing_an_email_in_alpine.png")


*在 Alpine 中撰写电子邮件*


### 为何选择 Alpine？


当然，每个用户的个人偏好和需求都是不同的。如果你需要一个更像 “office” 的解决方案，像 Evolution 或 Thunderbird 这样的应用可能是更好的选择。


但对我来说，Alpine（和 Pine）是软件界的活化石。你可以以舒适的方式管理邮件 —— 不多也不少。它适用于许多操作系统（甚至 [Termux for Android](https://termux.com/)）。并且因为配置存储在纯文本文件（`.pinerc`）中，所以你只需将其复制到设备即可。




---


via: <https://opensource.com/article/18/8/love-alpine>


作者：[Heiko Ossowski](https://opensource.com/users/hossow) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
Maybe you can relate to this story: You try out a program and really love it. Over the years, new programs are developed that can do the same things and more, maybe even better. You try them out, and they are great too—but you keep coming back to the first program.

That is the story of my relationship with [Alpine Mail](https://en.wikipedia.org/wiki/Alpine_(email_client)). So I decided to write a little article praising my de facto favorite mail program.

![alpine_main_menu.png alpine_main_menu.png](https://opensource.com/sites/default/files/uploads/alpine_main_menu.png)

The main menu screen of the Alpine email client

In the mid-90's, I discovered the [GNU/Linux](https://www.gnu.org/gnu/linux-and-gnu.en.html) operating system. Because I had never seen a Unix-like system before, I read a lot of documentation and books and tried a lot of programs to find my way through this fascinating OS.

After a while, [Pine](https://en.wikipedia.org/wiki/Pine_(email_client)) became my favorite mail client, followed by its successor, Alpine. I found it intuitive and easy to use—you can always see the possible commands or options at the bottom, so navigation is easy to learn quickly, and Alpine comes with very good help.


Getting started is easy.

Most distributions include Alpine. It can be installed via the package manager: Just press **S** (or navigate the bar to the setup line) and you will be directed to the categories you can configure. At the bottom, you can use the shortcut keys for commands you can do right away. For commands that don’t fit in there, press **O** (`Other Commands`

).

Press **C** to enter the configuration dialog. When you scroll down the list, it becomes clear that you can make Alpine behave as you want. If you have only one mail account, simply navigate the bar to the line you want to change, press **C** (`Change Value`

), and type in the values:

![alpine_setup_configuration.png alpine_setup_configuration.png](https://opensource.com/sites/default/files/uploads/alpine_setup_configuration.png)

The Alpine setup configuration screen

Note how the SNMP and IMAP servers are entered, as this is not the same as in mail clients with assistants and pre-filled fields. If you just enter the server/SSL/user like this:

`imap.myprovider.com:993/ssl/user=max@example.com`


Alpine will ask you if "Inbox" should be used (yes) and put curly brackets around the server part. When you're done, press **E** (`Exit Setup`

) and commit your changes by pressing **Y** (yes). Back in the main menu, you can then move to the folder list and the Inbox to see if you have mail (you will be prompted for your password). You can now navigate using ** >** and

**.**

`<`

![navigating_the_message_index.png navigating_the_message_index.png](https://opensource.com/sites/default/files/uploads/navigating_the_message_index.png)

Navigating the message index in Alpine

To compose an email, simply navigate to the corresponding menu entry and write. Note that the options at the bottom change depending on the line you are on. ** ^T** (

**Ctrl**+

**T**) can stand for

`To Addressbook`

or `To Files`

. To attach files, just navigate to `Attchmt:`

and press either **Ctrl**+

**T**to go to a file browser, or

**Ctrl**+

**J**to enter a path.

Send the mail with `^X`

.

![composing_an_email_in_alpine.png composing_an_email_in_alpine.png](https://opensource.com/sites/default/files/uploads/composing_an_email_in_alpine.png)

Composing an email in Alpine

## Why Alpine?

Of course, every user's personal preferences and needs are different. If you need a more "office-like" solution, an app like Evolution or Thunderbird might be a better choice.

But for me, Alpine (and Pine) are dinosaurs in the software world. You can manage your mail in a comfortable way—no more and no less. It is available for many operating systems (even [Termux for Android](https://termux.com/)). And because the configuration is stored in a plain text file (`.pinerc`

), you can simply copy it to a device and it works.

## 13 Comments