百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

lumail

> 开发工具
开源

一个基于控制台的邮件客户端,具有集成的 Lua 脚本支持。

198 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个基于控制台的邮件客户端,具有集成的 Lua 脚本支持。

lumail

lumail is a modern console-based email-client, with fully integrated scripting, implemented in the Lua programming language.

Although primarily developed and tested against GNU/Linux it should run upon Mac OS X, and FreeBSD. If your system isn't supported, and is Unix-like then this is a bug which should be fixed.

lumail is primarily designed to operate against local Maildir-hierarchies, but IMAP support is available, as well as support for GPG for security.

This README.md file contains brief details of the project, with more complete documentation provided on the homepage. The following links on the project website should be a good starting point:

  • Downloading lumail
  • Installing lumail
  • Getting started with lumail
  • The API documentation
    • Sample Code Snippets.

Overview

Lumail is a console-based mail client, which is modal. A modal client means that you're always in one of a small number of states, or modes:

  • maildir-mode
    • Allows you to see a list of message-folders.
  • index-mode
    • Allows you to view a list of messages.
      • i.e. The contents of a folder.
  • message-mode
    • Allows you to view a single message.
      • attachment-mode is related, allowing you to view the attachments associated with a particular message.
  • lua-mode.
    • This mode displays diagnostics and other internal details.
  • keybinding-mode.
    • Shows you the keybindings which are in-use.
    • Press H to enter this mode, and q to return from it.

Compilation & Installation


Running make install will install the binary, the libraries that we bundle, and the perl-utilities which are required for IMAP-operation.

If you wish to install manually then please copy:

  • The contents of lib/ to /usr/lib/lumail.
  • The contents of perl.d to /usr/share/lumail/.

You can also see the notes below about running directly from a git-checkout of our repository. Note that if you wish to use IMAP you'll need to install the extra dependencies for that.

Configuration

Once installed you'll want to create your own personal configuration file.

To allow smooth upgrades it is recommended you do not edit the global configuration file /etc/lumail/lumail.lua. Instead you should copy the sample user-configuration file into place:

  $ mkdir ~/.lumail/
  $ cp user.config.lua ~/.lumail/lumail.lua

If you prefer you can name your configuration file after the hostname of the local system - this is useful if you store your dotfiles under revision control, and share them:

  $ mkdir ~/.lumail/
  $ cp user.config.lua ~/.lumail/$(hostname --fqdn).lua

The defaults in the per-user configuration file should be adequately documented, but in-brief you'll want to ensure you set at least the following:

 -- Set the location of your Maildir folders, and your sent-folder
 Config:set( "maildir.prefix", os.getenv( "HOME" ) .. "/Maildir/" );
 Config:set( "global.sent-mail", os.getenv( "HOME" ) .. "/Maildir/sent/" )

 -- Set your outgoing mail-handler, and email-address:
 Config:set( "global.mailer", "/usr/lib/sendmail -t" )
 Config:set( "global.sender", "Some User " )

 -- Set your preferred editor
 Config:set( "global.editor", "vim  +/^$ ++1 '+set tw=72'" )

Running from git-checkout

If you wish to run directly from a git-checkout you'll need to add some command-line flags to change the default behavior:

  • Change the location from which Lua libraries are fetched.
  • Disable the loading of the global configuration-files.

This can be achieved like so:

 $ ./lumail2 --load-path=$(pwd)/lib/ --no-default --load-file ./global.config.lua --load-file ./user.config.lua

Using Lumail

By default you'll be in the maildir-mode, and you can navigate with j/k, and select items with ENTER.

For a quick-start you can use the following bindings:

  • TAB - Toggle the display of the status-panel.
    • The panel displays brief messages when "things" happen.
    • P - Toggle the size of the panel.
    • ctrl-p enters you into a mode were you can view/scroll through past messages.
  • H - Shows the keybindings which are configured.
  • M - See your list of folders.
  • q - Always takes you out of the current mode and into the previous one.
    • Stopping at the folder-list (maildir-mode).
  • Q - Exit.

Further Notes

Further documentation can be found upon the project homepage, but there are also some notes available within this repository:

  • API Documentation.
    • Documents the Lua classes.
  • Contributor Guide.
  • Notes on IMAP.
  • Notes on GPG Support.
  • Notes on implementation & structure.
    • See also the experiments repository where some standalone code has been isolated for testing/learning purposes.

Steve

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++c-plus-plusconsoleemailgpg

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具