]> git.cworth.org Git - sup/log
sup
14 years agomove xapian index loading into load_index
Rich Lane [Thu, 6 Aug 2009 19:32:44 +0000 (12:32 -0700)]
move xapian index loading into load_index

14 years agoMerge branch 'master' into next
William Morgan [Tue, 11 Aug 2009 20:02:30 +0000 (16:02 -0400)]
Merge branch 'master' into next

14 years agoallow sup-sync to use --start-at with --restored
William Morgan [Mon, 3 Aug 2009 16:24:10 +0000 (12:24 -0400)]
allow sup-sync to use --start-at with --restored

14 years agoMerge branch 'locking-refactor' into next
William Morgan [Fri, 7 Aug 2009 01:36:36 +0000 (21:36 -0400)]
Merge branch 'locking-refactor' into next

14 years agoMerge branch 'ncurses-fixes' into next
William Morgan [Fri, 7 Aug 2009 01:36:22 +0000 (21:36 -0400)]
Merge branch 'ncurses-fixes' into next

14 years agorefactor index locking interaction and replace suicidemanager
William Morgan [Fri, 7 Aug 2009 01:33:19 +0000 (21:33 -0400)]
refactor index locking interaction and replace suicidemanager

Since SIGTERM now works, we have a better way of killing a remote
process than SuicideManager. So replace that with a $die global.
Also refactor the interactive locking code into a separate module
so as not to pollute index.rb with such trivial concerns.

14 years agodie gracefully upon SIGKILL
William Morgan [Fri, 7 Aug 2009 00:25:41 +0000 (20:25 -0400)]
die gracefully upon SIGKILL

14 years agoMerge branch 'ncurses-fixes' into next
William Morgan [Thu, 6 Aug 2009 18:30:12 +0000 (14:30 -0400)]
Merge branch 'ncurses-fixes' into next

Conflicts:
bin/sup
lib/sup/buffer.rb

14 years agorewrap getch in select, handle sigwinch manually
William Morgan [Thu, 6 Aug 2009 16:21:46 +0000 (12:21 -0400)]
rewrap getch in select, handle sigwinch manually

This is necessary to operate with many versions of the ruby ncurses library,
all of which block threads when getch is being called. But this means we can't
use getch to determine a sigwich, since we won't see it until an actual key is
pressed. so we handle sigwinch ourselves.

14 years agoRevert "Merge branch 'ncurses-fixes' into next"
William Morgan [Wed, 5 Aug 2009 20:39:15 +0000 (16:39 -0400)]
Revert "Merge branch 'ncurses-fixes' into next"

This reverts commit 96b55e2fd39105679dcbb2aa1449a2a09ed5a8c8.

14 years agoMerge branch 'ncurses-fixes' into next
William Morgan [Wed, 5 Aug 2009 19:55:47 +0000 (15:55 -0400)]
Merge branch 'ncurses-fixes' into next

14 years agoMerge branch 'master' into next
William Morgan [Wed, 5 Aug 2009 19:55:42 +0000 (15:55 -0400)]
Merge branch 'master' into next

14 years agotrap term
William Morgan [Wed, 5 Aug 2009 19:41:45 +0000 (15:41 -0400)]
trap term

14 years agoimprove ncurses key handling for sigwinch and sigint
William Morgan [Wed, 5 Aug 2009 19:40:02 +0000 (15:40 -0400)]
improve ncurses key handling for sigwinch and sigint

see comments. adding a nodelay call before each getch means we don't need a
select() call, which means that we can get sigwinch and sigint signals from
ncurses.

14 years agoport ezyang@mit.edu's chattyness patch over to xapian/ferret split
William Morgan [Wed, 5 Aug 2009 19:51:29 +0000 (15:51 -0400)]
port ezyang@mit.edu's chattyness patch over to xapian/ferret split

14 years agoxapian: drop excessively long terms
Rich Lane [Sat, 1 Aug 2009 22:56:09 +0000 (15:56 -0700)]
xapian: drop excessively long terms

14 years agoMerge branch 'xapian'
William Morgan [Mon, 3 Aug 2009 16:29:26 +0000 (12:29 -0400)]
Merge branch 'xapian'

Conflicts:
lib/sup/index.rb

14 years agoMerge branch 'xapian' into next
William Morgan [Tue, 28 Jul 2009 16:00:58 +0000 (12:00 -0400)]
Merge branch 'xapian' into next

14 years agoMerge branch 'master' into next
William Morgan [Tue, 28 Jul 2009 16:00:55 +0000 (12:00 -0400)]
Merge branch 'master' into next

14 years agoxapian: fix issue with empty ferret query
Rich Lane [Tue, 28 Jul 2009 03:19:30 +0000 (20:19 -0700)]
xapian: fix issue with empty ferret query

14 years agoxapian: fix MAX_DATE
Rich Lane [Tue, 28 Jul 2009 03:19:29 +0000 (20:19 -0700)]
xapian: fix MAX_DATE

14 years agoexplicitly load messages in testcase
Rich Lane [Tue, 28 Jul 2009 05:02:29 +0000 (22:02 -0700)]
explicitly load messages in testcase

14 years agoMerge branch 'master' into next
William Morgan [Tue, 28 Jul 2009 15:24:20 +0000 (11:24 -0400)]
Merge branch 'master' into next

Conflicts:
lib/sup/index.rb

14 years agomake logging less chatty
Edward Z. Yang [Mon, 27 Jul 2009 17:39:27 +0000 (13:39 -0400)]
make logging less chatty

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
14 years agoMerge branch 'master' into next
William Morgan [Tue, 28 Jul 2009 15:15:27 +0000 (11:15 -0400)]
Merge branch 'master' into next

14 years agofix broken arrow keypresses after shelling out
Edward Z. Yang [Mon, 27 Jul 2009 19:03:58 +0000 (15:03 -0400)]
fix broken arrow keypresses after shelling out

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
14 years agoMerge branch 'custom-search-hook' into next
William Morgan [Mon, 27 Jul 2009 18:04:52 +0000 (14:04 -0400)]
Merge branch 'custom-search-hook' into next

Conflicts:

lib/sup/index.rb

14 years agoadd custom-search hook, for shortcuts for custom search queries
Edward Z. Yang [Fri, 26 Jun 2009 17:10:01 +0000 (13:10 -0400)]
add custom-search hook, for shortcuts for custom search queries

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
14 years agoMerge branch 'master' into next
William Morgan [Mon, 27 Jul 2009 17:18:40 +0000 (13:18 -0400)]
Merge branch 'master' into next

14 years agoUse /etc/mailname if present to determine the hostname for Message-Id
Adeodato Simó [Thu, 9 Jul 2009 19:55:17 +0000 (21:55 +0200)]
Use /etc/mailname if present to determine the hostname for Message-Id

Signed-off-by: Adeodato Simó <dato@net.com.org.es>
14 years agoMerge branch 'master' into next
William Morgan [Mon, 27 Jul 2009 16:56:35 +0000 (12:56 -0400)]
Merge branch 'master' into next

14 years agoeasy_decode now also catches InvalidCharacter
Nicolas Pouillard [Mon, 6 Jul 2009 07:50:09 +0000 (09:50 +0200)]
easy_decode now also catches InvalidCharacter

14 years agoMerge branch 'master' into next
William Morgan [Mon, 27 Jul 2009 16:29:57 +0000 (12:29 -0400)]
Merge branch 'master' into next

14 years agoUnbreak "bounce-command" hook (was referencing an nonexistent variable)
Adeodato Simó [Sat, 11 Jul 2009 11:57:55 +0000 (13:57 +0200)]
Unbreak "bounce-command" hook (was referencing an nonexistent variable)

Signed-off-by: Adeodato Simó <dato@net.com.org.es>
14 years agoMerge branch 'xapian' into next
William Morgan [Mon, 27 Jul 2009 16:06:07 +0000 (12:06 -0400)]
Merge branch 'xapian' into next

14 years agoxapian: dont exclude spam/etc in some internal searches
Rich Lane [Sat, 25 Jul 2009 19:27:08 +0000 (12:27 -0700)]
xapian: dont exclude spam/etc in some internal searches

14 years agoxapian: initialize sources in sup-dump
Rich Lane [Sat, 25 Jul 2009 02:50:54 +0000 (19:50 -0700)]
xapian: initialize sources in sup-dump

14 years agoxapian: fix mk_addrs args in build_message
Rich Lane [Sat, 25 Jul 2009 03:25:09 +0000 (20:25 -0700)]
xapian: fix mk_addrs args in build_message

14 years agoMerge branch 'xapian' into next
William Morgan [Mon, 27 Jul 2009 15:59:29 +0000 (11:59 -0400)]
Merge branch 'xapian' into next

Conflicts:

lib/sup/poll.rb

14 years agobugfix: dates need to be truncated for xapian to index
William Morgan [Wed, 24 Jun 2009 17:30:43 +0000 (13:30 -0400)]
bugfix: dates need to be truncated for xapian to index

If dates are way out of range, the current indexing process both dies
and generates bad doc ids. This patch forces dates to be within a
reasonable range (current between 1969 and 2038.) Not necessarily the
best solution.

14 years agoexplicitly load index version, for better error messages
William Morgan [Wed, 24 Jun 2009 13:10:19 +0000 (09:10 -0400)]
explicitly load index version, for better error messages

Catching the LoadError was masking errors from not having dependent
library like xapian and gdbm. This change makes the error messages
reflect what's actually missing. Since we're adding index types at
roughly once every 3 years, an explicit list like this shouldn't be too
difficult to maintain.

14 years agodont using SavingHash#[] for membership test
Rich Lane [Sat, 20 Jun 2009 20:50:17 +0000 (13:50 -0700)]
dont using SavingHash#[] for membership test

14 years agoadd limit argument to author_names_and_newness_for_thread
Rich Lane [Sat, 20 Jun 2009 20:50:16 +0000 (13:50 -0700)]
add limit argument to author_names_and_newness_for_thread

14 years agofix String#ord monkeypatch
Rich Lane [Sat, 20 Jun 2009 20:50:15 +0000 (13:50 -0700)]
fix String#ord monkeypatch

14 years agoindex: add xapian implementation
Rich Lane [Sat, 20 Jun 2009 20:50:14 +0000 (13:50 -0700)]
index: add xapian implementation

14 years agoindex: choose index implementation with config entry or environment variable
Rich Lane [Sat, 20 Jun 2009 20:50:13 +0000 (13:50 -0700)]
index: choose index implementation with config entry or environment variable

14 years agoadd Message.indexable_{body, chunks, subject}
Rich Lane [Sat, 20 Jun 2009 20:50:12 +0000 (13:50 -0700)]
add Message.indexable_{body, chunks, subject}

14 years agoremove last external uses of ferret docid
Rich Lane [Sat, 20 Jun 2009 20:50:11 +0000 (13:50 -0700)]
remove last external uses of ferret docid

14 years agoindex: move Ferret-specific code to ferret_index.rb
Rich Lane [Sat, 20 Jun 2009 20:50:10 +0000 (13:50 -0700)]
index: move Ferret-specific code to ferret_index.rb

14 years agoindex: make wrap_subj methods private
Rich Lane [Sat, 20 Jun 2009 20:50:09 +0000 (13:50 -0700)]
index: make wrap_subj methods private

14 years agoindex: revert overeager opts->query rename in each_message_in_thread_for
Rich Lane [Sat, 20 Jun 2009 20:50:08 +0000 (13:50 -0700)]
index: revert overeager opts->query rename in each_message_in_thread_for

14 years agoindex: remove unused method fresh_thread_id
Rich Lane [Sat, 20 Jun 2009 20:50:07 +0000 (13:50 -0700)]
index: remove unused method fresh_thread_id

14 years agomove source-related methods to SourceManager
Rich Lane [Sat, 20 Jun 2009 20:50:06 +0000 (13:50 -0700)]
move source-related methods to SourceManager

14 years agoindex: move has_any_from_source_with_label? to sup-sync-back
Rich Lane [Sat, 20 Jun 2009 20:50:05 +0000 (13:50 -0700)]
index: move has_any_from_source_with_label? to sup-sync-back

14 years agoswitch DraftManager to use Message.build_from_source
Rich Lane [Sat, 20 Jun 2009 20:50:04 +0000 (13:50 -0700)]
switch DraftManager to use Message.build_from_source

