sup:mainline.git
7 years agoMerge branch 'master' into release-0.10 release-0.10
William Morgan [Sat, 23 Jan 2010 18:02:14 +0000 (13:02 -0500)]
Merge branch 'master' into release-0.10

7 years agoasciify untrusted strings before displaying in TextMode
Rich Lane [Tue, 19 Jan 2010 21:48:25 +0000 (16:48 -0500)]
asciify untrusted strings before displaying in TextMode

7 years agoxapian: add boolean terms with zero wdf
Rich Lane [Fri, 15 Jan 2010 05:14:29 +0000 (21:14 -0800)]
xapian: add boolean terms with zero wdf

Xapian's Flint backend stores the document length in every posting, so if the
document length is changed (by adding a label, for example), every posting
entry needs to be rewritten. This basically nullifies the performance
improvement from the Xapian bug 250 fix. We can prevent this by adding these
terms with 0 within-document-frequency so that their addition or removal
doesn't change the document length.

This is the analog to notmuch commit ccf2e0cc.

7 years agofix ask_for_contacts on Ruby 1.9
Rich Lane [Wed, 13 Jan 2010 18:13:40 +0000 (10:13 -0800)]
fix ask_for_contacts on Ruby 1.9

String doesn't respond to :map anymore. The previous code was also joining with
" " instead of ", ", which was broken.

7 years agobump versions to 0.10
William Morgan [Fri, 22 Jan 2010 23:15:44 +0000 (18:15 -0500)]
bump versions to 0.10

7 years agoadd library version check to sup-add and sup-config
William Morgan [Fri, 22 Jan 2010 23:11:39 +0000 (18:11 -0500)]
add library version check to sup-add and sup-config

Guess I forgot this these in the earlier commit.

7 years agoupdate changelog, releasenotes, etc for 0.10 changes
William Morgan [Fri, 22 Jan 2010 23:10:21 +0000 (18:10 -0500)]
update changelog, releasenotes, etc for 0.10 changes

7 years agokeep cursor on current thread when threads are added/removed
Eric Sherman [Tue, 12 Jan 2010 20:36:13 +0000 (15:36 -0500)]
keep cursor on current thread when threads are added/removed

The cursor will track the thread it is on when that thread is moved up
or down on the screen as threads are added or removed from the view.

7 years agoMerge branch 'xapian-name-email'
William Morgan [Wed, 20 Jan 2010 16:21:36 +0000 (11:21 -0500)]
Merge branch 'xapian-name-email'

7 years agoMerge branch 'insta-save'
William Morgan [Wed, 20 Jan 2010 16:21:08 +0000 (11:21 -0500)]
Merge branch 'insta-save'

Conflicts:

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

7 years agoMerge branch 'ruby-1.9-encoding'
William Morgan [Wed, 20 Jan 2010 16:17:00 +0000 (11:17 -0500)]
Merge branch 'ruby-1.9-encoding'

Conflicts:

lib/sup/util.rb

7 years agominor tweak of sup-sync output
William Morgan [Wed, 20 Jan 2010 16:12:37 +0000 (11:12 -0500)]
minor tweak of sup-sync output

7 years agofix up crummy library checking code
William Morgan [Mon, 18 Jan 2010 17:02:25 +0000 (12:02 -0500)]
fix up crummy library checking code

Moral of the story: Don't push before you think!

7 years agoadd --force option to sup-convert-ferret-index
William Morgan [Mon, 18 Jan 2010 16:53:21 +0000 (11:53 -0500)]
add --force option to sup-convert-ferret-index

7 years agomake all bin/* scripts check sup library version
William Morgan [Mon, 18 Jan 2010 16:52:47 +0000 (11:52 -0500)]
make all bin/* scripts check sup library version

Previously just bin/sup was doing this.

7 years agomake '$' call Index.save
Israel Herraiz [Sun, 17 Jan 2010 12:36:16 +0000 (13:36 +0100)]
make '$' call Index.save

Although saving is magically instantaneous now, it's still useful to force
Xapian to flush on command. This repurposes the old '$', which used to manually
save the index, to do this.

(commit message: wmorgan)

7 years agouse 'wb', 'rb' and 'ab' modes instead of open_binary
William Morgan [Sun, 17 Jan 2010 23:10:14 +0000 (18:10 -0500)]
use 'wb', 'rb' and 'ab' modes instead of open_binary

This should work in both Ruby 1.9 and 1.8.

7 years agoMerge branch 'ferret-deprecation'
William Morgan [Sun, 17 Jan 2010 15:21:38 +0000 (10:21 -0500)]
Merge branch 'ferret-deprecation'

Conflicts:
bin/sup-add

7 years agoset XAPIAN_FLUSH_THRESHOLD to 1000
William Morgan [Sun, 17 Jan 2010 15:20:00 +0000 (10:20 -0500)]
set XAPIAN_FLUSH_THRESHOLD to 1000

This seems to be the current best balance between speed and memory usage.

7 years agocall index.load in sup-add
Rich Lane [Thu, 7 Jan 2010 03:34:18 +0000 (19:34 -0800)]
call index.load in sup-add

If it's going to call index.save, it needs to load it first.

7 years agoMerge commit 'origin/list-post-improvements'; branch 'toggle-line-wrap'
William Morgan [Thu, 14 Jan 2010 13:51:08 +0000 (08:51 -0500)]
Merge commit 'origin/list-post-improvements'; branch 'toggle-line-wrap'

7 years agomake the undo hooks also save the threads
Anthony Martinez [Tue, 5 Jan 2010 22:45:39 +0000 (15:45 -0700)]
make the undo hooks also save the threads

Since there is no explicit sync any longer, any action that has an
Index.save_thread must also repeat the save when the action is undone.
Failure to do this will result in an exception upon quit when the index
notices that there are still dirty messages.

7 years agoFile.open_binary should pass through any block
William Morgan [Tue, 5 Jan 2010 22:02:43 +0000 (14:02 -0800)]
File.open_binary should pass through any block

7 years agoonly open mail files in binary mode on Ruby 1.9
Rich Lane [Mon, 4 Jan 2010 19:45:42 +0000 (11:45 -0800)]
only open mail files in binary mode on Ruby 1.9

7 years agofix up options for sup-sync-back, tweak-labels
Anthony Martinez [Tue, 5 Jan 2010 17:20:24 +0000 (10:20 -0700)]
fix up options for sup-sync-back, tweak-labels

These two violate the convention of the other scripts inside bin/ by
using a local variable for their Trollop results.

7 years agoimplement const_missing for Index
Rich Lane [Mon, 4 Jan 2010 19:35:17 +0000 (11:35 -0800)]
implement const_missing for Index

Otherwise, constant references to LockError and ParseError will fail.

7 years agoimplement String#each on Ruby 1.9 for lockfile
Rich Lane [Mon, 4 Jan 2010 19:34:31 +0000 (11:34 -0800)]
implement String#each on Ruby 1.9 for lockfile

7 years agoadd console commands to get/set loglevel
Rich Lane [Mon, 4 Jan 2010 19:19:40 +0000 (11:19 -0800)]
add console commands to get/set loglevel

7 years agoconfigurable poll interval
Eric Sherman [Mon, 4 Jan 2010 15:23:55 +0000 (10:23 -0500)]
configurable poll interval

This patch does not add configurable per-source poll intervals, but it
does add a single :poll_interval which still defaults to 300 seconds if
not defined in config.yaml.

7 years agoundoing read_and_archive should preserve unread state
Anthony Martinez [Mon, 4 Jan 2010 06:06:35 +0000 (23:06 -0700)]
undoing read_and_archive should preserve unread state

7 years agopunctuate "No new messages." consistently between poll, jump_to_next_new
Anthony Martinez [Mon, 4 Jan 2010 06:06:34 +0000 (23:06 -0700)]
punctuate "No new messages." consistently between poll, jump_to_next_new

7 years agochange transcode warning to a debug message
William Morgan [Tue, 5 Jan 2010 21:11:43 +0000 (13:11 -0800)]
change transcode warning to a debug message

Too scary for users when it's a warning, and it tends to pollute the
output of sup-sync.

7 years agoxapian: translate from/to query term prefixes to search over both name and email...
Rich Lane [Sat, 2 Jan 2010 04:37:26 +0000 (20:37 -0800)]
xapian: translate from/to query term prefixes to search over both name and email fields

7 years agoadd Xapian flush message
William Morgan [Sun, 3 Jan 2010 22:15:26 +0000 (17:15 -0500)]
add Xapian flush message

The simple solution to the "Xapian takes a long time to flush upon exit"
problem is to inform the user what's going on.

7 years agokill buffers in buffer-list-mode with "X"
Eric Sherman [Sun, 3 Jan 2010 17:09:50 +0000 (12:09 -0500)]
kill buffers in buffer-list-mode with "X"

7 years agosup-convert-ferret-index: require xapian gem before starting
Anthony Martinez [Sun, 3 Jan 2010 19:38:52 +0000 (12:38 -0700)]
sup-convert-ferret-index: require xapian gem before starting

Make it complain about not having Xapian *before* starting the state dump, so
it doesn't get to step 3 and suddenly find out that it can't load Xapian.

7 years agomove the mark-as-spam hook so it runs on all tagged threads
Anthony Martinez [Thu, 31 Dec 2009 20:45:30 +0000 (13:45 -0700)]
move the mark-as-spam hook so it runs on all tagged threads

This way, tagging a whole bunch of spam and then hitting =S will get
them all run through bogofilter (or whatever is done in the mark-as-spam
hook) instead of only the currently selected one.

7 years agoforce binary encoding before parsing decrypted messages
Rich Lane [Sat, 2 Jan 2010 16:42:15 +0000 (08:42 -0800)]
force binary encoding before parsing decrypted messages

7 years agofixed am/pm display for ruby 1.8 darwin
Eric Sherman [Sat, 2 Jan 2010 05:14:05 +0000 (00:14 -0500)]
fixed am/pm display for ruby 1.8 darwin

7 years agoruby 1.9: expect nil start_offset when an MBox::Loader is first created
Rich Lane [Fri, 1 Jan 2010 22:14:00 +0000 (14:14 -0800)]
ruby 1.9: expect nil start_offset when an MBox::Loader is first created

Various callers (including sup-add) passed a nil start_offset. Through a
convoluted path probably involving the fact that nil.to_i == 0, this did the
right thing on Ruby 1.8. It crashes on 1.9, so change initialize to expect a
nil offset and replace it with 0.

7 years agoxapian: respect :skip_killed in each_message_in_thread_for
Rich Lane [Fri, 1 Jan 2010 21:44:34 +0000 (13:44 -0800)]
xapian: respect :skip_killed in each_message_in_thread_for

7 years agoruby 1.9: use String#ord in ask_getch and ask_yes_or_no
Rich Lane [Fri, 1 Jan 2010 20:47:07 +0000 (12:47 -0800)]
ruby 1.9: use String#ord in ask_getch and ask_yes_or_no

In Ruby 1.9, character literals and the return value from string index
accesses are now themselves strings and need to be converted to integers with
String#ord. This was breaking ask_getch. Integer#ord is defined on Ruby 1.8 so
this won't cause problems there.

7 years agoadd sup-convert-ferret-index script
William Morgan [Sun, 3 Jan 2010 14:40:29 +0000 (09:40 -0500)]
add sup-convert-ferret-index script

7 years agotrivial tweak to sup-config help output
William Morgan [Sun, 3 Jan 2010 13:32:42 +0000 (08:32 -0500)]
trivial tweak to sup-config help output

7 years agoadd an --index option to everything in bin/
William Morgan [Sun, 3 Jan 2010 13:32:05 +0000 (08:32 -0500)]
add an --index option to everything in bin/

7 years agohave Index.init take an argument specifying the index type
William Morgan [Sun, 3 Jan 2010 13:25:17 +0000 (08:25 -0500)]
have Index.init take an argument specifying the index type

Yet another layer of metaprogramming wankery to make this happen.  If nil or
"auto", will autodetect based on the existence of ferret/ or xapian/
directories, in a nasty abstraction barrier violation.

7 years agoadd warnings about ferret deprecation
William Morgan [Sat, 2 Jan 2010 21:36:50 +0000 (16:36 -0500)]
add warnings about ferret deprecation

7 years agoadd Index#is_a_deprecated_ferret_index?
William Morgan [Sat, 2 Jan 2010 21:30:18 +0000 (16:30 -0500)]
add Index#is_a_deprecated_ferret_index?

7 years agodecode header fields of enclosed messages
Rich Lane [Thu, 31 Dec 2009 23:36:58 +0000 (15:36 -0800)]
decode header fields of enclosed messages

7 years agouse header from the RMail::Message in Message#parse_header
Rich Lane [Thu, 31 Dec 2009 23:36:57 +0000 (15:36 -0800)]
use header from the RMail::Message in Message#parse_header

7 years agodecode raw header/message to ascii before viewing
Rich Lane [Thu, 31 Dec 2009 23:36:56 +0000 (15:36 -0800)]
decode raw header/message to ascii before viewing

7 years agotranscode output from mime-decode hook too
Rich Lane [Thu, 31 Dec 2009 23:36:55 +0000 (15:36 -0800)]
transcode output from mime-decode hook too

7 years agoadd String#transcode
Rich Lane [Thu, 31 Dec 2009 23:36:54 +0000 (15:36 -0800)]
add String#transcode

7 years agofixup Iconv#easy_decode for Ruby 1.9
Rich Lane [Thu, 31 Dec 2009 23:36:53 +0000 (15:36 -0800)]
fixup Iconv#easy_decode for Ruby 1.9

7 years agoadd String#ascii
Rich Lane [Thu, 31 Dec 2009 23:36:52 +0000 (15:36 -0800)]
add String#ascii

7 years agoadd String#check
Rich Lane [Thu, 31 Dec 2009 23:36:51 +0000 (15:36 -0800)]
add String#check

7 years agodisplay_size is just size on Ruby 1.9
Rich Lane [Thu, 31 Dec 2009 23:36:50 +0000 (15:36 -0800)]
display_size is just size on Ruby 1.9

7 years agoopen mail source files as binary
Rich Lane [Thu, 31 Dec 2009 23:36:49 +0000 (15:36 -0800)]
open mail source files as binary

7 years agoxapian: replace DocumentMethods module with plain monkeypatching
Rich Lane [Thu, 31 Dec 2009 21:22:39 +0000 (13:22 -0800)]
xapian: replace DocumentMethods module with plain monkeypatching

Conflicts:

lib/sup/xapian_index.rb

7 years agoxapian: do less work for update_message_state
Rich Lane [Thu, 31 Dec 2009 21:21:32 +0000 (13:21 -0800)]
xapian: do less work for update_message_state

Refactor index_message so that we do the minimal amount of work based on what
state the user has modified.

Conflicts:

lib/sup/xapian_index.rb

7 years agoMerge branches 'thread-joining-fix', 'no-mailcap-on-darwin', 'label-list-mode-auto...
William Morgan [Thu, 31 Dec 2009 20:26:46 +0000 (15:26 -0500)]
Merge branches 'thread-joining-fix', 'no-mailcap-on-darwin', 'label-list-mode-auto-update', 'interactive-crypto', 'label-list-mode-hooks', 'refine-inbox-mode', 'poll-unusual', 'attach-wildcards', 'order-names-by-date' and 'save-all-attachments'

7 years agoforce the index sync thread to give up the cpu
Rich Lane [Wed, 30 Dec 2009 01:38:05 +0000 (17:38 -0800)]
force the index sync thread to give up the cpu

7 years agoimmediate thread indexing
Rich Lane [Wed, 30 Dec 2009 01:38:04 +0000 (17:38 -0800)]
immediate thread indexing

7 years agoasync thread indexing
Rich Lane [Wed, 30 Dec 2009 01:38:03 +0000 (17:38 -0800)]
async thread indexing

7 years agofactor saving out of thread/message classes
Rich Lane [Wed, 30 Dec 2009 01:38:02 +0000 (17:38 -0800)]
factor saving out of thread/message classes

7 years agoadded colorized dates in thread-index-mode
Eric Sherman [Thu, 31 Dec 2009 16:44:17 +0000 (11:44 -0500)]
added colorized dates in thread-index-mode

7 years agofixed a typo in parse_header
Eric Sherman [Thu, 31 Dec 2009 06:43:43 +0000 (01:43 -0500)]
fixed a typo in parse_header

7 years agosup-add: reuse old account info with --force-account
Tero Tilus [Wed, 30 Dec 2009 04:06:07 +0000 (06:06 +0200)]
sup-add: reuse old account info with --force-account

Signed-off-by: Tero Tilus <tero@tilus.net>
7 years agomake sup-tweak-labels work as advertised with no sources listed
Tero Tilus [Wed, 30 Dec 2009 03:09:19 +0000 (05:09 +0200)]
make sup-tweak-labels work as advertised with no sources listed

Signed-off-by: Tero Tilus <tero@tilus.net>
7 years agochange chronic missing message to be similar to that of ncursesw
William Morgan [Thu, 31 Dec 2009 18:50:57 +0000 (13:50 -0500)]
change chronic missing message to be similar to that of ncursesw

7 years agoremove vestigal curses require
William Morgan [Thu, 31 Dec 2009 18:50:43 +0000 (13:50 -0500)]
remove vestigal curses require

7 years agotry loading ncursesw
Rich Lane [Tue, 29 Dec 2009 23:58:56 +0000 (15:58 -0800)]
try loading ncursesw

7 years agodetect x-mailing-list headers for list addresses
William Morgan [Sat, 26 Dec 2009 18:03:15 +0000 (10:03 -0800)]
detect x-mailing-list headers for list addresses

This is used by some lists (e.g. majordomo lists) to publicise the list
address instead of List-Post.

7 years agofix list-post header munging
William Morgan [Sat, 26 Dec 2009 17:55:24 +0000 (09:55 -0800)]
fix list-post header munging

Improve list-post parsing, which apparently has to real format and you
have to screw around to find if there's an email address. E.g. Google
Groups puts a URL and a mailto: in there.

7 years agobugfix for default attachment save dir
William Morgan [Mon, 21 Dec 2009 12:44:48 +0000 (07:44 -0500)]
bugfix for default attachment save dir

The default setting of "" for :default_attachment_save_dir made the
default save directory "/". This fixes it so that it's $HOME when
unset or "", and otherwise uses the value correctly.

Based on an idea by David Riebenbauer <davrieb@liegesta.at>.

7 years agoadd Maildir#filename_for_id
William Morgan [Sat, 19 Dec 2009 18:53:24 +0000 (13:53 -0500)]
add Maildir#filename_for_id

7 years agoupdate error message to point to bug tracker
William Morgan [Sat, 19 Dec 2009 18:38:21 +0000 (13:38 -0500)]
update error message to point to bug tracker

7 years agobugfix: wrapping crashed when defaulting to current buffer width toggle-line-wrap
William Morgan [Sat, 19 Dec 2009 17:56:12 +0000 (09:56 -0800)]
bugfix: wrapping crashed when defaulting to current buffer width

7 years agomake 'w' toggle line wrapping in thread-view-mode
William Morgan [Sat, 19 Dec 2009 17:46:48 +0000 (09:46 -0800)]
make 'w' toggle line wrapping in thread-view-mode

7 years agoupdate release script to include gemcutter publishing
William Morgan [Fri, 11 Dec 2009 17:17:52 +0000 (12:17 -0500)]
update release script to include gemcutter publishing

7 years agoupdate changelog etc to 0.9.1
William Morgan [Thu, 10 Dec 2009 15:07:01 +0000 (10:07 -0500)]
update changelog etc to 0.9.1

7 years agoMerge branch 'config-ask-for-to'
Rich Lane [Fri, 27 Nov 2009 19:49:40 +0000 (14:49 -0500)]
Merge branch 'config-ask-for-to'

7 years agomakes compose-mode and forward-mode ask_for_contacts logic the same
Rich Lane [Fri, 27 Nov 2009 19:49:06 +0000 (14:49 -0500)]
makes compose-mode and forward-mode ask_for_contacts logic the same

7 years agoMerge branch 'textfield-tweaks'
Rich Lane [Fri, 27 Nov 2009 19:33:20 +0000 (14:33 -0500)]
Merge branch 'textfield-tweaks'

7 years agoImplement C-W for textfields
Steven Walter [Fri, 20 Nov 2009 14:05:11 +0000 (09:05 -0500)]
Implement C-W for textfields

7 years agoMerge branch 'decode-attachment-filenames'
Rich Lane [Fri, 27 Nov 2009 19:31:38 +0000 (14:31 -0500)]
Merge branch 'decode-attachment-filenames'

7 years agoRFC 2047 decode attachment file names
Tero Tilus [Thu, 26 Nov 2009 13:00:17 +0000 (15:00 +0200)]
RFC 2047 decode attachment file names

Signed-off-by: Tero Tilus <tero@tilus.net>
7 years agoMerge branch 'config-ask-for-to'
Rich Lane [Sat, 21 Nov 2009 00:11:14 +0000 (19:11 -0500)]
Merge branch 'config-ask-for-to'

7 years agodefault ask_for_to to true
Rich Lane [Sat, 21 Nov 2009 00:10:46 +0000 (19:10 -0500)]
default ask_for_to to true

7 years agoMerge branch 'thread-view-mode-undo'
Rich Lane [Fri, 20 Nov 2009 04:43:00 +0000 (23:43 -0500)]
Merge branch 'thread-view-mode-undo'

7 years agocreate undo records in thread view
Andrew Pimlott [Thu, 12 Nov 2009 17:30:01 +0000 (09:30 -0800)]
create undo records in thread view

7 years agoMerge branch 'xapian-comment-fix'
Rich Lane [Fri, 20 Nov 2009 04:35:23 +0000 (23:35 -0500)]
Merge branch 'xapian-comment-fix'

7 years agoComment tweak, XapianIndex doesn't use GDBM anymore since 4d82ef88
Ingmar Vanhassel [Tue, 17 Nov 2009 23:25:26 +0000 (00:25 +0100)]
Comment tweak, XapianIndex doesn't use GDBM anymore since 4d82ef88

7 years agoMerge branch 'date-format-fix'
Rich Lane [Fri, 20 Nov 2009 04:28:32 +0000 (23:28 -0500)]
Merge branch 'date-format-fix'

7 years agoCorrect AM/PM selector in DATE_FORMAT.
William Erik Baxter [Sun, 15 Nov 2009 22:55:03 +0000 (17:55 -0500)]
Correct AM/PM selector in DATE_FORMAT.

7 years agoMake sup's textfield behave more like readline
Cameron Matheson [Fri, 20 Nov 2009 04:23:15 +0000 (23:23 -0500)]
Make sup's textfield behave more like readline

8 years agoMerge branch 'config-ask-for-to'
Rich Lane [Thu, 12 Nov 2009 04:27:48 +0000 (23:27 -0500)]
Merge branch 'config-ask-for-to'

8 years agoMerge branch 'display-poll-labels'
Rich Lane [Thu, 12 Nov 2009 04:26:41 +0000 (23:26 -0500)]
Merge branch 'display-poll-labels'

8 years agodisplay labels of polled messages
Peter Harkins [Wed, 11 Nov 2009 17:06:30 +0000 (11:06 -0600)]
display labels of polled messages

Original patch by Christopher Bertels.

8 years agoissue6: Added ask_for_to to match _cc, _bcc, and _subject.
Peter Harkins [Wed, 11 Nov 2009 18:40:20 +0000 (12:40 -0600)]
issue6: Added ask_for_to to match _cc, _bcc, and _subject.

The user who sets these all to false will move directly to editing
headers in their $EDITOR when composing or forwarding.