sup:mainline.git
8 years agobump version release-0.7
William Morgan [Mon, 23 Mar 2009 14:07:55 +0000 (10:07 -0400)]
bump version

8 years agoupdate release-script for new process
William Morgan [Mon, 23 Mar 2009 14:35:28 +0000 (10:35 -0400)]
update release-script for new process

No longer using Hoe. Manual build & upload process.

8 years agoadd sup.gemspec
William Morgan [Mon, 23 Mar 2009 14:35:24 +0000 (10:35 -0400)]
add sup.gemspec

8 years agoremove welcome to sup message
William Morgan [Mon, 23 Mar 2009 14:33:25 +0000 (10:33 -0400)]
remove welcome to sup message

Sorry, I just found it too irritating.

8 years agominor README tweaks
William Morgan [Mon, 23 Mar 2009 14:25:34 +0000 (10:25 -0400)]
minor README tweaks

8 years agoupdate unit tests to reflect header parsing
William Morgan [Mon, 23 Mar 2009 14:11:16 +0000 (10:11 -0400)]
update unit tests to reflect header parsing

Blank headers now have a value of "", not nil. Nothing wrong with that.
The test captures behavior that doesn't really matter, but I've updated
it to at least reflect reality.

8 years agofix contributor list in index.html
William Morgan [Mon, 23 Mar 2009 14:08:29 +0000 (10:08 -0400)]
fix contributor list in index.html

8 years agobugfix: previous bugfix was broken.
William Morgan [Sun, 22 Mar 2009 17:49:12 +0000 (10:49 -0700)]
bugfix: previous bugfix was broken.

That will teach me to commit without testing!

8 years agobugfix: sporadic hash traversal error
William Morgan [Sun, 22 Mar 2009 17:41:56 +0000 (13:41 -0400)]
bugfix: sporadic hash traversal error

Don't modify header hash in place while traversing with #each, because
apparently that's a problem for Ruby. But only sometimes.

Based on a patch by Rick Tessner <rick.tessner@gmail.com>.

8 years agoremake CONTRIBUTORS
William Morgan [Sun, 22 Mar 2009 16:59:40 +0000 (12:59 -0400)]
remake CONTRIBUTORS

8 years agominor whitespace cleanup
William Morgan [Sun, 22 Mar 2009 16:46:03 +0000 (12:46 -0400)]
minor whitespace cleanup

8 years agocorrectly parse headers starting with empty lines
Mark Alexander [Sun, 22 Mar 2009 16:42:55 +0000 (12:42 -0400)]
correctly parse headers starting with empty lines

Handle message headers that are split across multiple lines and start
with a blank line.

Patch modified slightly by William Morgan.

8 years agoFix a recurring bug about killed threads.
Nicolas Pouillard [Mon, 16 Mar 2009 18:39:40 +0000 (19:39 +0100)]
Fix a recurring bug about killed threads.

Resent...

8 years agoprepare for 0.7 release
William Morgan [Mon, 16 Mar 2009 12:48:00 +0000 (08:48 -0400)]
prepare for 0.7 release

8 years agobugfix: allow unset default_attachment_save_dir
William Morgan [Mon, 16 Mar 2009 11:53:12 +0000 (07:53 -0400)]
bugfix: allow unset default_attachment_save_dir

If this variable isn't set in the config file, don't die.

8 years agouse offscreen lines for textfield overflow
Steve Goldman [Sun, 23 Nov 2008 20:59:49 +0000 (15:59 -0500)]
use offscreen lines for textfield overflow

In the To:, Cc:, Bcc:, etc., prompts, the TextField was initializing
an NCurses form with zero offscreen lines.  So when the user typed too
many addresses at the prompt the cursor wrapped around and everything
they had typed was clobbered.  This patch initializes the form object
to have 256 offscreen lines (I had no rationale for 256 except that it
is a nice, big power of two).  Now the user can type plenty of names
and the wrap-around works as the user would expect.

8 years agoshow matching aliases before email addresses in auto complete
Steve Goldman [Sun, 23 Nov 2008 19:39:10 +0000 (14:39 -0500)]
show matching aliases before email addresses in auto complete