14 years agoindex: remove unused method load_entry_for_id
Rich Lane [Sat, 20 Jun 2009 20:50:03 +0000 (13:50 -0700)]
index: remove unused method load_entry_for_id

14 years agoremove ferret entry from poll/sync interface
Rich Lane [Sat, 20 Jun 2009 20:50:02 +0000 (13:50 -0700)]
remove ferret entry from poll/sync interface

This leads to an extra index lookup in the sup-sync update path, but I think
it's worth it for the sake of API simplicity.

14 years agoremove load_entry_for_id call in DraftManager.discard
Rich Lane [Sat, 20 Jun 2009 20:50:01 +0000 (13:50 -0700)]
remove load_entry_for_id call in DraftManager.discard

14 years agoremove load_entry_for_id call in sup-recover-sources
Rich Lane [Sat, 20 Jun 2009 20:50:00 +0000 (13:50 -0700)]
remove load_entry_for_id call in sup-recover-sources

14 years agoindex: consistent naming
Rich Lane [Wed, 17 Jun 2009 00:24:59 +0000 (17:24 -0700)]
index: consistent naming

Replaced use of run_query with each_docid
Rename instances of ferret query objects to 'ferret_query'
Rename 'build_query' to 'build_ferret_query'
Rename hashes passed to index methods to 'query'
Rename 'parse_user_query_string' to 'parse_query'
Change 'parse_query' to return a query hash
Rename 'drop_entry' to 'delete' and modify callers to pass msgid

14 years agoindex: cleanup interface
Rich Lane [Wed, 17 Jun 2009 00:24:58 +0000 (17:24 -0700)]
index: cleanup interface

Added the public methods 'each_docid', 'each_message', and 'optimize' to the
index. Removed the 'index' and 'ferret' accessors and modified their callers to
use the new methods. Bonus fixes: sup-dump no longer skips the first message
and sup_sync --start_at can now delete unseen messages.

14 years agofix another missing part of a previous merge
William Morgan [Wed, 24 Jun 2009 13:43:07 +0000 (09:43 -0400)]
fix another missing part of a previous merge

14 years agofix missing part of a previous merge
William Morgan [Wed, 24 Jun 2009 13:42:26 +0000 (09:42 -0400)]
fix missing part of a previous merge

14 years agoMerge commit 'bwalton/bw/flexible_sent'
William Morgan [Wed, 24 Jun 2009 13:38:19 +0000 (09:38 -0400)]
Merge commit 'bwalton/bw/flexible_sent'

Conflicts:

lib/sup/poll.rb
lib/sup/sent.rb

14 years agoMerge commit 'bwalton/bw/bounce_message'
William Morgan [Wed, 24 Jun 2009 13:36:08 +0000 (09:36 -0400)]
Merge commit 'bwalton/bw/bounce_message'

14 years agoMerge branch 'labels-before-subj'
William Morgan [Wed, 24 Jun 2009 13:35:15 +0000 (09:35 -0400)]
Merge branch 'labels-before-subj'

14 years agoMerge branch 'master' into next
William Morgan [Mon, 15 Jun 2009 16:50:39 +0000 (12:50 -0400)]
Merge branch 'master' into next

Conflicts:

lib/sup/sent.rb

14 years agobugfix: correct time format in sent message mbox
William Morgan [Mon, 15 Jun 2009 16:48:20 +0000 (12:48 -0400)]
bugfix: correct time format in sent message mbox

Use Time#asctime. Otherwise for strange locales, the mbox format is
not quite right and the splitter won't be able to read it!

14 years agoMerge branch 'master' into next
William Morgan [Mon, 15 Jun 2009 16:36:00 +0000 (09:36 -0700)]
Merge branch 'master' into next

14 years agoremove warnings about RE_UTF8
William Morgan [Mon, 15 Jun 2009 16:35:44 +0000 (09:35 -0700)]
remove warnings about RE_UTF8

14 years agoMerge branch 'master' into next
William Morgan [Mon, 15 Jun 2009 16:31:45 +0000 (12:31 -0400)]
Merge branch 'master' into next

