]> git.cworth.org Git - sup/log
sup
15 years agoMerge branch 'master' into next
William Morgan [Fri, 5 Jun 2009 15:21:38 +0000 (11:21 -0400)]
Merge branch 'master' into next

15 years agoupdate changelog, etc for 0.8 release
William Morgan [Fri, 5 Jun 2009 15:01:37 +0000 (11:01 -0400)]
update changelog, etc for 0.8 release

15 years agoMerge branch 'enclosed-message-display-tweaks' into next
William Morgan [Fri, 5 Jun 2009 14:40:53 +0000 (10:40 -0400)]
Merge branch 'enclosed-message-display-tweaks' into next

15 years agoMerge branch 'master' into next
William Morgan [Fri, 5 Jun 2009 14:40:51 +0000 (10:40 -0400)]
Merge branch 'master' into next

15 years agoprettier printing of enclosed messages
Israel Herraiz [Fri, 29 May 2009 12:48:06 +0000 (14:48 +0200)]
prettier printing of enclosed messages

Print enclosed messages with only some selected headers instead of the full
headers, just as "normal" messages.

15 years agodon't jump to the next open message when expanding
William Morgan [Fri, 5 Jun 2009 14:34:31 +0000 (10:34 -0400)]
don't jump to the next open message when expanding

When pressing enter to expand an entire message, don't jump to the next
open message. Only jump when you've collapsed the message.

15 years agoAdd V to view a raw message (headers and body).
Ben Walton [Thu, 4 Jun 2009 16:03:10 +0000 (12:03 -0400)]
Add V to view a raw message (headers and body).

This is an augment of the already existing view header (H) command,
but allows viewing of all mime parts in their raw form, etc.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoMerge branch 'master' into next
William Morgan [Fri, 5 Jun 2009 03:35:06 +0000 (23:35 -0400)]
Merge branch 'master' into next

15 years agomake enter collapse current message in thread-view-mode
William Morgan [Fri, 5 Jun 2009 03:32:28 +0000 (23:32 -0400)]
make enter collapse current message in thread-view-mode

Pressing enter while over a text region in thread-view-mode will now
collapse the current message and move the cursor to the next open
message. (Behavior on quoted regions, sigs, attachments, etc. is
unchanged.)

This means that you can scan through a thread pretty rapidly by pressing
enter if you want to collapse the current message, or 'n' if you want
to keep it open.

15 years agoMerge branch 'master' into next
William Morgan [Tue, 2 Jun 2009 16:43:21 +0000 (09:43 -0700)]
Merge branch 'master' into next

15 years agoremove vestigal Iconv.normalize method
William Morgan [Tue, 2 Jun 2009 16:42:55 +0000 (09:42 -0700)]
remove vestigal Iconv.normalize method

15 years agohandle nil charset on attachments
Mark Alexander [Tue, 2 Jun 2009 16:29:13 +0000 (09:29 -0700)]
handle nil charset on attachments

15 years agoMerge branch 'master' into next
William Morgan [Tue, 2 Jun 2009 14:41:41 +0000 (07:41 -0700)]
Merge branch 'master' into next

Conflicts:

lib/sup/poll.rb

15 years agorefactor iconv stuff, and normalize message body and headers
William Morgan [Tue, 2 Jun 2009 14:39:18 +0000 (07:39 -0700)]
refactor iconv stuff, and normalize message body and headers

- Message body and headers are now normalized to the current encoding.
  This should limit the amount of unprintable characters on the screen.
- No more MessageFormatError (was never being thrown anyways).
- Move exception handling to Iconv.easy_decode
- No more Message#convert_from, since Iconv.easy_decode does it all now.

15 years agoMerge branch 'master' into next
William Morgan [Sun, 31 May 2009 15:59:19 +0000 (08:59 -0700)]
Merge branch 'master' into next

15 years agoyet another utf8 bugfix: fix string subsetting
William Morgan [Sun, 31 May 2009 15:58:16 +0000 (08:58 -0700)]
yet another utf8 bugfix: fix string subsetting