8 years agogit status should ignore emacs temp files
Steve Goldman [Sun, 23 Nov 2008 19:44:29 +0000 (14:44 -0500)]
git status should ignore emacs temp files

8 years agomake ctrl-c prompt user if sup should die ungracefully
Steve Goldman [Sun, 23 Nov 2008 19:29:36 +0000 (14:29 -0500)]
make ctrl-c prompt user if sup should die ungracefully

8 years agoDisplay a default save path for attachments
Steve Goldman [Sun, 23 Nov 2008 18:53:09 +0000 (13:53 -0500)]
Display a default save path for attachments

Let the user specify a default path for saving attachments with
:default_attachment_save_dir: in config.yaml, and display this path in
front of the filename when saving an attachment in thread view mode.

8 years agoAllow to hit 'y' to send a draft in thread-view-mode
Nicolas Pouillard [Sun, 16 Nov 2008 17:32:12 +0000 (18:32 +0100)]
Allow to hit 'y' to send a draft in thread-view-mode

8 years agodecoding rules: ignore ascii-7bit and normalize utf-7
Nicolas Pouillard [Sun, 16 Nov 2008 17:18:33 +0000 (18:18 +0100)]
decoding rules: ignore ascii-7bit and normalize utf-7

8 years agoAdd a limit:<int> search operator to limit the number of results
Nicolas Pouillard [Sun, 16 Nov 2008 17:17:59 +0000 (18:17 +0100)]
Add a limit:<int> search operator to limit the number of results

8 years agoMerge branch 'master' into next
William Morgan [Wed, 26 Nov 2008 23:41:51 +0000 (15:41 -0800)]
Merge branch 'master' into next

8 years agofix class name collision in testcases
Rich Lane [Tue, 11 Nov 2008 17:52:50 +0000 (12:52 -0500)]
fix class name collision in testcases

'rake test' was broken because both testcases' classes had the same name and
the setup method was overridden. This patch changes the class name in
test_mbox_parsing.

8 years agoDo nothing on an unknown-8bit encoding.
Nicolas Pouillard [Fri, 14 Nov 2008 13:28:56 +0000 (14:28 +0100)]
Do nothing on an unknown-8bit encoding.

8 years agoFactor the Iconv decoding code, and be more lenient on encodings.
Nicolas Pouillard [Fri, 14 Nov 2008 12:31:02 +0000 (13:31 +0100)]
Factor the Iconv decoding code, and be more lenient on encodings.

8 years agoAdd a --query option to sup-tweak-labels.
Nicolas Pouillard [Fri, 14 Nov 2008 12:29:25 +0000 (13:29 +0100)]
Add a --query option to sup-tweak-labels.

8 years agoMerge commit 'c45207/hook-state-bag' into next
William Morgan [Sun, 16 Nov 2008 00:43:42 +0000 (16:43 -0800)]
Merge commit 'c45207/hook-state-bag' into next

8 years agoMerge commit 'c45207/shutdown-hook' into next
William Morgan [Sun, 16 Nov 2008 00:37:22 +0000 (16:37 -0800)]
Merge commit 'c45207/shutdown-hook' into next

8 years agodon't die when a draft discarded multiple times
William Morgan [Tue, 11 Nov 2008 20:40:32 +0000 (12:40 -0800)]
don't die when a draft discarded multiple times

This can happen when you open the same draft in multiple
buffers, and discard or send it multiple times.

8 years agoadds a cross-hook variable storage mechanism
Christopher Warrington [Mon, 10 Nov 2008 11:27:35 +0000 (05:27 -0600)]
adds a cross-hook variable storage mechanism

Adds two hook helper methods, get and set, that allow hooks to pass
values to each other. Also, updates the documentation for hooks
to reflect these new commands (as well as the old ones).

8 years agoadded a shutdown hook
Christopher Warrington [Mon, 10 Nov 2008 10:26:29 +0000 (04:26 -0600)]
added a shutdown hook

A shutdown hook has been added. It runs during sup's shutdown,
right before Redwood::finish is called.

