Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Add V to view a raw message (headers and body).
@ 2009-06-04 16:03 Ben Walton
  2009-06-05  7:15 ` Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Walton @ 2009-06-04 16:03 UTC (permalink / raw)


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 at artsci.utoronto.ca>
---
 lib/sup/modes/thread-view-mode.rb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
index 42c6280..8de7ab0 100644
--- a/lib/sup/modes/thread-view-mode.rb
+++ b/lib/sup/modes/thread-view-mode.rb
@@ -27,6 +27,7 @@ EOS
   register_keymap do |k|
     k.add :toggle_detailed_header, "Toggle detailed header", 'h'
     k.add :show_header, "Show full message header", 'H'
+    k.add :show_message, "Show full message (raw form)", 'V'
     k.add :activate_chunk, "Expand/collapse or activate item", :enter
     k.add :expand_all_messages, "Expand/collapse all messages", 'E'
     k.add :edit_draft, "Edit draft", 'e'
@@ -134,6 +135,13 @@ EOS
     end
   end
 
+  def show_message
+    m = @message_lines[curpos] or return
+    BufferManager.spawn_unless_exists("Raw message for #{m.id}") do
+      TextMode.new m.raw_message
+    end
+  end
+
   def toggle_detailed_header
     m = @message_lines[curpos] or return
     @layout[m].state = (@layout[m].state == :detailed ? :open : :detailed)
-- 
1.6.3



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] [PATCH] Add V to view a raw message (headers and body).
  2009-06-04 16:03 [sup-talk] [PATCH] Add V to view a raw message (headers and body) Ben Walton
@ 2009-06-05  7:15 ` Nicolas Pouillard
  2009-06-05 11:30   ` Ben Walton
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pouillard @ 2009-06-05  7:15 UTC (permalink / raw)


Excerpts from Ben Walton's message of Thu Jun 04 18:03:10 +0200 2009:
> This is an augment of the already existing view header (H) command,
> but allows viewing of all mime parts in their raw form, etc.

I usually use '|' followed by "cat" or "less" for this purpose, but maybe a
dedicated key-binding is better.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] [PATCH] Add V to view a raw message (headers and body).
  2009-06-05  7:15 ` Nicolas Pouillard
@ 2009-06-05 11:30   ` Ben Walton
  2009-06-05 15:31     ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Walton @ 2009-06-05 11:30 UTC (permalink / raw)


Excerpts from Nicolas Pouillard's message of Fri Jun 05 03:15:02 -0400 2009:
> Excerpts from Ben Walton's message of Thu Jun 04 18:03:10 +0200 2009:
> > This is an augment of the already existing view header (H) command,
> > but allows viewing of all mime parts in their raw form, etc.

> I usually use '|' followed by "cat" or "less" for this purpose, but maybe a
> dedicated key-binding is better.

Yah, I was aiming for less typing...it's something I do often enough.

-Ben

-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090605/0f741833/attachment.bin>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] [PATCH] Add V to view a raw message (headers and body).
  2009-06-05 11:30   ` Ben Walton
@ 2009-06-05 15:31     ` William Morgan
  0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2009-06-05 15:31 UTC (permalink / raw)


Reformatted excerpts from Ben Walton's message of 2009-06-05:
> Yah, I was aiming for less typing...it's something I do often enough.

Good enough for me. Applied directly to master. Thanks!
-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-05 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-04 16:03 [sup-talk] [PATCH] Add V to view a raw message (headers and body) Ben Walton
2009-06-05  7:15 ` Nicolas Pouillard
2009-06-05 11:30   ` Ben Walton
2009-06-05 15:31     ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox