]> git.cworth.org Git - sup/log
sup
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.

15 years agofix mbox splitting regexp
William Morgan [Tue, 28 Apr 2009 13:34:27 +0000 (09:34 -0400)]
fix mbox splitting regexp

I dunno. This helps with the "From problem", but at the expense of being
too specific than the mbox spec really demands. I don't think there's a
really right solution, in general (due to the mbox format being a
fundamentally broken one), but I'm hoping this will work with all modern
mbox files.

15 years agoMerge branch 'scanning-speedups' into next
William Morgan [Mon, 27 Apr 2009 00:03:41 +0000 (20:03 -0400)]
Merge branch 'scanning-speedups' into next

15 years agoaaaand fix up NON_EDITABLE_HEADERS
William Morgan [Mon, 27 Apr 2009 00:03:12 +0000 (20:03 -0400)]
aaaand fix up NON_EDITABLE_HEADERS

Since the case has changes but we're doing caseful
comparisons. Sigh.

15 years agoMerge branch 'scanning-speedups' into next
William Morgan [Sun, 26 Apr 2009 23:59:20 +0000 (19:59 -0400)]
Merge branch 'scanning-speedups' into next

15 years agobugfix: edit-message-mode headers broken by case changes
William Morgan [Sun, 26 Apr 2009 23:58:11 +0000 (19:58 -0400)]
bugfix: edit-message-mode headers broken by case changes

This is a lousy hack, but: capitalize header names when
they come back from Source.parse_raw_email_header, and everything
should work as before.

15 years agoMerge branch 'scanning-speedups' into next
William Morgan [Sun, 26 Apr 2009 22:22:50 +0000 (18:22 -0400)]
Merge branch 'scanning-speedups' into next

15 years agoMerge branch 'master' into next
William Morgan [Sun, 26 Apr 2009 22:22:46 +0000 (18:22 -0400)]
Merge branch 'master' into next

15 years agodon't automatically parse header on Message#new
William Morgan [Sun, 26 Apr 2009 22:18:26 +0000 (18:18 -0400)]
don't automatically parse header on Message#new

You must now explicitly call #parse_header (e.g. when loading
from the index) or #load_from_source! (e.g. when loading from
disk).

This prevents redundant loading from the source when adding to the
index, as #snippet must be called before adding, and that requires
loading the entire message from the source.

15 years agomake Index#sync_message take an extra speedy arg
William Morgan [Sun, 26 Apr 2009 22:16:48 +0000 (18:16 -0400)]
make Index#sync_message take an extra speedy arg

Previously it would check the index if docid and entry were nil,
even though nil is a valid result of a previous check. Add an
extra argument controlling whether this check is performed again.

Results in a minor speedup.

15 years agodisable extra (slow) sanity check in Index adding
William Morgan [Sun, 26 Apr 2009 22:15:01 +0000 (18:15 -0400)]
disable extra (slow) sanity check in Index adding

15 years agobetter sup-sync output
William Morgan [Sun, 26 Apr 2009 16:11:54 +0000 (12:11 -0400)]
better sup-sync output

15 years agomove MBox.parse_header -> Source.parse_raw_email_header
William Morgan [Sun, 26 Apr 2009 16:10:56 +0000 (12:10 -0400)]
move MBox.parse_header -> Source.parse_raw_email_header

15 years agodisable logging of email header cleanups
William Morgan [Sun, 26 Apr 2009 15:46:37 +0000 (11:46 -0400)]
disable logging of email header cleanups

I'm now pretty certain this logic is correct, and seeing these
messages was causing people some unnecessary grief. Commented
out for now.

15 years agochange email header parsing. MASSIVE SPEEDUP!
William Morgan [Sun, 26 Apr 2009 15:44:37 +0000 (11:44 -0400)]
change email header parsing. MASSIVE SPEEDUP!

restructure the email header parsing code to improve speed and to
improve API. MBox::read_header now returns a hash containing all
headers, with keys downcased but nothing else.

update Message#parse_header to accept this new format.

update unit tests to reflect new format.

The exciting news is that changes in how the parsing works have resulted
in a 480% speedup in message parsing speed (634 message/s vs 132
messages/s on my machine), across ALL source types. hell yes.

15 years agoreplace += with << in mbox reading
William Morgan [Sun, 26 Apr 2009 14:48:36 +0000 (10:48 -0400)]
replace += with << in mbox reading

there's a tremendous speed difference between these two operators,
though neither of these points are bottlenecks.

15 years agoremove vestigal mbox#read_body method
William Morgan [Sun, 26 Apr 2009 14:32:22 +0000 (10:32 -0400)]
remove vestigal mbox#read_body method

15 years agomake sup-files.rb print out all files when executed
William Morgan [Sun, 26 Apr 2009 14:28:16 +0000 (10:28 -0400)]
make sup-files.rb print out all files when executed

This makes it easy to do something like:
  vi `ruby ./sup-files.rb`
to edit all files.

15 years agoMerge branch 'edit-message-mode-longname' into next
William Morgan [Thu, 23 Apr 2009 13:18:16 +0000 (09:18 -0400)]
Merge branch 'edit-message-mode-longname' into next

15 years agoMerge branch 'master' into next
William Morgan [Thu, 23 Apr 2009 12:42:26 +0000 (08:42 -0400)]
Merge branch 'master' into next

15 years agoimprove mime-view and mime-decode hook documentation
William Morgan [Thu, 23 Apr 2009 12:41:19 +0000 (08:41 -0400)]
improve mime-view and mime-decode hook documentation

15 years agoChanged cc and bcc field editing to use Person.full_address instead of Person.longnam...
Stefan Lundström [Thu, 23 Apr 2009 12:02:13 +0000 (14:02 +0200)]
Changed cc and bcc field editing to use Person.full_address instead of Person.longname which includes the quotations of the name if needed.

15 years agoMerge branch 'master' into next
William Morgan [Mon, 13 Apr 2009 14:54:02 +0000 (07:54 -0700)]
Merge branch 'master' into next

15 years agotrivial: display attachment sizes
William Morgan [Mon, 13 Apr 2009 14:53:35 +0000 (07:53 -0700)]
trivial: display attachment sizes

15 years agoMerge branch 'dlload-bugfix' into next
William Morgan [Thu, 9 Apr 2009 19:29:19 +0000 (15:29 -0400)]
Merge branch 'dlload-bugfix' into next

15 years agoMerge branch 'better-buffer-list' into next
William Morgan [Thu, 9 Apr 2009 19:28:43 +0000 (15:28 -0400)]
Merge branch 'better-buffer-list' into next

15 years agoupdate NewUserGuide.txt with new keymappings
William Morgan [Thu, 9 Apr 2009 19:28:26 +0000 (15:28 -0400)]
update NewUserGuide.txt with new keymappings

15 years agoadd libc message for BSD users
William Morgan [Thu, 9 Apr 2009 19:26:28 +0000 (15:26 -0400)]
add libc message for BSD users

15 years agoimprove dlload of setlocale() and include cygwin
William Morgan [Thu, 9 Apr 2009 19:23:55 +0000 (15:23 -0400)]
improve dlload of setlocale() and include cygwin

Now we catch errors instead of dying completely, and also add
the correct path for cygwin.

15 years agoMerge branches 'dont-canonicalize-email-addresses', 'multi-remove-labels', 'merge...
William Morgan [Thu, 9 Apr 2009 17:35:50 +0000 (10:35 -0700)]
Merge branches 'dont-canonicalize-email-addresses', 'multi-remove-labels', 'merge-labels', 'background-save' and 'encoding-misspellings'

15 years agoMerge branch 'better-buffer-list' into next
William Morgan [Thu, 9 Apr 2009 17:22:55 +0000 (13:22 -0400)]
Merge branch 'better-buffer-list' into next

15 years agoRevert "Buffer switching, 'bn' for the next one and 'bp' for the previous"
William Morgan [Thu, 9 Apr 2009 17:22:42 +0000 (13:22 -0400)]
Revert "Buffer switching, 'bn' for the next one and 'bp' for the previous"

This reverts commit 6dfbd42fbc9ba9cb89f7fd9f1fb71e259a7032ca.

15 years agokeybindings: ; -> buffer-list-mode, b, B, +
William Morgan [Thu, 9 Apr 2009 17:17:34 +0000 (13:17 -0400)]
keybindings: ; -> buffer-list-mode, b, B, +

';' is mapped to buffer-list-mode. I really like this, because
then ;, j, k and enter are all you need to quickly swap between buffers.

Apply-to-tagged is now '+', from ';'. Sorry. But this also leaves
room for ':' as a future buffer-chooser device, e.g. by name, with tab
completion.

'B' is reenabled to mean swap-buffer-backwards.

15 years agoimprove buffer-list-mode to sort by atime and more
William Morgan [Thu, 9 Apr 2009 17:11:15 +0000 (13:11 -0400)]
improve buffer-list-mode to sort by atime and more

Sort buffers by atime, color by whether they're system buffers
or not, and show a '*' for buffers with unsaved content.

15 years agoadd unsaved? attribute to modes
William Morgan [Thu, 9 Apr 2009 17:10:48 +0000 (13:10 -0400)]
add unsaved? attribute to modes

This will be used for displaying a little '*' in buffer-list-mode.

15 years agoadd system and atime attributes to buffers
William Morgan [Thu, 9 Apr 2009 17:06:36 +0000 (13:06 -0400)]
add system and atime attributes to buffers

15 years agoMerge branch 'master' into next
William Morgan [Sun, 29 Mar 2009 16:38:21 +0000 (09:38 -0700)]
Merge branch 'master' into next

15 years agoMerge branch 'dont-canonicalize-email-addresses' into next
William Morgan [Sun, 29 Mar 2009 16:38:19 +0000 (09:38 -0700)]
Merge branch 'dont-canonicalize-email-addresses' into next

15 years agobugfix: catch invalid regular expressions in tag-matching
William Morgan [Sun, 29 Mar 2009 16:36:54 +0000 (09:36 -0700)]
bugfix: catch invalid regular expressions in tag-matching

15 years agoMerge branch 'labels-rework' into next
William Morgan [Sun, 29 Mar 2009 16:25:40 +0000 (12:25 -0400)]
Merge branch 'labels-rework' into next

15 years agoResync listable_labels and applyable_labels with reality
Nicolas Pouillard [Mon, 16 Mar 2009 18:40:09 +0000 (19:40 +0100)]
Resync listable_labels and applyable_labels with reality

The listable_labels method listed all labels except unread
which seems an unneeded complication/restriction, so it's
renamed to all_labels. The applyable_labels was in fact
user-defined labels so it's renamed to user_defined_labels.

15 years agoMerge branch 'default-colors'
William Morgan [Sun, 29 Mar 2009 15:42:32 +0000 (11:42 -0400)]
Merge branch 'default-colors'

15 years agobugfix bugfix: preserve recipient_email email address
William Morgan [Fri, 27 Mar 2009 12:37:44 +0000 (05:37 -0700)]
bugfix bugfix: preserve recipient_email email address

When responding to an email with a recipient_email field (i.e. an Envelope-To
header), look up the name in the account list, but keep the original email
address.

15 years agoMerge branch 'dont-canonicalize-email-addresses' into next
William Morgan [Thu, 26 Mar 2009 19:41:23 +0000 (12:41 -0700)]
Merge branch 'dont-canonicalize-email-addresses' into next

15 years agobugfix: reply from addresses drop the names
William Morgan [Thu, 26 Mar 2009 19:39:46 +0000 (12:39 -0700)]
bugfix: reply from addresses drop the names

In the new world of no Person canonicalization, we instead need to go
through Account (which does map the name) when we use #recipient_email.

Various comment improvements as well.

15 years agoupdate webpage to reference blog and fix 0.7 release date
William Morgan [Wed, 25 Mar 2009 17:07:12 +0000 (10:07 -0700)]
update webpage to reference blog and fix 0.7 release date

15 years agoMerge branch 'dont-canonicalize-email-addresses' into next
William Morgan [Wed, 25 Mar 2009 15:52:16 +0000 (08:52 -0700)]
Merge branch 'dont-canonicalize-email-addresses' into next

15 years agooverwrite from and to fields in index when saving a message
William Morgan [Wed, 25 Mar 2009 15:49:56 +0000 (08:49 -0700)]
overwrite from and to fields in index when saving a message

See comments in the code. This allows you to forcibly update the from/to
address stored in the index for messages, which means you can correct
the bad stuff stored in there due to previous versions of Sup that
canonicalized email addresses.

15 years agoproperly parse email addresses store in index
William Morgan [Wed, 25 Mar 2009 15:49:22 +0000 (08:49 -0700)]
properly parse email addresses store in index

See comments in code. Email addresses are stored in the index in a bizarre
format, but we can re-parse them.

15 years agoremove references to PersonManager in tests
William Morgan [Wed, 25 Mar 2009 15:06:32 +0000 (08:06 -0700)]
remove references to PersonManager in tests

15 years agoRemove the now useless PersonManager
Nicolas Pouillard [Mon, 16 Mar 2009 18:38:17 +0000 (19:38 +0100)]
Remove the now useless PersonManager

Replace PersonManager.person_for by Person.from_address
and PersonManager.people_for by Person.from_address_list

15 years agoClose the "remove email->name mapping" issue
Nicolas Pouillard [Mon, 16 Mar 2009 18:38:02 +0000 (19:38 +0100)]
Close the "remove email->name mapping" issue

15 years agoRemove the people.txt mapping.
Nicolas Pouillard [Mon, 16 Mar 2009 18:37:38 +0000 (19:37 +0100)]
Remove the people.txt mapping.

15 years agoMerge branch 'undo-manager' into next
William Morgan [Wed, 25 Mar 2009 14:44:12 +0000 (07:44 -0700)]
Merge branch 'undo-manager' into next

15 years agoAdd lib/sup/undo.rb to Manifest.txt
Nicolas Pouillard [Wed, 18 Mar 2009 17:24:54 +0000 (18:24 +0100)]
Add lib/sup/undo.rb to Manifest.txt

15 years agoMerge branch 'zsh-completion' into next
William Morgan [Wed, 25 Mar 2009 14:36:57 +0000 (07:36 -0700)]
Merge branch 'zsh-completion' into next

15 years agoMerge branch 'master' into next
William Morgan [Wed, 25 Mar 2009 14:36:52 +0000 (07:36 -0700)]
Merge branch 'master' into next

15 years agoInitial zsh completion.
Ingmar Vanhassel [Wed, 25 Mar 2009 13:56:07 +0000 (13:56 +0000)]
Initial zsh completion.

15 years agorework Rakefile for "rake gem" and "rake tarball"
William Morgan [Wed, 25 Mar 2009 13:25:48 +0000 (06:25 -0700)]
rework Rakefile for "rake gem" and "rake tarball"

Move version into sup-version.rb and filelist into sup-files.rb. Rake gem
now builds the gem; rake tarball builds the tarball. No Hoe involved.
Update release-script accordingly.

15 years agoMerge branch 'background-save' into next
William Morgan [Wed, 25 Mar 2009 12:36:24 +0000 (05:36 -0700)]
Merge branch 'background-save' into next

15 years agomake ThreadIndexMode#save optionally threaded
William Morgan [Wed, 25 Mar 2009 12:33:45 +0000 (05:33 -0700)]
make ThreadIndexMode#save optionally threaded

The call to #save during #cleanup needs to block because this is where
state gets saved immediately before exit. Other calls to #save, e.g.
those triggered by "$", can be backgrounded.

15 years agoMerge branch 'merge-labels' into next
William Morgan [Wed, 25 Mar 2009 03:22:11 +0000 (20:22 -0700)]
Merge branch 'merge-labels' into next

15 years agobackground-threadify message state saving
William Morgan [Wed, 25 Mar 2009 03:21:21 +0000 (20:21 -0700)]
background-threadify message state saving

15 years agoMerge branch 'sigwinch' into next
William Morgan [Mon, 23 Mar 2009 16:23:33 +0000 (12:23 -0400)]
Merge branch 'sigwinch' into next

15 years agoRevert "redraw screen upon sigwinch"
William Morgan [Mon, 23 Mar 2009 16:23:06 +0000 (12:23 -0400)]
Revert "redraw screen upon sigwinch"

This reverts commit 9bc61b52f1a4fb3492e3799240815ed0c2a7b67f.