8 years agodon't downcase names before looking them up in the alias to person map, since keys...
Steve Goldman [Fri, 7 Nov 2008 20:04:33 +0000 (15:04 -0500)]
don't downcase names before looking them up in the alias to person map, since keys in that map aren't downcased.

8 years agosave contacts.txt on '$'
Nicolas Pouillard [Thu, 6 Nov 2008 15:00:02 +0000 (16:00 +0100)]
save contacts.txt on '$'

8 years agoremove H as a help trigger, since thread-view-mode overwrites it anyways
William Morgan [Mon, 10 Nov 2008 04:47:44 +0000 (20:47 -0800)]
remove H as a help trigger, since thread-view-mode overwrites it anyways

8 years agoadd a friendly message when starting sup
William Morgan [Mon, 10 Nov 2008 04:45:58 +0000 (20:45 -0800)]
add a friendly message when starting sup

8 years agoMerge branch 'index-locking' into next
William Morgan [Mon, 10 Nov 2008 04:17:27 +0000 (20:17 -0800)]
Merge branch 'index-locking' into next

8 years agomake #load_entry_for_id return something safely useable outside the index mutex
William Morgan [Mon, 10 Nov 2008 04:16:38 +0000 (20:16 -0800)]
make #load_entry_for_id return something safely useable outside the index mutex

8 years agoMerge branch 'index-locking' into next
William Morgan [Mon, 10 Nov 2008 03:59:47 +0000 (19:59 -0800)]
Merge branch 'index-locking' into next

8 years agoMerge branch 'master' into next
William Morgan [Mon, 10 Nov 2008 03:59:43 +0000 (19:59 -0800)]
Merge branch 'master' into next

8 years agoissue updates
William Morgan [Mon, 10 Nov 2008 03:56:42 +0000 (19:56 -0800)]
issue updates

8 years agowrap text attachments
Israel Herraiz [Tue, 4 Nov 2008 14:07:21 +0000 (15:07 +0100)]
wrap text attachments

8 years agoprotect ferret index #[] access
William Morgan [Fri, 7 Nov 2008 06:18:45 +0000 (22:18 -0800)]
protect ferret index #[] access

8 years agoMerge branch 'index-locking' into next
William Morgan [Thu, 6 Nov 2008 21:25:18 +0000 (13:25 -0800)]
Merge branch 'index-locking' into next

8 years agosynchronize access to ferret
William Morgan [Thu, 6 Nov 2008 21:11:12 +0000 (13:11 -0800)]
synchronize access to ferret

8 years agosynchronize access to sources
William Morgan [Thu, 6 Nov 2008 20:31:40 +0000 (12:31 -0800)]
synchronize access to sources

8 years agoMerge branch 'master' into next
William Morgan [Wed, 5 Nov 2008 18:41:34 +0000 (10:41 -0800)]
Merge branch 'master' into next

8 years agofix hoe dependency removal
William Morgan [Wed, 5 Nov 2008 18:41:30 +0000 (10:41 -0800)]
fix hoe dependency removal

8 years agobugfix patch: sort labels upon save by string values, in case they're symbols
William Morgan [Wed, 5 Nov 2008 18:32:45 +0000 (10:32 -0800)]
bugfix patch: sort labels upon save by string values, in case they're symbols

8 years agoadd self as recipient on crypted sent messages
William Morgan [Sun, 2 Nov 2008 19:29:49 +0000 (11:29 -0800)]
add self as recipient on crypted sent messages

patch from "Tomas Pospisek ML" <tpo2@sourcepole.ch>

8 years agoMerge branch 'master' into next
William Morgan [Sun, 2 Nov 2008 18:54:33 +0000 (10:54 -0800)]
Merge branch 'master' into next

8 years agopluralize minute(s) second(s)
William Morgan [Sun, 2 Nov 2008 18:53:29 +0000 (10:53 -0800)]
pluralize minute(s) second(s)

patch from "Tomas Pospisek ML" <tpo2@sourcepole.ch>

8 years agoaccept "yes" when asked so
William Morgan [Sun, 2 Nov 2008 18:52:47 +0000 (10:52 -0800)]
accept "yes" when asked so

patch from Thomas Pospisek ML" <tpo2@sourcepole.ch>

8 years agoSam is the author of rfc2047.rb
Decklin Foster [Sat, 1 Nov 2008 18:04:56 +0000 (14:04 -0400)]
Sam is the author of rfc2047.rb

We need this in Debian so that our copy of the authors list covers all code
in the package.

8 years agoDon't redirect run-mailcap to /dev/null
Decklin Foster [Sun, 26 Oct 2008 18:31:12 +0000 (14:31 -0400)]
Don't redirect run-mailcap to /dev/null

It gets confused about stdout not being a terminal, and HTML attachments will
be converted to text/plain which uses the needsterminal entry for less(1).

8 years agoRead in X-Foo headers
Decklin Foster [Sun, 26 Oct 2008 18:30:03 +0000 (14:30 -0400)]
Read in X-Foo headers

8 years agoMerge branch 'master' into next
William Morgan [Mon, 20 Oct 2008 02:41:01 +0000 (19:41 -0700)]
Merge branch 'master' into next

8 years agokeybinding to show a list of unread messages
Israel Herraiz [Sun, 19 Oct 2008 10:53:52 +0000 (12:53 +0200)]
keybinding to show a list of unread messages

this patch adds a global keybinding to make a search of all the unread
messages. I use this quite often, and maybe it can be useful for
others too.

The keybinding is 'U'.

8 years agoSort the contents of labels.txt
Nicolas Pouillard [Fri, 17 Oct 2008 08:55:37 +0000 (10:55 +0200)]
Sort the contents of labels.txt

This enable better behaviors when versioning this
kind of files.

8 years agofix up IMAP deletion
William Morgan [Tue, 14 Oct 2008 20:10:48 +0000 (13:10 -0700)]
fix up IMAP deletion

8 years agoadd #mark_as_deleted and #expunge to Redwood::IMAP. completely untested!
William Morgan [Tue, 14 Oct 2008 01:14:29 +0000 (18:14 -0700)]
add #mark_as_deleted and #expunge to Redwood::IMAP. completely untested!

Ditz-issue: 2673f091c15dd90222a59621a1842d4ef0a743f7

8 years agoEnclosed messages as proper sub-parts
Nicolas Pouillard [Mon, 29 Sep 2008 16:55:16 +0000 (18:55 +0200)]
Enclosed messages as proper sub-parts

Raw message closed by default.
In-lined sub-parts of the enclosed message.

8 years agonew issue: Pulling new threads should not shift the cursor.
Nicolas Pouillard [Mon, 29 Sep 2008 17:09:37 +0000 (19:09 +0200)]
new issue: Pulling new threads should not shift the cursor.

9 years agoprepare for 0.6 release
William Morgan [Mon, 4 Aug 2008 02:54:10 +0000 (19:54 -0700)]
prepare for 0.6 release

9 years agopoint webpage to Gitorious repository
William Morgan [Thu, 31 Jul 2008 01:01:30 +0000 (18:01 -0700)]
point webpage to Gitorious repository

9 years agounassign all undone issues from 0.6
William Morgan [Thu, 31 Jul 2008 00:55:01 +0000 (17:55 -0700)]
unassign all undone issues from 0.6

9 years agoissue updates
William Morgan [Thu, 31 Jul 2008 00:51:30 +0000 (17:51 -0700)]
issue updates

9 years agomaildir cpu usage regression fix
Ben Walton [Wed, 4 Jun 2008 00:17:01 +0000 (20:17 -0400)]
maildir cpu usage regression fix

