]> git.cworth.org Git - sup/log
sup
14 years agoAdd new :crypto_default configuration option. next
Carl Worth [Mon, 28 Sep 2009 22:29:44 +0000 (15:29 -0700)]
Add new :crypto_default configuration option.

For example, users that want to sign all outgoing messages by default
can set:

:crypto_default: :sign

in ~/.sup/config.yaml. Configuring an invalid value will cause a list
of the valid values to be logged at the "error" level.

14 years agoFix uninitialized @name member in person.rb.
Carl Worth [Fri, 25 Sep 2009 20:41:06 +0000 (13:41 -0700)]
Fix uninitialized @name member in person.rb.

Apparently a Person can be initialized with a nil name, (presumably
from a message where there's no name given), which before this commit
resulted in the following warning:

./lib/sup/person.rb:46: warning: instance variable @name not initialized

This warning was especially unpleasant since it appeared in the current
window, causing the terminal contents to incorrectly scroll up, (as
opposed to just appearing in the log or so).

14 years agoChange the default sort for inbox mode to be oldest first.
Carl Worth [Fri, 25 Sep 2009 19:29:38 +0000 (12:29 -0700)]
Change the default sort for inbox mode to be oldest first.

This allows for more natural reading of messages in the order
they were actually created.

14 years agoAllow thread index view to sort oldest first
Keith Packard [Tue, 22 Sep 2009 18:23:20 +0000 (11:23 -0700)]
Allow thread index view to sort oldest first

This allows the thread index view to present oldest messages first
instead of always presenting newer messages at the top of the list.
This can be toggled using the 'o' key.

A config file option :inbox_newest_first controls whether this is
turned on by default when viewing the inbox

Refine searches inherit the order from the originating thread index.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoFix message_to_chunks for the m.body == nil case.
Carl Worth [Thu, 17 Sep 2009 19:53:27 +0000 (12:53 -0700)]
Fix message_to_chunks for the m.body == nil case.

The code was previously broken in calling EnclosedMessage.new with
only 2 instead of 5 arguments.

14 years agoUse underline for highlight
Carl Worth [Tue, 15 Sep 2009 21:21:16 +0000 (14:21 -0700)]
Use underline for highlight

Caution: This patch is not suitable for upstream, (William would rather
see a hook for this instead).

14 years agoAdd a refine_search command to InboxMode
Carl Worth [Wed, 26 Aug 2009 17:17:20 +0000 (10:17 -0700)]
Add a refine_search command to InboxMode

This is just a copy of SearchResultsMode's refine_search command.
A much cleaner, but more involved, approach would be to rework
InboxMode to derive from SearchResultsMode in the first place.

14 years agofix parsing of encrypted messages that contain further multipart elements
Adeodato Simó [Thu, 23 Jul 2009 17:19:51 +0000 (19:19 +0200)]
fix parsing of encrypted messages that contain further multipart elements

14 years agoMerge branch 'master' into next
William Morgan [Thu, 10 Sep 2009 14:25:50 +0000 (10:25 -0400)]
Merge branch 'master' into next

14 years agomove sup-sync output from stderr to stdout
William Morgan [Thu, 10 Sep 2009 14:22:37 +0000 (10:22 -0400)]
move sup-sync output from stderr to stdout

14 years agoremove redundant poll message
William Morgan [Thu, 10 Sep 2009 14:22:23 +0000 (10:22 -0400)]
remove redundant poll message

14 years agoMerge branch 'master' into next
William Morgan [Wed, 9 Sep 2009 14:38:18 +0000 (10:38 -0400)]
Merge branch 'master' into next

14 years agosort labels in the dump
Michael Hamann [Sun, 6 Sep 2009 21:04:22 +0000 (23:04 +0200)]
sort labels in the dump

Sorting labels in the dump is useful when you e.g. want to keep track of
your dump using an incremental backup system that records diffs, with
this patch lines in the dump will only change when there is a real
change and no longer just because the random order of the labels
changes.

14 years agoMerge branch 'master' into next
William Morgan [Wed, 9 Sep 2009 14:36:07 +0000 (10:36 -0400)]
Merge branch 'master' into next

14 years agoadd 'a' and 'd' keybindings to thread-view-mode to archive/delete current thread
Carl Worth [Wed, 26 Aug 2009 22:40:34 +0000 (15:40 -0700)]
add 'a' and 'd' keybindings to thread-view-mode to archive/delete current thread

These behave identically to the existing ",a" and ",d" commands, (that
is they archive or delete the current thread and then view the next).

14 years agoMerge branch 'master' into next
William Morgan [Wed, 9 Sep 2009 14:08:33 +0000 (10:08 -0400)]
Merge branch 'master' into next

Conflicts:
lib/sup/ferret_index.rb

14 years agobugfix: console mode can't start a message in #initialize
William Morgan [Wed, 9 Sep 2009 14:06:38 +0000 (10:06 -0400)]
bugfix: console mode can't start a message in #initialize

Now that it's a regular buffer, it must act like one. I've moved
the message to #run, where it kinda makes more sense. Also tweaked
a few things.

14 years agodon't require log-mode to auto-respawn
William Morgan [Wed, 9 Sep 2009 14:05:11 +0000 (10:05 -0400)]
don't require log-mode to auto-respawn

Don't require log-mode (and more importantly, subclasses thereof) to respawn.
If a buffer name is provided during initialization, respawning will be on;
otherwise, it will be off. Now e.g. console mode can use log-mode without
requiring a buffer name, or incurring potentially weird auto-respawn behavior.

14 years agoprotect getch from ctrl-c's outside of the main event loop
William Morgan [Wed, 9 Sep 2009 14:03:08 +0000 (10:03 -0400)]
protect getch from ctrl-c's outside of the main event loop

The main event loop was interpreting ctrl-c's correctly, but other getch
callers (like asking for input) were not. This change will treat ctrl-c as
ctrl-g in those cases.

14 years agoMerge branch 'custom-search-hook'
William Morgan [Tue, 8 Sep 2009 19:58:28 +0000 (15:58 -0400)]
Merge branch 'custom-search-hook'

Conflicts:
lib/sup/hook.rb
lib/sup/index.rb

14 years agofix broken merge
William Morgan [Tue, 8 Sep 2009 19:55:07 +0000 (15:55 -0400)]
fix broken merge

Whoops!

14 years agoremove out-of-date comments about the hook system
William Morgan [Tue, 8 Sep 2009 19:47:16 +0000 (15:47 -0400)]
remove out-of-date comments about the hook system

14 years agoMerge branch 'enclosed-message-display-tweaks'
William Morgan [Tue, 8 Sep 2009 19:41:17 +0000 (15:41 -0400)]
Merge branch 'enclosed-message-display-tweaks'

Conflicts:
lib/sup/message.rb

14 years agoMerge branch 'console-mode'
William Morgan [Tue, 8 Sep 2009 19:37:51 +0000 (15:37 -0400)]
Merge branch 'console-mode'

Conflicts:
bin/sup

14 years agoMerge branch 'restore-state'
William Morgan [Tue, 8 Sep 2009 19:36:29 +0000 (15:36 -0400)]
Merge branch 'restore-state'

Conflicts:
bin/sup-sync

14 years agoMerge branch 'reply-all-keybindings'
William Morgan [Tue, 8 Sep 2009 19:26:07 +0000 (15:26 -0400)]
Merge branch 'reply-all-keybindings'

14 years agoMerge branch 'logging-tweaks'
William Morgan [Tue, 8 Sep 2009 19:25:55 +0000 (15:25 -0400)]
Merge branch 'logging-tweaks'

Conflicts:
lib/sup/hook.rb

14 years agoMerge branch 'hook-local-vars'
William Morgan [Tue, 8 Sep 2009 19:24:34 +0000 (15:24 -0400)]
Merge branch 'hook-local-vars'

14 years agoMerge branch 'master' into next
William Morgan [Tue, 8 Sep 2009 19:21:08 +0000 (15:21 -0400)]
Merge branch 'master' into next

14 years agoalways apply label :sent to messages in sentmanager
Ben Walton [Sun, 6 Sep 2009 18:04:38 +0000 (14:04 -0400)]
always apply label :sent to messages in sentmanager

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
14 years agoMerge branch 'master' into next
William Morgan [Sun, 6 Sep 2009 14:59:29 +0000 (10:59 -0400)]
Merge branch 'master' into next

14 years agocoerce Message#add_label (and others) arguments to symbols
William Morgan [Sun, 6 Sep 2009 14:56:20 +0000 (10:56 -0400)]
coerce Message#add_label (and others) arguments to symbols

So that hook authors can't destroy their index by adding a string as a label.

14 years agoMerge branch 'master' into next
William Morgan [Sun, 6 Sep 2009 13:47:37 +0000 (09:47 -0400)]
Merge branch 'master' into next

14 years agobugfix: :sent label not being applied to sent messages
William Morgan [Sun, 6 Sep 2009 13:45:25 +0000 (09:45 -0400)]
bugfix: :sent label not being applied to sent messages

At least, for mbox sent sources. Modify the mbox source so that it calls
self.labels for the message labels instead of directly using @labels. This
allows the SentLoader subclass to apply the sent label by defining #labels.

14 years agoMerge branch 'preemptive-loading' into next
William Morgan [Sun, 6 Sep 2009 13:37:42 +0000 (09:37 -0400)]
Merge branch 'preemptive-loading' into next

14 years agoremove debugging statements
William Morgan [Sun, 6 Sep 2009 13:37:08 +0000 (09:37 -0400)]
remove debugging statements

14 years agoMerge branch 'xapian-updates'
William Morgan [Fri, 4 Sep 2009 17:28:10 +0000 (13:28 -0400)]
Merge branch 'xapian-updates'

14 years agoMerge branch 'master' into next
William Morgan [Fri, 4 Sep 2009 15:52:14 +0000 (11:52 -0400)]
Merge branch 'master' into next

Conflicts:
lib/sup/message.rb

14 years agohandle malformed multiplart messages
Kornilios Kourtis [Tue, 28 Jul 2009 16:58:23 +0000 (19:58 +0300)]
handle malformed multiplart messages

14 years agoMerge branch 'master' into next
William Morgan [Fri, 4 Sep 2009 15:21:27 +0000 (11:21 -0400)]
Merge branch 'master' into next

14 years agominor sup-config output tweaks
William Morgan [Fri, 4 Sep 2009 15:21:24 +0000 (11:21 -0400)]
minor sup-config output tweaks

14 years agosup-config whitespace tweaks
William Morgan [Fri, 4 Sep 2009 15:18:19 +0000 (11:18 -0400)]
sup-config whitespace tweaks

14 years agobugfix in yaml serialization
William Morgan [Fri, 4 Sep 2009 15:14:07 +0000 (11:14 -0400)]
bugfix in yaml serialization

Objects that don't respond to before_marshal were being turned into false.
Whoops!

14 years agofail fast if config is not valid
William Morgan [Fri, 4 Sep 2009 15:13:52 +0000 (11:13 -0400)]
fail fast if config is not valid

14 years agoMerge branch 'master' into next
William Morgan [Fri, 4 Sep 2009 14:31:36 +0000 (10:31 -0400)]
Merge branch 'master' into next

14 years agobugfix: crypto return values when no gpg binary detected
William Morgan [Fri, 4 Sep 2009 14:29:13 +0000 (10:29 -0400)]
bugfix: crypto return values when no gpg binary detected

Tweak the return values of CryptoManager#decrypt so that the notice widget is
the first thing returned regardless. Makes the code cleaner.

14 years agoMerge branch 'preemptive-loading' into next
William Morgan [Thu, 3 Sep 2009 17:53:47 +0000 (13:53 -0400)]
Merge branch 'preemptive-loading' into next

14 years agomake load-more callbacks use a queue and be thread-safe
William Morgan [Thu, 3 Sep 2009 17:49:17 +0000 (13:49 -0400)]
make load-more callbacks use a queue and be thread-safe

Replaced previous insane implementation with something that actually
makes sense.

14 years agoui responsiveness tweaks
Rich Lane [Sun, 23 Aug 2009 18:46:11 +0000 (11:46 -0700)]
ui responsiveness tweaks

14 years agopreemptively load messages when scrolling
Rich Lane [Sun, 23 Aug 2009 18:46:10 +0000 (11:46 -0700)]
preemptively load messages when scrolling

14 years agoMerge branch 'alignment-tweaks' into next
William Morgan [Thu, 3 Sep 2009 17:09:45 +0000 (13:09 -0400)]
Merge branch 'alignment-tweaks' into next

14 years agorejigger alignment of messages when using 'n' and 'p'
William Morgan [Thu, 3 Sep 2009 17:08:29 +0000 (13:08 -0400)]
rejigger alignment of messages when using 'n' and 'p'

minimize horizontal movement. 'z' can be used to force alignment of
current message with left column.

14 years agomove open3 require to correct file
William Morgan [Thu, 3 Sep 2009 16:35:23 +0000 (12:35 -0400)]
move open3 require to correct file

14 years agoMerge branch 'master' into next
William Morgan [Thu, 3 Sep 2009 15:23:05 +0000 (11:23 -0400)]
Merge branch 'master' into next

14 years agosup-sync: restore state on messages that don't already exist
Rich Lane [Sun, 23 Aug 2009 18:36:59 +0000 (11:36 -0700)]
sup-sync: restore state on messages that don't already exist

14 years agoRevert "Merge branch 'after-add-message-hook' into next"
William Morgan [Wed, 2 Sep 2009 13:45:11 +0000 (09:45 -0400)]
Revert "Merge branch 'after-add-message-hook' into next"

This reverts commit 67214e30d648ac9351b9898f8e1587d065264787.

This hook was causing sup-sync to fail on large mailboxes,
because it was keeping every message around in memory.

14 years agoMerge branch 'xapian-updates' into next
William Morgan [Tue, 1 Sep 2009 03:15:47 +0000 (23:15 -0400)]
Merge branch 'xapian-updates' into next

14 years agoremove use of Object#tap
Rich Lane [Sun, 30 Aug 2009 20:28:55 +0000 (13:28 -0700)]
remove use of Object#tap

14 years agoMerge branch 'logging' into next
William Morgan [Tue, 1 Sep 2009 03:04:05 +0000 (23:04 -0400)]
Merge branch 'logging' into next

14 years agomake SUP_LOG_LEVEL self-documenting
Carl Worth [Wed, 26 Aug 2009 21:35:25 +0000 (14:35 -0700)]
make SUP_LOG_LEVEL self-documenting

The idea here is that if someone is looking at the log and not seeing
the information of interest, then the log itself should tell them
how to get more information, (by suggesting to set SUP_LOG_LEVEL
to the next lower level).

14 years agoMerge branch 'master' into next
William Morgan [Tue, 1 Sep 2009 02:59:24 +0000 (22:59 -0400)]
Merge branch 'master' into next

14 years agoadd UTF-8 encoding string for ArchLinux systems
Israel Herraiz [Tue, 25 Aug 2009 09:29:01 +0000 (11:29 +0200)]
add UTF-8 encoding string for ArchLinux systems

in ArchLinux, UTF-8 encoding is identified by "utf8" instead of
"UTF-8".

14 years agoMerge branch 'reply-all-keybindings' into next
William Morgan [Tue, 1 Sep 2009 02:47:37 +0000 (22:47 -0400)]
Merge branch 'reply-all-keybindings' into next

14 years agoreply all keybindings
Rich Lane [Sun, 23 Aug 2009 18:49:02 +0000 (11:49 -0700)]
reply all keybindings

14 years agoMerge branch 'logging' into next
William Morgan [Tue, 1 Sep 2009 02:38:15 +0000 (22:38 -0400)]
Merge branch 'logging' into next

Conflicts:
lib/sup/hook.rb

14 years agominor: move hook load messages from info to debug
William Morgan [Tue, 1 Sep 2009 02:37:35 +0000 (22:37 -0400)]
minor: move hook load messages from info to debug

14 years agoMerge branch 'hook-local-vars' into next
William Morgan [Tue, 1 Sep 2009 02:33:10 +0000 (22:33 -0400)]
Merge branch 'hook-local-vars' into next

14 years agobugfix: clear cached lambda hook locals after hook call
William Morgan [Tue, 1 Sep 2009 02:32:56 +0000 (22:32 -0400)]
bugfix: clear cached lambda hook locals after hook call

14 years agorejigger sup-sync logic slightly
William Morgan [Tue, 1 Sep 2009 02:24:05 +0000 (22:24 -0400)]
rejigger sup-sync logic slightly

14 years agosup-sync: restore state on messages that don't already exist
Rich Lane [Mon, 31 Aug 2009 00:50:34 +0000 (17:50 -0700)]
sup-sync: restore state on messages that don't already exist

14 years agoMerge branch 'master' into next
William Morgan [Tue, 25 Aug 2009 14:07:10 +0000 (10:07 -0400)]
Merge branch 'master' into next

14 years agoremove obsolete Manifest.txt
William Morgan [Tue, 25 Aug 2009 14:04:49 +0000 (10:04 -0400)]
remove obsolete Manifest.txt

14 years agoMerge branch 'run-mailcap-fixes'
William Morgan [Tue, 25 Aug 2009 13:53:36 +0000 (09:53 -0400)]
Merge branch 'run-mailcap-fixes'

Conflicts:
lib/sup/message-chunks.rb

14 years agoMerge branch 'buffer-rolling'
William Morgan [Tue, 25 Aug 2009 13:53:04 +0000 (09:53 -0400)]
Merge branch 'buffer-rolling'

14 years agoMerge branch 'locking-refactor'
William Morgan [Tue, 25 Aug 2009 13:51:15 +0000 (09:51 -0400)]
Merge branch 'locking-refactor'

Conflicts:
bin/sup
bin/sup-sync-back
bin/sup-tweak-labels
lib/sup.rb
lib/sup/suicide.rb

14 years agoMerge branch 'ncurses-fixes'
William Morgan [Tue, 25 Aug 2009 13:39:18 +0000 (09:39 -0400)]
Merge branch 'ncurses-fixes'

Conflicts:
lib/sup/buffer.rb

14 years agoMerge branch 'various-api-refactors'
William Morgan [Tue, 25 Aug 2009 13:38:45 +0000 (09:38 -0400)]
Merge branch 'various-api-refactors'

14 years agoMerge branch 'logging'
William Morgan [Tue, 25 Aug 2009 13:38:33 +0000 (09:38 -0400)]
Merge branch 'logging'

14 years agoMerge branch 'xapian-updates' into next
William Morgan [Mon, 24 Aug 2009 23:21:22 +0000 (19:21 -0400)]
Merge branch 'xapian-updates' into next

14 years agoMerge branch 'after-add-message-hook' into next
William Morgan [Mon, 24 Aug 2009 22:44:13 +0000 (18:44 -0400)]
Merge branch 'after-add-message-hook' into next

Conflicts:

lib/sup/poll.rb

14 years agoadd Message#load_from_index! shortcut
Rich Lane [Sat, 22 Aug 2009 18:28:15 +0000 (11:28 -0700)]
add Message#load_from_index! shortcut

Message#parse_header is slow, taking up to 2/3 of the time spent loading
threads in thread-index-mode. This patch adds a shortcut method that the index
can use to efficiently initialize a message.

14 years agoadd an after-add-message hook
Kevin Riggle [Fri, 21 Aug 2009 01:57:42 +0000 (21:57 -0400)]
add an after-add-message hook

I want to do some unrelated processing on each message I receive, but I
don't want to block the message being added to the index.  This patch
adds a hook which runs /after/ the message is added to the index.

14 years agoMerge branch 'hook-local-vars' into next
William Morgan [Mon, 24 Aug 2009 22:35:37 +0000 (18:35 -0400)]
Merge branch 'hook-local-vars' into next

14 years agofix proc locals, which must use the old method trick
William Morgan [Mon, 24 Aug 2009 22:32:39 +0000 (18:32 -0400)]
fix proc locals, which must use the old method trick

For hook locals that are specified as procs (usually for performance
reasons), use methods instead of local variables. Sadly you don't get
all the regular variable semantics, but it is the only option for
delayed evaluation AFAICT.

14 years agoconvert a couple of arrays to sets for labels
Carl Worth [Thu, 20 Aug 2009 00:21:59 +0000 (17:21 -0700)]
convert a couple of arrays to sets for labels

This fixes some crashes when using 'l' in thread-view-mode that
have been present since commit 7aea418a8a62b7070eee764475fcfc0bdd8d58dd
("maintain labels as Sets rather than arrays").

14 years agoMerge branch 'hook-local-vars' into next
William Morgan [Sun, 23 Aug 2009 17:24:59 +0000 (13:24 -0400)]
Merge branch 'hook-local-vars' into next

Conflicts:
lib/sup/hook.rb

14 years agorewrite hookmanager to use eval for locals
William Morgan [Sun, 23 Aug 2009 17:11:14 +0000 (13:11 -0400)]
rewrite hookmanager to use eval for locals

This should fix all the issues that were cropping up when locals were faked
with method calls (the setter issue and the nil issue).

14 years agoMerge branch 'master' into next
William Morgan [Sat, 22 Aug 2009 14:56:15 +0000 (10:56 -0400)]
Merge branch 'master' into next

14 years agofix garbaged text in textfield when using ncursesw
Benoît PIERRE [Wed, 19 Aug 2009 20:56:55 +0000 (22:56 +0200)]
fix garbaged text in textfield when using ncursesw

Apparently, field_buffer content is not initialized to blanks when using
the wide-character version of ncurses. Forcing a call to
set_field_buffer fix the problem.

14 years agoMerge branch 'master' into next
William Morgan [Sat, 22 Aug 2009 14:49:59 +0000 (10:49 -0400)]
Merge branch 'master' into next

14 years agofix a thread merging bug introduced by refactoring in 59f8fc2
Alex Vandiver [Tue, 18 Aug 2009 18:30:00 +0000 (14:30 -0400)]
fix a thread merging bug introduced by refactoring in 59f8fc2

Signed-off-by: Alex Vandiver <alex@chmrr.net>
14 years agoMerge branch 'logging' into next
William Morgan [Sat, 22 Aug 2009 14:33:41 +0000 (10:33 -0400)]
Merge branch 'logging' into next

14 years agoswitch non-error imap messages to info from debug
William Morgan [Sat, 22 Aug 2009 14:33:19 +0000 (10:33 -0400)]
switch non-error imap messages to info from debug

14 years agominor logging output tweak
William Morgan [Sat, 22 Aug 2009 14:24:11 +0000 (10:24 -0400)]
minor logging output tweak

14 years agoMerge branch 'xapian-updates' into next
William Morgan [Sat, 22 Aug 2009 14:17:02 +0000 (10:17 -0400)]
Merge branch 'xapian-updates' into next

14 years agoxapian index format versioning
Rich Lane [Sun, 16 Aug 2009 20:28:56 +0000 (16:28 -0400)]
xapian index format versioning

14 years agomove all GDBM data into Xapian
Rich Lane [Sun, 16 Aug 2009 19:35:30 +0000 (12:35 -0700)]
move all GDBM data into Xapian

Keeping everything in Xapian means much better consistency in case of a crash.
Thread killing is now supported.

14 years agoMerge branch 'various-api-refactors' into next
William Morgan [Wed, 19 Aug 2009 18:34:34 +0000 (14:34 -0400)]
Merge branch 'various-api-refactors' into next

14 years agominor misc code tweaks
William Morgan [Wed, 19 Aug 2009 18:34:27 +0000 (14:34 -0400)]
minor misc code tweaks

14 years agohave mbox, maildir and imap sources (de)serialize labels nicely
William Morgan [Wed, 19 Aug 2009 18:32:46 +0000 (14:32 -0400)]
have mbox, maildir and imap sources (de)serialize labels nicely

At output time, rather than emitting a YAML Set (which is nasty), emit an array
of strings. At input time, normalize into a Set of labels.