15 years agodon't add :unread and :inbox for dupes
William Morgan [Mon, 23 Mar 2009 15:55:09 +0000 (08:55 -0700)]
don't add :unread and :inbox for dupes

Allow merging in of labels from duplicate messages, EXCEPT for
:unread and :inbox labels. (These two have special semantics
and, in contrast to the other special-semantics labels, might
appear on a new message.)

15 years agoMerge branch 'default-colors' into next
William Morgan [Mon, 23 Mar 2009 15:35:19 +0000 (08:35 -0700)]
Merge branch 'default-colors' into next

15 years agoforeground colors should stay "black", not "default"
William Morgan [Mon, 23 Mar 2009 15:33:24 +0000 (08:33 -0700)]
foreground colors should stay "black", not "default"

Whoops. The previous change was overbroad. Background colors that were "black"
should now be "default", but foreground "black" should stay "black".

15 years agoMerge branch 'default-colors' into next
William Morgan [Mon, 23 Mar 2009 15:21:20 +0000 (08:21 -0700)]
Merge branch 'default-colors' into next

15 years agochange default background colors from "black" to "default"
William Morgan [Mon, 23 Mar 2009 15:19:07 +0000 (08:19 -0700)]
change default background colors from "black" to "default"

This allows transparent terminals to work correctly.

Thanks to Chris Benuzzi <cbenuzzi@gmail.com>.

15 years agomake ncurses use terminal default colors
Mark Alexander [Mon, 23 Mar 2009 15:08:13 +0000 (11:08 -0400)]
make ncurses use terminal default colors

15 years agoMerge branch 'sigwinch' into next
William Morgan [Mon, 23 Mar 2009 14:59:21 +0000 (10:59 -0400)]
Merge branch 'sigwinch' into next

15 years agoMerge branch 'encoding-misspellings' into next
William Morgan [Mon, 23 Mar 2009 14:56:32 +0000 (10:56 -0400)]
Merge branch 'encoding-misspellings' into next

15 years agodecoding: handle more misspellings, in particular ISO-8859-15
Nicolas Pouillard [Mon, 16 Mar 2009 18:56:17 +0000 (19:56 +0100)]
decoding: handle more misspellings, in particular ISO-8859-15

15 years agoFix a bug in sup-tweak-label when multiple sources are given.
Nicolas Pouillard [Mon, 16 Mar 2009 18:41:08 +0000 (19:41 +0100)]
Fix a bug in sup-tweak-label when multiple sources are given.

Resent...

15 years agoMerge branch 'roll-buffers' into next
William Morgan [Mon, 23 Mar 2009 14:51:19 +0000 (10:51 -0400)]
Merge branch 'roll-buffers' into next

15 years agoBuffer switching, 'bn' for the next one and 'bp' for the previous
Nicolas Pouillard [Mon, 16 Mar 2009 18:36:28 +0000 (19:36 +0100)]
Buffer switching, 'bn' for the next one and 'bp' for the previous

15 years agoMerge branch 'multi-remove-labels' into next
William Morgan [Mon, 23 Mar 2009 14:46:00 +0000 (10:46 -0400)]
Merge branch 'multi-remove-labels' into next

Conflicts:

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

15 years agoAllow multi_edit_labels to remove labels using -lab (the "; l" key binding)
Nicolas Pouillard [Mon, 16 Mar 2009 18:35:43 +0000 (19:35 +0100)]
Allow multi_edit_labels to remove labels using -lab (the "; l" key binding)

15 years agoMerge branch 'master' into next
William Morgan [Mon, 23 Mar 2009 14:38:28 +0000 (10:38 -0400)]
Merge branch 'master' into next

15 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.

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

15 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.

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

15 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.

15 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

15 years agoredraw screen upon sigwinch
William Morgan [Mon, 23 Mar 2009 12:27:27 +0000 (08:27 -0400)]
redraw screen upon sigwinch

I feel like I tried this at some point and it didn't work, but I don't
remember the specifics.

Modified from a patch from Liam O'Connor-Davis <whiteslug@gmail.com>

15 years agoMerge branch 'master' into next
William Morgan [Sun, 22 Mar 2009 17:49:36 +0000 (10:49 -0700)]
Merge branch 'master' into next

15 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!