sup:mainline.git
6 years agomake sup-dump work, and be faster sup-dump-fix
William Morgan [Sun, 19 Jun 2011 19:05:26 +0000 (19:05 +0000)]
make sup-dump work, and be faster

7 years agoConditionally add Symbol#to_proc
Ben Walton [Thu, 10 Jun 2010 02:27:44 +0000 (22:27 -0400)]
Conditionally add Symbol#to_proc

Add a utility monkey-patch for versions of ruby that don't have the
to_proc method for Symbols.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
7 years agoparse_header: don't use empty or invalid Message-ID header
Sascha Silbe [Thu, 1 Jul 2010 13:48:13 +0000 (13:48 +0000)]
parse_header: don't use empty or invalid Message-ID header

If Message-ID contains only invalid characters (or none at all),
sanitize_message_id will return an empty string. As Message.parse_header
only checked for header existance, not validity, sup-dump could produce
a dump file that sup-sync would choke on.

We now fall back to a fake id for both missing and invalid Message-ID
headers.

7 years agofix crash in sup-dump if the default sent source is used
Sascha Silbe [Tue, 29 Jun 2010 08:12:05 +0000 (10:12 +0200)]
fix crash in sup-dump if the default sent source is used

This fixes a crash in sup-dump if the index contains a "sent" message and
no "sent" folder has been explicitly configured in the config file
(so it hasn't been added to sources.yaml).

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
7 years agoDon’t display "..." after snippets which are displayed completely
Michael Stapelberg [Wed, 16 Jun 2010 18:08:30 +0000 (20:08 +0200)]
Don’t display "..." after snippets which are displayed completely

Short mails (for example: "Yes, the date works for me.") often can
be displayed completely in the snippet. However, before this patch,
sup abbreviated the snippet even though it was not abbreviated.

7 years agoinline-gpg: call text_to_chunks on the text before/after the GPG part
Michael Stapelberg [Tue, 22 Jun 2010 15:30:37 +0000 (17:30 +0200)]
inline-gpg: call text_to_chunks on the text before/after the GPG part

This is necessary for stupid mailers which produce TOFU mails
containing unquoted inline gpg mails *argh*.

7 years agoDon't choke when scanning message with unknown encoding
Sascha Silbe [Tue, 29 Jun 2010 08:04:54 +0000 (10:04 +0200)]
Don't choke when scanning message with unknown encoding

This fixes the following error:

./lib/sup/message.rb:473:in `message_to_chunks': "7BIT" (RMail::EncodingUnsupportedError)

when running sup-sync on a folder that contains a mail with these headers:

Content-Transfer-Encoding: 7bit
X-Mime-Autoconverted: from 8bit to 7bit by courier 0.60

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
7 years agofix reference to EncodingUnsupportedError
Sascha Silbe [Tue, 29 Jun 2010 07:50:25 +0000 (09:50 +0200)]
fix reference to EncodingUnsupportedError

This fixes the following error:

./lib/sup/message.rb:473:in `message_to_chunks': uninitialized constant Redwood::Message::EncodingUnsupportedError (NameError)

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
7 years agomore workarounds for empty thread bug
Rich Lane [Thu, 10 Jun 2010 02:09:25 +0000 (19:09 -0700)]
more workarounds for empty thread bug

7 years agoworkaround nil Thread#first bug
Rich Lane [Thu, 10 Jun 2010 01:39:06 +0000 (18:39 -0700)]
workaround nil Thread#first bug

7 years agoMerge branch 'sup-server-work'
Rich Lane [Thu, 10 Jun 2010 01:13:23 +0000 (18:13 -0700)]
Merge branch 'sup-server-work'

7 years agofix some indentation sup-server-work
Rich Lane [Tue, 8 Jun 2010 02:33:30 +0000 (19:33 -0700)]
fix some indentation

7 years agodeinstantiate all managers on finish
Rich Lane [Mon, 7 Jun 2010 16:06:41 +0000 (09:06 -0700)]
deinstantiate all managers on finish

7 years agoDecode messages according to their Content-Transfer-Encoding
Michael Stapelberg [Fri, 4 Jun 2010 22:13:54 +0000 (00:13 +0200)]
Decode messages according to their Content-Transfer-Encoding

This is necessary for MIME-messages (for example as part of multipart/signed)
which are encoded in base64.

7 years agomove HookManager singleton instantiation to Redwood.start
Rich Lane [Mon, 7 Jun 2010 15:11:42 +0000 (08:11 -0700)]
move HookManager singleton instantiation to Redwood.start

7 years agomove base_dir knowledge out of load_config
Rich Lane [Mon, 7 Jun 2010 05:13:33 +0000 (22:13 -0700)]
move base_dir knowledge out of load_config

7 years agoadd file log sink in Redwood.start
Rich Lane [Mon, 7 Jun 2010 05:01:07 +0000 (22:01 -0700)]
add file log sink in Redwood.start

7 years agoload config in Redwood.start
Rich Lane [Mon, 7 Jun 2010 04:49:05 +0000 (21:49 -0700)]
load config in Redwood.start

7 years agomake PollManager delay an instance variable
Rich Lane [Mon, 7 Jun 2010 04:38:55 +0000 (21:38 -0700)]
make PollManager delay an instance variable

7 years agocleanup EM.spawn_reactor_thread
Rich Lane [Mon, 7 Jun 2010 02:10:37 +0000 (19:10 -0700)]
cleanup EM.spawn_reactor_thread

7 years agoadd test_query and check tag
Rich Lane [Sun, 6 Jun 2010 16:03:04 +0000 (09:03 -0700)]
add test_query and check tag

7 years agoinstantiate enough singletons for a null query
Rich Lane [Sun, 6 Jun 2010 16:02:24 +0000 (09:02 -0700)]
instantiate enough singletons for a null query

7 years agosingleton bugfix
Rich Lane [Sun, 6 Jun 2010 16:01:02 +0000 (09:01 -0700)]
singleton bugfix

7 years agoprotocol debugging code
Rich Lane [Sun, 6 Jun 2010 15:51:02 +0000 (08:51 -0700)]
protocol debugging code

7 years agopass index object to server
Rich Lane [Sun, 6 Jun 2010 04:17:21 +0000 (21:17 -0700)]
pass index object to server

7 years agoadd server test harness
Rich Lane [Sat, 5 Jun 2010 23:30:34 +0000 (16:30 -0700)]
add server test harness

7 years agosend error response on invalid request
Rich Lane [Sat, 5 Jun 2010 23:29:10 +0000 (16:29 -0700)]
send error response on invalid request

7 years agoquiet "client connection established"
Rich Lane [Sat, 5 Jun 2010 23:27:44 +0000 (16:27 -0700)]
quiet "client connection established"

7 years agodeclare redwood module
Rich Lane [Sat, 5 Jun 2010 23:27:28 +0000 (16:27 -0700)]
declare redwood module

7 years agosupport unix domain sockets in sup-cmd
Rich Lane [Sat, 5 Jun 2010 23:26:24 +0000 (16:26 -0700)]
support unix domain sockets in sup-cmd

7 years agoadd a thread request to sup-server
Jason Petsod [Sat, 5 Jun 2010 02:57:46 +0000 (19:57 -0700)]
add a thread request to sup-server

7 years agoBugfix: Charset conversion needs to take place *after* verifying inline GPG signatures
Michael Stapelberg [Fri, 4 Jun 2010 09:51:59 +0000 (11:51 +0200)]
Bugfix: Charset conversion needs to take place *after* verifying inline GPG signatures

Otherwise non-UTF-8 messages (especially seen from people using windows)
are verified as having a bad signature even though it is valid (because
the message was converted and thus touched before verifying)

7 years agoMerge commit 'mainline/master'
Rich Lane [Fri, 4 Jun 2010 02:04:16 +0000 (19:04 -0700)]
Merge commit 'mainline/master'

7 years agoRemove deprecated IMAP references from docs and comments
W. Trevor King [Sun, 23 May 2010 14:23:01 +0000 (10:23 -0400)]
Remove deprecated IMAP references from docs and comments

7 years agoRemove outdated references to Ferret from docs and comments
W. Trevor King [Sun, 23 May 2010 14:06:38 +0000 (10:06 -0400)]
Remove outdated references to Ferret from docs and comments

7 years agoJump and open next/previous message with C-n and C-p
Gaute Hope [Wed, 2 Jun 2010 21:53:03 +0000 (23:53 +0200)]
Jump and open next/previous message with C-n and C-p

Added functionality and key bindings for thread-view-mode where you can jump
_and_ open the next message. If a message has been opened by the jump it
will be closed if you continue to jump (in either direction). This is
saved in :toggled_state in the layout.

I often want to just jump to the next message to be able to skim through
a whole thread, if there was a key binding; jump and then hit enter
would work - but this patch gives me exactly what I want.

I'm not entirely happy with the key bindings, but there are not that many
left.

Signed-off-by: Gaute Hope <eg@gaute.vetsj.com>
7 years agoAllow toggle on Source.usual and Source.archived
Ben Walton [Sat, 15 May 2010 18:45:21 +0000 (14:45 -0400)]
Allow toggle on Source.usual and Source.archived

Allow sources to be more malleable by allowing for the modification of
the usual and archived flags.  This is a first step toward patterned
(meta) sources.  Initially, the patterning will be handled by one of
the poll hooks, which will use the usual toggle when a 'new' source is
added.  Later on, this may be handled internally for sources with a
meta = true attribute (or something similar).

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
7 years agoRemove a trailing whitespace in signature
Damien Leone [Sat, 15 May 2010 14:29:37 +0000 (16:29 +0200)]
Remove a trailing whitespace in signature

7 years agoMake it easier to select the from address with the ask_for_from option
Damien Leone [Fri, 14 May 2010 11:34:09 +0000 (13:34 +0200)]
Make it easier to select the from address with the ask_for_from option

7 years agoAdd global keybinding to clear all hooks
Ben Walton [Fri, 14 May 2010 15:22:24 +0000 (11:22 -0400)]
Add global keybinding to clear all hooks

When developing/tweaking hooks, it's inconvenient to use the console
mode to run the clear hooks command.  Add a globally available key
binding ('H') to trigger HookManager.clear.  As this is now more
exposed in the UI, make HookManager flash a notice to the
BufferManager indicating that it cleared the hooks.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
7 years agoMerge branch 'inline-gpg'
Rich Lane [Fri, 14 May 2010 02:30:16 +0000 (19:30 -0700)]
Merge branch 'inline-gpg'

7 years agoBugfix: for encrypted and signed messages, run verification and decryption separately
Michael Stapelberg [Thu, 25 Mar 2010 12:12:11 +0000 (13:12 +0100)]
Bugfix: for encrypted and signed messages, run verification and decryption separately

gpg aborts if the signature cannot be verified, even though it
might still be able to decrypt the message.

7 years agoFix 1.9-ism use of Array.count
Ben Walton [Fri, 14 May 2010 01:08:05 +0000 (21:08 -0400)]
Fix 1.9-ism use of Array.count

Use the size method of array rather than the 1.9 specific count in
message body parsing.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
7 years agoOverwrite line contents before drawing the new contents (instead of filling up the...
Michael Stapelberg [Fri, 7 May 2010 18:48:11 +0000 (20:48 +0200)]
Overwrite line contents before drawing the new contents (instead of filling up the rest)

This fixes display problems of mails with tab characters in it, like
"foo\n\tbar"

7 years agobase64 encrypted bodies
Todd Eisenberger [Tue, 11 May 2010 04:15:28 +0000 (21:15 -0700)]
base64 encrypted bodies

7 years agoconvert utf8 $encoding to UTF-8
Rich Lane [Fri, 7 May 2010 16:03:51 +0000 (09:03 -0700)]
convert utf8 $encoding to UTF-8

7 years agoask_for_from config option
Rich Lane [Thu, 6 May 2010 16:51:45 +0000 (09:51 -0700)]
ask_for_from config option

7 years agoremove connection require
Rich Lane [Fri, 16 Apr 2010 23:32:40 +0000 (16:32 -0700)]
remove connection require

7 years agoadd protocol document
Rich Lane [Tue, 13 Apr 2010 04:04:15 +0000 (21:04 -0700)]
add protocol document

7 years agostandalone sup-server
Rich Lane [Tue, 13 Apr 2010 03:59:41 +0000 (20:59 -0700)]
standalone sup-server

7 years agomake sup-cmd executable
Rich Lane [Sun, 11 Apr 2010 00:37:06 +0000 (17:37 -0700)]
make sup-cmd executable

7 years agoaccept is:killed in query string
Rich Lane [Fri, 9 Apr 2010 20:22:00 +0000 (13:22 -0700)]
accept is:killed in query string

7 years agoMerge branch 'multiple-locations'
Rich Lane [Sat, 3 Apr 2010 17:38:09 +0000 (10:38 -0700)]
Merge branch 'multiple-locations'

7 years agoadd location option to build_xapian_query
Rich Lane [Wed, 24 Mar 2010 06:26:06 +0000 (23:26 -0700)]
add location option to build_xapian_query

7 years agoUse LC_MESSAGES=C when starting gpg so that the regexps for parsing the output works
Michael Stapelberg [Fri, 19 Mar 2010 18:52:04 +0000 (19:52 +0100)]
Use LC_MESSAGES=C when starting gpg so that the regexps for parsing the output works

7 years agoMerge branch 'master' into multiple-locations
Rich Lane [Tue, 23 Mar 2010 03:39:59 +0000 (20:39 -0700)]
Merge branch 'master' into multiple-locations

7 years agoadd log file
Rich Lane [Mon, 22 Mar 2010 06:31:52 +0000 (23:31 -0700)]
add log file

7 years agomove mbox source into mbox.rb remote-source-removal
Rich Lane [Mon, 22 Mar 2010 00:53:12 +0000 (17:53 -0700)]
move mbox source into mbox.rb

7 years agoremove mbox+ssh source
Rich Lane [Sun, 21 Mar 2010 23:40:46 +0000 (16:40 -0700)]
remove mbox+ssh source

7 years agoremove IMAP source
Rich Lane [Sun, 21 Mar 2010 23:37:27 +0000 (16:37 -0700)]
remove IMAP source

7 years agoupdate sup-tweak-labels query syntax for xapian
Rich Lane [Sun, 21 Mar 2010 23:33:12 +0000 (16:33 -0700)]
update sup-tweak-labels query syntax for xapian

7 years agoruby 1.9 Enumerator compatibility
Rich Lane [Sat, 20 Mar 2010 19:54:52 +0000 (12:54 -0700)]
ruby 1.9 Enumerator compatibility

7 years agoindex version bump multiple-locations
Rich Lane [Fri, 19 Mar 2010 21:10:17 +0000 (14:10 -0700)]
index version bump

7 years agobackwards compatibility with older index formats
Rich Lane [Fri, 19 Mar 2010 20:40:57 +0000 (13:40 -0700)]
backwards compatibility with older index formats

7 years agohandle multiple locations in sup-sync and poll
Rich Lane [Tue, 19 Jan 2010 06:54:42 +0000 (22:54 -0800)]
handle multiple locations in sup-sync and poll

7 years agomake Message#locations writable
Rich Lane [Tue, 19 Jan 2010 06:48:30 +0000 (22:48 -0800)]
make Message#locations writable

7 years agochange index format to store multiple message locations
Rich Lane [Tue, 19 Jan 2010 06:25:13 +0000 (22:25 -0800)]
change index format to store multiple message locations

7 years agouse source and source_info accessors inside Message
Rich Lane [Tue, 19 Jan 2010 06:13:44 +0000 (22:13 -0800)]
use source and source_info accessors inside Message

7 years agoImplement inline GPG inline-gpg
Michael Stapelberg [Tue, 9 Mar 2010 16:40:48 +0000 (17:40 +0100)]
Implement inline GPG

The SIG_PATTERN had to be changed because GPG, when clearsigning (which
is what happens when you send inline GPG messages), kind of escapes
lines beginning with dashes (so that the -----BEGIN PGP MESSAGE-----
lines don’t get messed up). Therefore, signatures, starting with "-- "
will be escaped as "- -- ". The manpage of GPG states that the process
of clearsigning is not reversible. Thus, there is no method in GPG to
get the original message.

7 years agoAdded slip_rows config option
Daniel Schoepe [Sun, 14 Mar 2010 16:07:05 +0000 (17:07 +0100)]
Added slip_rows config option

This patch adds a slip_rows config option used by thread-view-mode
that passes the argument to scroll-mode, which already has that
functionality, but it was only used by completion-mode before.
The option controls how many lines of context are shown when scrolling
up/down.

7 years agoUse multiple body arrays when calling before-edit for each reply type
Michael Stapelberg [Tue, 9 Mar 2010 22:56:02 +0000 (23:56 +0100)]
Use multiple body arrays when calling before-edit for each reply type

This allows for before-edit hooks which modify the body of the message
based on the different headers (previously, they could only modify
headers).

As an example, I use it to sign mail in english if one of the recipients
(not *the* recipient, but one of them) is speaking english.

7 years agoCorrectly pad date strings, as they might contain utf-8 characters
Michael Stapelberg [Tue, 9 Mar 2010 17:01:49 +0000 (18:01 +0100)]
Correctly pad date strings, as they might contain utf-8 characters

sprintf is not utf8-aware and thus the output gets a wrong padding
(correct in terms of bytes, not correct in terms of visible characters).
You can notice this using a german locale (de_DE) and viewing mails
from march (abbreviated "M\xc3\xa4r" in german).

7 years agosplat arguments to Hash[]
Rich Lane [Mon, 8 Mar 2010 16:01:07 +0000 (08:01 -0800)]
splat arguments to Hash[]

7 years agoupdate contributors
Rich Lane [Sun, 7 Mar 2010 23:55:03 +0000 (15:55 -0800)]
update contributors

7 years agoUpdate changelog/etc for 0.11
Rich Lane [Sun, 7 Mar 2010 23:37:51 +0000 (15:37 -0800)]
Update changelog/etc for 0.11

7 years agoMerge branch 'sup-cmd'
Rich Lane [Sun, 7 Mar 2010 21:19:18 +0000 (13:19 -0800)]
Merge branch 'sup-cmd'

Conflicts:
lib/sup.rb

7 years agoMerge branch 'fix-utf8'
Rich Lane [Sun, 7 Mar 2010 21:18:43 +0000 (13:18 -0800)]
Merge branch 'fix-utf8'

7 years agoMerge branch 'mentions-attachments-hook'
Rich Lane [Sun, 7 Mar 2010 21:18:36 +0000 (13:18 -0800)]
Merge branch 'mentions-attachments-hook'

Conflicts:
lib/sup/modes/edit-message-mode.rb

7 years agoMerge branch 'publish-hook'
Rich Lane [Sun, 7 Mar 2010 21:18:02 +0000 (13:18 -0800)]
Merge branch 'publish-hook'

7 years agoMerge branch 'keybindings'
Rich Lane [Sun, 7 Mar 2010 21:17:54 +0000 (13:17 -0800)]
Merge branch 'keybindings'

7 years agoMerge branch 'highlights'
Rich Lane [Sun, 7 Mar 2010 21:17:49 +0000 (13:17 -0800)]
Merge branch 'highlights'

7 years agoMerge branch 'idle'
Rich Lane [Sun, 7 Mar 2010 21:17:46 +0000 (13:17 -0800)]
Merge branch 'idle'

7 years agoMerge branch 'date-widget-hook'
Rich Lane [Sun, 7 Mar 2010 21:17:39 +0000 (13:17 -0800)]
Merge branch 'date-widget-hook'

7 years agoMerge branch 'textfield-tweaks'
Rich Lane [Sun, 7 Mar 2010 21:17:34 +0000 (13:17 -0800)]
Merge branch 'textfield-tweaks'

7 years agoMerge branch 'ferret-removal'
Rich Lane [Sun, 7 Mar 2010 21:17:18 +0000 (13:17 -0800)]
Merge branch 'ferret-removal'

7 years agoMerge branch 'remote-source-deprecation'
Rich Lane [Sun, 7 Mar 2010 21:17:13 +0000 (13:17 -0800)]
Merge branch 'remote-source-deprecation'

7 years agoruby 1.9 textfield fixes textfield-tweaks
Rich Lane [Fri, 5 Mar 2010 03:14:24 +0000 (19:14 -0800)]
ruby 1.9 textfield fixes

7 years agopromote missing ncursesw log to info
Rich Lane [Thu, 4 Mar 2010 16:57:16 +0000 (08:57 -0800)]
promote missing ncursesw log to info

7 years agochange gem dependency from ncursesw to ncurses
Rich Lane [Thu, 4 Mar 2010 04:17:31 +0000 (20:17 -0800)]
change gem dependency from ncursesw to ncurses

7 years agoObject#tap backport
Rich Lane [Thu, 4 Mar 2010 04:08:50 +0000 (20:08 -0800)]
Object#tap backport

7 years agofix textfield history
Rich Lane [Tue, 2 Mar 2010 05:04:32 +0000 (21:04 -0800)]
fix textfield history

7 years agotextfield home/end keys
Rich Lane [Tue, 2 Mar 2010 03:56:23 +0000 (19:56 -0800)]
textfield home/end keys

7 years agosupport older ncurses gems without opts_off
Rich Lane [Mon, 1 Mar 2010 23:26:52 +0000 (15:26 -0800)]
support older ncurses gems without opts_off

7 years agoimplement sup-cmd using existing Index apis sup-cmd
Rich Lane [Mon, 1 Mar 2010 03:04:35 +0000 (19:04 -0800)]
implement sup-cmd using existing Index apis

7 years agoseveral XapianIndex renaming fixes ferret-removal
Michael Hamann [Sun, 28 Feb 2010 21:58:25 +0000 (22:58 +0100)]
several XapianIndex renaming fixes

7 years agodeprecate imap and mbox+ssh sources remote-source-deprecation
Rich Lane [Sun, 28 Feb 2010 21:13:27 +0000 (13:13 -0800)]
deprecate imap and mbox+ssh sources

7 years agoremove ferret and index choice code
Rich Lane [Sun, 28 Feb 2010 20:34:52 +0000 (12:34 -0800)]
remove ferret and index choice code

7 years agoforce UTF8 on strings read from ask and account names in the config file fix-utf8
Rich Lane [Sun, 28 Feb 2010 20:08:05 +0000 (12:08 -0800)]
force UTF8 on strings read from ask and account names in the config file

7 years agoreplace RE_UTF8 with backport of String#ascii_only?
Rich Lane [Sun, 28 Feb 2010 19:28:16 +0000 (11:28 -0800)]
replace RE_UTF8 with backport of String#ascii_only?

7 years agoBugfix: Don’t call Ncurses.getch when in shell_out mode
Michael Stapelberg [Fri, 19 Feb 2010 03:20:49 +0000 (04:20 +0100)]
Bugfix: Don’t call Ncurses.getch when in shell_out mode

Previously, when using threads, Ncurses.getch was called while
the gpg pinentry was running (as an example of using the shell_out
method). Now, the Ncurses mutex will be used to wait until shell_out
mode is finished.