... with a HORRIBLE SLOW HACK!

15 years agominor display_length optimization
William Morgan [Sun, 31 May 2009 15:57:56 +0000 (08:57 -0700)]
minor display_length optimization

15 years agoMerge branch 'master' into next
William Morgan [Sun, 31 May 2009 01:03:18 +0000 (21:03 -0400)]
Merge branch 'master' into next

15 years agoUse rake/packagegemtask
Richard Brown [Wed, 25 Mar 2009 16:00:50 +0000 (16:00 +0000)]
Use rake/packagegemtask

Add back tarball task

15 years agomove rfc2047 require to proper place
William Morgan [Sun, 31 May 2009 00:55:05 +0000 (20:55 -0400)]
move rfc2047 require to proper place

15 years agoMerge branch 'master' into next
William Morgan [Sun, 31 May 2009 00:15:33 +0000 (17:15 -0700)]
Merge branch 'master' into next

15 years agoutf8 bugfix: clear lines correctly
William Morgan [Sun, 31 May 2009 00:14:34 +0000 (17:14 -0700)]
utf8 bugfix: clear lines correctly

String#display_length must be used when clearing to the right of lines.

15 years agominor display optimization
William Morgan [Sun, 31 May 2009 00:11:01 +0000 (17:11 -0700)]
minor display optimization

Don't blank to the right unless this is the last thing we're drawing
in the line.

Not sure how much of a speedup this will give, if any, but hey, precious
milliseconds.

15 years agoMerge commit 'bwalton/bw/flexible_sent' into next
William Morgan [Thu, 28 May 2009 16:26:29 +0000 (12:26 -0400)]
Merge commit 'bwalton/bw/flexible_sent' into next

15 years agoCollapse attr_reader lines
Ben Walton [Sat, 9 May 2009 01:25:45 +0000 (21:25 -0400)]
Collapse attr_reader lines

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoSmall cleanup: Don't use $config in main code.
Ben Walton [Sat, 9 May 2009 01:23:48 +0000 (21:23 -0400)]
Small cleanup: Don't use $config in main code.

Switched use of $config[:sent_source] to SentManager.source_uri
to keep $config use limited to startup/initialization.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoSent label handling change
Ben Walton [Thu, 7 May 2009 21:46:51 +0000 (17:46 -0400)]
Sent label handling change

Make PollManager add the 'sent' label if the source it's collecting
messages from is the configured sent source.  Remove the sent label
from SentLoader, which makes it even less 'special.'

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agosup-config: add awareness of non-default sent source
Ben Walton [Thu, 7 May 2009 21:23:50 +0000 (17:23 -0400)]
sup-config: add awareness of non-default sent source

The user is now prompted to select a source to store sent mail in.
Only sources that are capable of storing mail are presented.  The
default sup://sent is available as an option too.

15 years agoSentManager: rework handling to allow for user specified source
Ben Walton [Thu, 7 May 2009 02:44:24 +0000 (22:44 -0400)]
SentManager: rework handling to allow for user specified source

* The handling of SentManager now allows for a parameter in config.yaml
  called sent_source.  This parameter should be the URI of the source
  that the users wishes to store outbound mail in.

* The default is sup://sent

* A FatalSourceError is raised in the event that sent_source is
  set to a source type that doesn't support the store_message() method.

* SentManager and SentLoader have been somewhat decoupled.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoAdd store_message to IMAP, mbox and Maildir sources.
Ben Walton [Thu, 7 May 2009 02:32:50 +0000 (22:32 -0400)]
Add store_message to IMAP, mbox and Maildir sources.

With this method, each of the named source types is now capable of
acting as a destination for sent mail.

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

Conflicts:

lib/sup/modes/thread-index-mode.rb

15 years agominor update of undo message for labeling one thread
William Morgan [Thu, 28 May 2009 14:58:57 +0000 (10:58 -0400)]
minor update of undo message for labeling one thread

15 years agoMerge branch 'parser-user-query-fix'
William Morgan [Thu, 28 May 2009 14:56:14 +0000 (10:56 -0400)]
Merge branch 'parser-user-query-fix'

15 years agoMerge commit 'origin/utf8-fixes'
William Morgan [Thu, 28 May 2009 14:56:05 +0000 (10:56 -0400)]
Merge commit 'origin/utf8-fixes'

15 years agoMerge commit 'origin/undo-manager'
William Morgan [Thu, 28 May 2009 14:45:06 +0000 (10:45 -0400)]
Merge commit 'origin/undo-manager'

Conflicts:

lib/sup/modes/thread-index-mode.rb

15 years agoMerge commit 'origin/various-mbox-fixes'
William Morgan [Thu, 28 May 2009 14:31:01 +0000 (10:31 -0400)]
Merge commit 'origin/various-mbox-fixes'

Conflicts:

lib/sup/mbox.rb
test/test_mbox_parsing.rb

15 years agoMerge commit 'origin/scanning-speedups'
William Morgan [Thu, 28 May 2009 14:29:59 +0000 (10:29 -0400)]
Merge commit 'origin/scanning-speedups'

Conflicts:

bin/sup-sync
lib/sup/index.rb

15 years agoMerge branch 'labels-before-subj' into next
William Morgan [Wed, 27 May 2009 16:09:57 +0000 (12:09 -0400)]
Merge branch 'labels-before-subj' into next

15 years agoput labels before subject in thread index view
Mark Alexander [Sat, 23 May 2009 18:25:57 +0000 (11:25 -0700)]
put labels before subject in thread index view

This patch is probably controversial, and I expect it
to be rejected.  But I really like the way Gmail puts
the labels before the subject, and I've duplicated that here.
It helps out at work, where subject lines tend to be very
long, pushing the labels past the right edge of the window.

15 years agoMerge branch 'master' into next
William Morgan [Wed, 27 May 2009 14:19:13 +0000 (10:19 -0400)]
Merge branch 'master' into next

15 years agoRemove duplicate line
Alex Vandiver [Sat, 23 May 2009 04:59:23 +0000 (00:59 -0400)]
Remove duplicate line

15 years agoStandardize on backquotes for program invocations, single quotes for keypresses,...
Alex Vandiver [Thu, 19 Feb 2009 05:44:03 +0000 (00:44 -0500)]
Standardize on backquotes for program invocations, single quotes for keypresses, and double-quotes for everything else

15 years agoMinor typo fix
Alex Vandiver [Thu, 19 Feb 2009 05:37:39 +0000 (00:37 -0500)]
Minor typo fix

15 years agoCorrect "Appending A" to "Appendix A"
Alex Vandiver [Thu, 19 Feb 2009 05:37:26 +0000 (00:37 -0500)]
Correct "Appending A" to "Appendix A"

15 years agoMerge branch 'master' into next
William Morgan [Tue, 26 May 2009 21:43:07 +0000 (14:43 -0700)]
Merge branch 'master' into next

15 years agoenforce label uniqueness and internedness
William Morgan [Tue, 26 May 2009 21:39:40 +0000 (14:39 -0700)]
enforce label uniqueness and internedness

This fixes some bugs where sources have an "inbox" label specified, which
was previously treated as different from the auto-applied :inbox label, etc.

15 years agominor comment tweak
William Morgan [Tue, 26 May 2009 21:34:58 +0000 (14:34 -0700)]
minor comment tweak

15 years agoMerge branch 'master' into next
William Morgan [Tue, 26 May 2009 21:23:04 +0000 (14:23 -0700)]
Merge branch 'master' into next

15 years agofencepost bug: thread size wrong in log
William Morgan [Tue, 26 May 2009 21:22:37 +0000 (14:22 -0700)]
fencepost bug: thread size wrong in log

15 years agoMerge branch 'utf8-fixes' into next
William Morgan [Wed, 20 May 2009 22:11:10 +0000 (15:11 -0700)]
Merge branch 'utf8-fixes' into next

15 years agoremove debugging change
William Morgan [Wed, 20 May 2009 22:11:04 +0000 (15:11 -0700)]
remove debugging change

15 years agoMerge branch 'master' into next
William Morgan [Wed, 20 May 2009 18:48:14 +0000 (11:48 -0700)]
Merge branch 'master' into next

15 years agobugfix: use 64 colors, not 16
William Morgan [Wed, 20 May 2009 18:47:54 +0000 (11:47 -0700)]
bugfix: use 64 colors, not 16

15 years agoMerge branch 'utf8-fixes' into next
William Morgan [Wed, 20 May 2009 01:06:07 +0000 (18:06 -0700)]
Merge branch 'utf8-fixes' into next

15 years agomore display_length changes
William Morgan [Wed, 20 May 2009 01:04:13 +0000 (18:04 -0700)]
more display_length changes

15 years agofix display of utf8 characters so that widths are correct
William Morgan [Wed, 20 May 2009 00:39:23 +0000 (20:39 -0400)]
fix display of utf8 characters so that widths are correct

Based on a patch from Einar Lielmanis <einars@gmail.com>

15 years agomime-encode utf8 addressess and subjects in outgoing mail
William Morgan [Wed, 20 May 2009 00:27:22 +0000 (20:27 -0400)]
mime-encode utf8 addressess and subjects in outgoing mail

Based heavily on a patch from Helge Titlestad <helgedt@tihlde.org>.

15 years agoMerge commit 'origin/sup-sync-improvements'
William Morgan [Tue, 19 May 2009 23:52:52 +0000 (19:52 -0400)]
Merge commit 'origin/sup-sync-improvements'

15 years agoMerge branch 'master' into next
William Morgan [Mon, 18 May 2009 19:14:03 +0000 (15:14 -0400)]
Merge branch 'master' into next

15 years agobugfix: label counts not set correctly on new messages
William Morgan [Mon, 18 May 2009 19:12:25 +0000 (15:12 -0400)]
bugfix: label counts not set correctly on new messages

New labels were being deleted when label-list-mode was brought
up before they were sync'ed to disk. This fixes that, although
this whole thing should be changed. (See comments.)

15 years agoMerge branch 'parser-user-query-fix' into next
William Morgan [Mon, 18 May 2009 18:18:01 +0000 (14:18 -0400)]
Merge branch 'parser-user-query-fix' into next

15 years agoMerge branch 'master' into next
William Morgan [Mon, 18 May 2009 18:17:57 +0000 (14:17 -0400)]
Merge branch 'master' into next

15 years agoadd a --very-verbose option to sup-tweak-labels
William Morgan [Mon, 18 May 2009 18:16:59 +0000 (14:16 -0400)]
add a --very-verbose option to sup-tweak-labels

15 years agomake a Index#run_query method, update sup-tweak-labels
William Morgan [Mon, 18 May 2009 17:25:52 +0000 (13:25 -0400)]
make a Index#run_query method, update sup-tweak-labels

Index#run_query is now a way of running a query through Sup's
query-parsing and execution framework without being in a
curses context.

15 years agomake parse_user_query_string raise exceptions on error
William Morgan [Mon, 18 May 2009 15:34:57 +0000 (11:34 -0400)]
make parse_user_query_string raise exceptions on error

I.e. instead of flashing an error message. This makes it usable from
non-curses contexts, e.g. sup-tweak-labels.

15 years agoMerge branch 'master' into next
William Morgan [Mon, 18 May 2009 15:21:22 +0000 (11:21 -0400)]
Merge branch 'master' into next