14 years agofixes for ruby1.9
Rich Lane [Fri, 12 Jun 2009 19:35:52 +0000 (12:35 -0700)]
fixes for ruby1.9

Change colons in case statements to 'then'
Fix a block that didn't take enough arguments
Rename variables to avoid shadowing warnings
Use String.ord (and define it for 1.8)
Use DL::Importer on 1.9
Make require 'fastthread' optional
Copy in RE_UTF8

14 years agoMerge branch 'master' into next
William Morgan [Mon, 15 Jun 2009 15:11:37 +0000 (08:11 -0700)]
Merge branch 'master' into next

14 years agoupdate changelog and releasenotes for 0.8.1
William Morgan [Mon, 15 Jun 2009 15:08:28 +0000 (08:08 -0700)]
update changelog and releasenotes for 0.8.1

14 years agoMerge branch 'master' into next
William Morgan [Mon, 15 Jun 2009 15:01:47 +0000 (08:01 -0700)]
Merge branch 'master' into next

14 years agomake multibyte display "work" for non-utf8 locales
William Morgan [Mon, 15 Jun 2009 15:00:07 +0000 (08:00 -0700)]
make multibyte display "work" for non-utf8 locales

A nasty hack, but fixes a previous utf8-centric change.

15 years agoMerge commit 'bw/bw/bounce_message' into next
William Morgan [Fri, 12 Jun 2009 17:10:29 +0000 (10:10 -0700)]
Merge commit 'bw/bw/bounce_message' into next

15 years agoMerge branch 'master' into next
William Morgan [Tue, 9 Jun 2009 00:05:56 +0000 (17:05 -0700)]
Merge branch 'master' into next

15 years agofix reply-mode always selecting "Customized"
William Morgan [Tue, 9 Jun 2009 00:03:07 +0000 (17:03 -0700)]
fix reply-mode always selecting "Customized"

Since an earlier patch changed parse_headers, or something, the emitted header
needs to have the correct case.

15 years agoMerge branch 'master' into next
William Morgan [Mon, 8 Jun 2009 18:09:06 +0000 (14:09 -0400)]
Merge branch 'master' into next

15 years agoreduce quote parsing worst-case behavior
William Morgan [Mon, 8 Jun 2009 18:07:51 +0000 (14:07 -0400)]
reduce quote parsing worst-case behavior

Split a quote regex into two to increase performance on certain long strings.

Thanks to Edward Z. Yang.

15 years agoBounce Message Hook
Ben Walton [Sun, 7 Jun 2009 23:44:37 +0000 (19:44 -0400)]
Bounce Message Hook

Determine the command used to bounce a message based on a Hook instead
of a configuration option.  Instead of writing an external script that
can send the message properly based on the recipient addresses, rely
on a hook that can return the command based on the From header in the
mail being bounced as well as the intended recipients.  This is more
in line with the sup philosophy.

The default is still to strip any -t from the sendmail command of the
default account.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
15 years agoAdd message bouncing capability
Ben Walton [Sun, 7 Jun 2009 16:38:41 +0000 (12:38 -0400)]
Add message bouncing capability

Bouncing a message is akin to redirecting a mail with a .forward
entry.  It is passed back to the mail system as it sits on disk.

By pressing ! while viewing a message, you can now re-inject it to the
mail system using either the command defined in bounce_sendmail or the
sendmail command for the default account with any instance of -t
removed. The user is prompted for the recipients of the message and is
offered a chance to confirm the bounce before it is sent.

The message is _not_ stored in the sent box, as this doesn't make
sense with bounced messages (and would not show up uniquely anyway).

The bounce_sendmail configuration item allows users that require
different sendmail commands depending on where the bounce is destined
to write a wrapper around their local mail tools to pick and choose
the appropriate injection method for the message based on the
addresses passed in.  Most systems can likely use: sendmail -oem -i

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

15 years agoupdate documentation to be slightly less out of date
William Morgan [Fri, 5 Jun 2009 16:40:51 +0000 (12:40 -0400)]
update documentation to be slightly less out of date

15 years agoadd sup-announce list info to webpage
William Morgan [Fri, 5 Jun 2009 16:13:22 +0000 (12:13 -0400)]
add sup-announce list info to webpage

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.