Skip to content
Branch: develop
Go to file

Latest commit

danc86 committed d3fbac1 Jul 12, 2020
In the code for handling message/rfc822 MIME parts, message.rb line 498,
we were calling the #normalize_whitespace method on the body string
before it was decoded.

I'm not too sure if messing with whitespace is the right thing to do
there, but that aside, that method was then also calling #fix_encoding!
which would forcibly transcode the raw body to UTF-8. Instead, we want to
keep the body as ASCII-8BIT at that point, and let it be decoded using
all the normal message decoding mechanisms.

The only other calls to #normalize_whitespace are in the UI, and in the
code path which handles body text of messages, message.rb line 592,
where the body text has already been decoded. So it seems like we can
safely make #normalize_whitespace just mess with whitespace and leave
the string encoding alone.

Fixes #205.


Failed to load latest commit information.


Sup is a console-based email client for people with a lot of email.


See the wiki

Features / Problems


Current limitations:

  • Sup does in general not play nicely with other mail clients, not all changes can be synced back to the mail source. Refer to Maildir Syncback in the wiki for this recently included feature. Maildir Syncback allows you to sync back flag changes in messages and to write messages to maildir sources.

  • Unix-centrism in MIME attachment handling and in sendmail invocation.


Please report bugs to the GitHub issue tracker.


Maintenance status

Sup is a mature, production-quality mail client. The maintainers are also long-term users, and mainly focus on preserving the current feature set. Pull requests are very welcome, especially to fix bugs or improve compatibility, however pull requests for major new features are unlikely to be merged.


If Sup is missing a feature you are interested in, it might be possible to accomplish using Sup's powerful hooks mechanism. Otherwise, here are some alternatives to consider:

  • Notmuch was inspired by Sup. There are a wide variety of Notmuch clients available. The most similar to Sup's look-and-feel is Alot — also a curses-based front end. Alot even ships with a built-in Sup theme!

  • mu / mu4e. Like Sup, a search-based email back end, and also implemented using Xapian. The emacs-based front end is quite different.


Copyright (c) 2013--     Sup developers.
Copyright (c) 2006--2009 William Morgan.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
You can’t perform that action at this time.