15 years agochmod a+x bin/*
Kirill Smelkov [Sat, 16 May 2009 15:01:14 +0000 (19:01 +0400)]
chmod a+x bin/*

The files in there are all executables, and this simplifies running sup
in-tree.

15 years agoChronic context fix
Marcus Williams [Wed, 13 May 2009 09:02:31 +0000 (10:02 +0100)]
Chronic context fix

Chronic should use a context of :past for email date searches as emails
tend to be in the past. This fixes a problem when the wrong year is
guessed. To search for emails in the future you now need to be less
ambiguous (1 apr 2099 instead of 1 apr).

15 years agoMerge commit 'origin/string-split-fixes'
William Morgan [Mon, 18 May 2009 14:32:25 +0000 (07:32 -0700)]
Merge commit 'origin/string-split-fixes'

15 years agoMerge commit 'origin/edit-message-mode-longname'
William Morgan [Mon, 18 May 2009 14:32:13 +0000 (07:32 -0700)]
Merge commit 'origin/edit-message-mode-longname'

15 years agoMerge branch 'better-buffer-list'
William Morgan [Mon, 18 May 2009 14:31:55 +0000 (07:31 -0700)]
Merge branch 'better-buffer-list'

15 years agoMerge commit 'origin/labels-rework'
William Morgan [Mon, 18 May 2009 14:31:37 +0000 (07:31 -0700)]
Merge commit 'origin/labels-rework'

15 years agoMerge branch 'zsh-completion'
William Morgan [Mon, 18 May 2009 14:28:39 +0000 (07:28 -0700)]
Merge branch 'zsh-completion'

15 years agoMerge branch 'dlload-bugfix'
William Morgan [Mon, 18 May 2009 14:28:23 +0000 (07:28 -0700)]
Merge branch 'dlload-bugfix'

15 years agoMerge branch 'undo-manager' into next
William Morgan [Mon, 18 May 2009 14:22:15 +0000 (07:22 -0700)]
Merge branch 'undo-manager' into next

Conflicts:

lib/sup/modes/thread-index-mode.rb

15 years agoMerge branch 'various-mbox-fixes' into next
William Morgan [Mon, 18 May 2009 14:10:27 +0000 (07:10 -0700)]
Merge branch 'various-mbox-fixes' into next

Conflicts:

lib/sup/mbox.rb
test/test_mbox_parsing.rb

15 years agoMerge branch 'master' into next
William Morgan [Sun, 17 May 2009 20:22:37 +0000 (13:22 -0700)]
Merge branch 'master' into next

15 years agoclean up undo logic
William Morgan [Sun, 17 May 2009 20:19:36 +0000 (13:19 -0700)]
clean up undo logic

Various changes:
- Use UndoManager#register block form where possible
- Clean up pluralization code
- Clean up undo return values
- Minor logic fixes

Still some work to do here to make undo lambda returning
more consistent.

15 years agomake UndoManager#register take a block
William Morgan [Sun, 17 May 2009 20:18:25 +0000 (13:18 -0700)]
make UndoManager#register take a block

Also clean up logging messages, argument handling, etc.

15 years agominor bugfix: rubymail sometimes returns a nil content_type
William Morgan [Sun, 17 May 2009 19:31:36 +0000 (12:31 -0700)]
minor bugfix: rubymail sometimes returns a nil content_type

15 years agocheck for a correct date on mbox From lines
William Morgan [Sun, 17 May 2009 18:37:43 +0000 (11:37 -0700)]
check for a correct date on mbox From lines

Determine a splitting line by looking for a From, a something else,
and a parseable date.

15 years agomake the default MBox start offset be 0, not nil
William Morgan [Sun, 17 May 2009 18:36:52 +0000 (11:36 -0700)]
make the default MBox start offset be 0, not nil

This makes writing unit tests easier.

15 years agomake MBox::Loader#next return nil once EOF is hit
William Morgan [Sun, 17 May 2009 18:36:06 +0000 (11:36 -0700)]
make MBox::Loader#next return nil once EOF is hit

Previously it was raising a debugging exception. This is a better
interface for writing unit tests against.

15 years agoMerge branch 'string-split-fixes' into next
William Morgan [Wed, 13 May 2009 20:53:47 +0000 (13:53 -0700)]
Merge branch 'string-split-fixes' into next

Conflicts:
lib/sup/index.rb

15 years agoMerge branch 'master' into next
William Morgan [Wed, 13 May 2009 20:53:00 +0000 (13:53 -0700)]
Merge branch 'master' into next

15 years agobugfix: further fixing of split usage
William Morgan [Wed, 13 May 2009 20:08:51 +0000 (13:08 -0700)]
bugfix: further fixing of split usage

Clean up a couple remaining non-optimal uses of String#split.

15 years agobugfix: index label parsing code incorrect
William Morgan [Wed, 13 May 2009 20:07:14 +0000 (13:07 -0700)]
bugfix: index label parsing code incorrect

Apparently split(/\s+/) is significantly different from split (which is
equivalent to split(" ")) in at least one case:

>> " a b  c   ".split(/\s+/)
=> ["", "a", "b", "c"]
>> " a b  c   ".split
=> ["a", "b", "c"]

This patch refactors the majority of uses of split(/\s+/) to a String#symbolize
method, which is correct.

15 years agominor: remove ucfirst (use capitalize instead)
William Morgan [Wed, 13 May 2009 19:47:50 +0000 (12:47 -0700)]
minor: remove ucfirst (use capitalize instead)

15 years agoMerge branch 'better-buffer-list' into next
William Morgan [Mon, 4 May 2009 14:46:30 +0000 (07:46 -0700)]
Merge branch 'better-buffer-list' into next

15 years agoKeymap: improve behaviour of apply to tagged in thread index
Ben Walton [Mon, 4 May 2009 14:44:11 +0000 (10:44 -0400)]
Keymap: improve behaviour of apply to tagged in thread index

Make = a synonym for + in the thread index mode so that shift isn't
required to apply an action to all tagged messages.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoMerge branch 'sup-sync-improvements' into next
William Morgan [Mon, 4 May 2009 12:48:17 +0000 (05:48 -0700)]
Merge branch 'sup-sync-improvements' into next

Conflicts:

bin/sup-sync

15 years agoMerge branch 'dlload-bugfix' into next
William Morgan [Mon, 4 May 2009 12:45:27 +0000 (05:45 -0700)]
Merge branch 'dlload-bugfix' into next

15 years agobugfix: typo
William Morgan [Mon, 4 May 2009 12:43:24 +0000 (05:43 -0700)]
bugfix: typo

15 years agoMerge branch 'master' into next
William Morgan [Mon, 4 May 2009 12:41:43 +0000 (05:41 -0700)]
Merge branch 'master' into next

15 years agobugfix: poll.rb assuming all messages have froms
William Morgan [Mon, 4 May 2009 12:37:04 +0000 (05:37 -0700)]
bugfix: poll.rb assuming all messages have froms

This was throwing an exception, so now it's protected. The from is only
necessary for the after-poll hook.

15 years agoimprove sup-sync output
William Morgan [Mon, 4 May 2009 12:32:06 +0000 (05:32 -0700)]
improve sup-sync output

Report every 15 seconds, and show the sender for added messages.

15 years agomake sup-sync's --start-at actually useful
William Morgan [Mon, 4 May 2009 12:29:54 +0000 (05:29 -0700)]
make sup-sync's --start-at actually useful

Using --start-at with sup-sync will now seek forward to the next valid message
if given an offset that's not on a message boundary. This makes it possible to
use that option without going through the laborious process of finding the
exact message boundary.

Also die unless --start-at is used with only one source, since using it across
multiple sources is almost definitely an error. (And if that's really what you
want, you can just call sup-sync multiple times.)

15 years agoMerge branch 'various-mbox-fixes' into next
William Morgan [Wed, 29 Apr 2009 17:53:19 +0000 (13:53 -0400)]
Merge branch 'various-mbox-fixes' into next

Conflicts:

lib/sup/mbox.rb

15 years agodon't require has_errors? in Source objects
William Morgan [Wed, 29 Apr 2009 17:48:18 +0000 (13:48 -0400)]
don't require has_errors? in Source objects

Properly speaking that's a function of a Recoverable object, not of a
source, so only call that method when it's availably.

15 years agomake raw_message faster with string += => <<
William Morgan [Wed, 29 Apr 2009 17:47:24 +0000 (13:47 -0400)]
make raw_message faster with string += => <<

this method ain't used that much, but << is significantly
faster than += for Strings.