This small tweak resolves the cpu usage issue pointed out by Grant Hollingworth
on sup-talk (http://rubyforge.org/pipermail/sup-talk/2008-May/001539.html).

9 years agoMerge commit 'origin/ncurses-widechar'
William Morgan [Thu, 31 Jul 2008 00:46:27 +0000 (17:46 -0700)]
Merge commit 'origin/ncurses-widechar'

9 years agoadd .ditz-plugins
William Morgan [Thu, 31 Jul 2008 00:34:21 +0000 (17:34 -0700)]
add .ditz-plugins

9 years agoMerge commit 'origin/mark-as-spam-hook'
William Morgan [Thu, 31 Jul 2008 00:26:50 +0000 (17:26 -0700)]
Merge commit 'origin/mark-as-spam-hook'

9 years agoadd bugs dir back to master
William Morgan [Thu, 31 Jul 2008 00:18:04 +0000 (17:18 -0700)]
add bugs dir back to master

9 years agoMerge commit 'origin/reply-to-hook'
William Morgan [Thu, 31 Jul 2008 00:17:50 +0000 (17:17 -0700)]
Merge commit 'origin/reply-to-hook'

Conflicts:

lib/sup/modes/reply-mode.rb

9 years agoMerge commit 'origin/reply-from-hook'
William Morgan [Thu, 31 Jul 2008 00:16:55 +0000 (17:16 -0700)]
Merge commit 'origin/reply-from-hook'

9 years agoMerge commit 'origin/color'
William Morgan [Thu, 31 Jul 2008 00:16:45 +0000 (17:16 -0700)]
Merge commit 'origin/color'

9 years agoMerge branch 'edit-as-new-fix'
William Morgan [Thu, 19 Jun 2008 18:22:15 +0000 (11:22 -0700)]
Merge branch 'edit-as-new-fix'

9 years agoMerge branch 'attachments'
William Morgan [Thu, 19 Jun 2008 18:11:12 +0000 (11:11 -0700)]
Merge branch 'attachments'

9 years agoMerge branch 'maildir-speedup'
William Morgan [Thu, 19 Jun 2008 18:09:18 +0000 (11:09 -0700)]
Merge branch 'maildir-speedup'

9 years agoMerge branch 'non-ascii-message-id'
William Morgan [Thu, 19 Jun 2008 18:08:50 +0000 (11:08 -0700)]
Merge branch 'non-ascii-message-id'

9 years agoadd reply-from hook for user-defined handling of default from in replies
Marc Hartstein [Thu, 12 Jun 2008 16:05:46 +0000 (12:05 -0400)]
add reply-from hook for user-defined handling of default from in replies

The reply-from hook can now be used to process headers in a different manner
than the default for purposes of generating a default From: header when
replying to an email.

9 years agorespond_to? needs include_private argument
Decklin Foster [Wed, 18 Jun 2008 20:25:56 +0000 (16:25 -0400)]
respond_to? needs include_private argument

Sup started mysteriously bailing out on me today after an apt-get
update with stuff like this:

 --- ArgumentError from thread: main
wrong number of arguments (2 for 1)
/usr/lib/ruby/1.8/sup/index.rb:424:in `respond_to?'
/usr/lib/ruby/1.8/sup/index.rb:424:in `flatten'
/usr/lib/ruby/1.8/sup/index.rb:424:in `load_sources'
/usr/lib/ruby/1.8/sup/index.rb:108:in `load'
/usr/lib/ruby/1.8/sup/util.rb:497:in `send'
/usr/lib/ruby/1.8/sup/util.rb:497:in `method_missing'
/usr/bin/sup:122

I did some digging and it seems like when Array#flatten, in attempting
to figure out if it can flatten some list element recursively, sends
it :respond_to? with both arguments -- I didn't even know there was a
second one (defaults to false; see docs). But this only happened recently
or something.

Here's somewhere else this came up:
http://www.ruby-forum.com/topic/154938

So, the fix is exactly the same. Should work fine on old Ruby as well.

9 years agomake tags yellow again by default
William Morgan [Tue, 17 Jun 2008 21:29:48 +0000 (14:29 -0700)]
make tags yellow again by default

9 years agoallow signature hook to return :none for no signature
William Morgan [Fri, 6 Jun 2008 19:16:11 +0000 (12:16 -0700)]
allow signature hook to return :none for no signature

9 years agoadd fastthread dep to Rakefile
William Morgan [Wed, 4 Jun 2008 19:14:49 +0000 (12:14 -0700)]
add fastthread dep to Rakefile

9 years agoexception cleanup: synchronize access, and require fastthread
William Morgan [Wed, 4 Jun 2008 18:53:15 +0000 (11:53 -0700)]
exception cleanup: synchronize access, and require fastthread

9 years agoadding a reply-to hook for setting the default reply-to mode
Jeff Balogh [Sat, 31 May 2008 15:52:54 +0000 (11:52 -0400)]
adding a reply-to hook for setting the default reply-to mode

9 years agovarious color tweaks
William Morgan [Wed, 4 Jun 2008 02:11:34 +0000 (19:11 -0700)]
various color tweaks

- fix NME when there's no colors.yaml
- remove top-level "colors:" attribute of colors.yaml
- allow single attributes to be non-arrays
- flash at most one error
- other minor rejiggering

9 years agosup color customization
Lionel Ott [Sun, 25 May 2008 06:59:49 +0000 (08:59 +0200)]
sup color customization

- config file is located under $SUP_HOME/config.yaml and has the following
  structure

  :colors:
    :symbol_name:
      :fg: <color>
      :bg: <color>
      :attrs:
      - <attribute>

  <color> and <attribute> can take the standard values available in the curses
  environment.
  There may be multiple attributes, but they need not be present.
- if there is an error in the user provided config file a default value will
  be used (stored in the Colormap class)

9 years agobugfix: edit-as-new now preserves reply-to and references
William Morgan [Sat, 31 May 2008 17:04:58 +0000 (17:04 +0000)]
bugfix: edit-as-new now preserves reply-to and references

9 years agoadd attachment widget to thread-view-mode as well
William Morgan [Fri, 30 May 2008 15:38:37 +0000 (15:38 +0000)]
add attachment widget to thread-view-mode as well

9 years agoadded default maildir mtimes for earlier sources.yaml files
Grant Hollingworth [Mon, 26 May 2008 13:07:09 +0000 (09:07 -0400)]
added default maildir mtimes for earlier sources.yaml files

Fixes a bug introduced by 2e06f1eb. The YAML loading was explicitly passing
nil, overriding the {} default in initialize.

9 years agoMerge commit 'origin/unedited-newlines'
William Morgan [Sun, 25 May 2008 04:22:30 +0000 (21:22 -0700)]
Merge commit 'origin/unedited-newlines'

Conflicts:

lib/sup/modes/edit-message-mode.rb

9 years agoMerge commit 'origin/find-in-buffer-fix'
William Morgan [Sun, 25 May 2008 04:19:37 +0000 (21:19 -0700)]
Merge commit 'origin/find-in-buffer-fix'

9 years agoMerge commit 'origin/header-parsing-fix'
William Morgan [Sun, 25 May 2008 04:19:01 +0000 (21:19 -0700)]
Merge commit 'origin/header-parsing-fix'

9 years agoMerge commit 'origin/read-and-archive'
William Morgan [Sun, 25 May 2008 04:14:12 +0000 (21:14 -0700)]
Merge commit 'origin/read-and-archive'

9 years agoMerge commit 'origin/more-vi-keys'
William Morgan [Sun, 25 May 2008 04:12:46 +0000 (21:12 -0700)]
Merge commit 'origin/more-vi-keys'

9 years agoGmail style attachment processing
Marcus Williams [Tue, 29 Apr 2008 20:45:39 +0000 (21:45 +0100)]
Gmail style attachment processing

This patch adds:

 * the search terms "filename" and "filetype"
 * hidden/reserved attachment label to track attachments
 * new flag on thread index mode to denote an attachment '@'
 * a "has:attachment" search query.

You can now search for something like "from:phil* filetype:pdf" for all
messages from a person called phil with a pdf attachment. You can also
specify a file name for the attachment with "filename:(this is a
filename with spaces.txt)". You can use wildcards in the filename
("filename:test*.pdf"). You can search for all messages from someone
with attachments using "from:someone has:attachment"

It will require sup-sync -all to work against all sources, but attempts
to be backwards compatable with non-synced sources.

9 years agomake 'm' (compose) in thread-view-mode prompt for a to: address with a default
William Morgan [Sun, 25 May 2008 03:46:41 +0000 (20:46 -0700)]
make 'm' (compose) in thread-view-mode prompt for a to: address with a default

9 years agoa few trivial cleanups
William Morgan [Sun, 25 May 2008 03:43:55 +0000 (20:43 -0700)]
a few trivial cleanups