Ben Walton | 1 Jun 2009 03:01
Picon
Picon

(no subject)

>From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
From: Ben Walton <bwalton <at> artsci.utoronto.ca>
Date: Sun, 31 May 2009 20:37:11 -0400
Subject: [PATCH] Add bounce message feature

By pressing ! in thread view mode, a message can be re-injected to the
mail system without any modification.  The interesting/useful property
of this feature is that, because only the envelope sender changes, the
mail will show up at the new destination with the original From:
header.  A use case for this is redirecting mail sent to an individual
into a ticket system such that the original sender gets the
auto-response.

Signed-off-by: Ben Walton <bwalton <at> artsci.utoronto.ca>
---
 lib/sup/modes/thread-view-mode.rb |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
index 42c6280..4737dde 100644
--- a/lib/sup/modes/thread-view-mode.rb
+++ b/lib/sup/modes/thread-view-mode.rb
 <at>  <at>  -41,6 +41,7  <at>  <at>  EOS
 #    k.add :collapse_non_new_messages, "Collapse all but unread messages", 'N'
     k.add :reply, "Reply to a message", 'r'
     k.add :forward, "Forward a message or attachment", 'f'
+    k.add :bounce, "Bounce message to other recipient(s)", '!'
     k.add :alias, "Edit alias/nickname for a person", 'i'
     k.add :edit_as_new, "Edit message as new", 'D'
     k.add :save_to_disk, "Save message/attachment to disk", 's'
(Continue reading)

Ben Walton | 1 Jun 2009 03:04
Picon
Picon

Re: (no subject)

Excerpts from Ben Walton's message of Sun May 31 21:01:10 -0400 2009:

> >From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
> From: Ben Walton <bwalton <at> artsci.utoronto.ca>
> Date: Sun, 31 May 2009 20:37:11 -0400
> Subject: [PATCH] Add bounce message feature

...sorry for the odd way in which this arrived.  The changed behaviour
in the recent git send-email threw me for a bit and I fired the cover
letter without the patch following.

Thanks.
-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.
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
Ben Walton | 1 Jun 2009 02:54
Picon
Picon

[RFC] Bounce messages

Hi All,

I spent a few hours this evening putting together the basics of (I
think) the last feature of mutt that I miss in sup: Message bouncing.

It works in it's current form, but I think it needs a little further
tweaking before it is merge ready.

Currently it's pretty dumb wrt which sendmail command it calls.  It
simply calls sendmail with some sane (for my environment, anyway) args
and a list of recipients (skipping the -t flag which makes it read
recipients from headers in the input).  I didn't want to implement a
second mail variable per account, although that would solve the
problem, and I didn't want to use the default sendmail command with
the -t stripped from the args (although that would also work).

The other thing that I don't like presently is the confirmation UI.
Without resorting to a whole bounce-mode, is there a better way to
handle this in the face of (potentially) multiple recipients that may
make the question stretch outside the viewable area?

I'm interested in what others think is the right solution to these
problems...and whether others besides myself miss this feature of
mutt.

Thanks
-Ben
Ben Walton | 1 Jun 2009 04:13
Picon
Picon

Re: (no subject)

Excerpts from Ben Walton's message of Sun May 31 21:01:10 -0400 2009:
> >From 702b2cc1e652c1f20f4280b11355cb337291df87 Mon Sep 17 00:00:00 2001
> From: Ben Walton <bwalton <at> artsci.utoronto.ca>
> Date: Sun, 31 May 2009 20:37:11 -0400
> Subject: [PATCH] Add bounce message feature

I thought I'd also clarify that in its final form, there should be a
refactor of EditMessageMode::send_message to pull out the wrapped
IO.popen into a method usable for sending a normal message and
bouncing a message.

Thanks
-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.
_______________________________________________
sup-talk mailing list
sup-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
Edward Z. Yang | 2 Jun 2009 01:18
Picon
Favicon

Attempt at reply-from hook

Hello,

I'm attempting to create a reply-from.rb hook that looks like this:

if message.has_label? 'twp':
    Person.from_address "Edward Z. Yang <edwardzyang <at> thewritingpot.com>"
end

Unfortunately, it doesn't seem to work. I'm running sup v0.7.

Cheers,
Edward
Dominic LoBue | 2 Jun 2009 03:54
Picon

Need help with OfflineIMAP integration and Iconv errors

Hello,

Let me start off by saying that I am incredibly impressed with sup.
I'm really looking forward to being able to replace Outlook with Sup,
but I'm running into some problems that are preventing a complete
transition.

The first problem I'm having is when ferret is parsing through my
emails to build its indicies I get numerous "warning: error
(Iconv::IllegalSequence) decoding message body from X" errors, This
prevents a lot of my email from showing up at all. Iconv has this
problem from attempting to convert from Windows-1252, UTF-8, and
iso-8859-1. While I doubt its the cause of the problem, I am
downloading my email from the Exchange 2003 server at work via
OfflineIMAP.

The other major problem I'm running into is I can't figure out how to
get Sup and OfflineIMAP talking together correctly so that labels and
Seen flags are uploaded back to the Exchange server. I read that there
were no plans to support uploading meta-data back to IMAP servers, so
I was hoping that OfflineIMAP would sidestep the problem entirely. I
searched the archives but I didn't find any examples of working
configs.  If anyone can point me to a working example I'd greatly
appreciate it.

I've tried both the latest official release and the latest revision
uploaded to github as of 20 minutes ago.

Any help would be greatly appreciated!
Dominic LoBue
(Continue reading)

William Morgan | 2 Jun 2009 16:54

Re: utf patch needs work, i think

Reformatted excerpts from William Morgan's message of 2009-05-30:
> I suspect there's something like a tab or a weird character coming out
> of the decoding (which appears to be some non-utf16 text claiming a
> utf16 big-endian encoding) that is screwing with Ncurses.

I've committed some changes that should remove invalid characters
for your encoding before display. I think this should help. Also
various display tweaks to account for multibyte characters. I still
see some inconsistencies but I think it's getting better.

That message renders "fine" for me now. (A bunch of nonsense Chinese
characters mixed with some boxes.) I'm using utf8 in a gnome-terminal.
--

-- 
William <wmorgan-sup <at> masanjin.net>
Mark Alexander | 2 Jun 2009 18:29
Picon
Favicon

[PATCH] Handle nil charset on attachments.

I updated to the latest 'next' branch of sup
this morning, and immediately ran into a crash
when viewing a message with an attachement, which
was probably sent by an Outlook user.  The crash
was due to a nil charset; this patch fixes the crash.
---
 lib/sup/message-chunks.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
index 3f57346..41d924b 100644
--- a/lib/sup/message-chunks.rb
+++ b/lib/sup/message-chunks.rb
 <at>  <at>  -98,7 +98,7  <at>  <at>  EOS
       text =
         case  <at> content_type
         when /^text\/plain\b/
-          Iconv.easy_decode $encoding, encoded_content.charset,  <at> raw_content
+          Iconv.easy_decode $encoding, encoded_content.charset || $encoding,  <at> raw_content
         else
           HookManager.run "mime-decode", :content_type => content_type,
                           :filename => lambda { write_to_disk },
William Morgan | 2 Jun 2009 18:46

Re: [PATCH] Handle nil charset on attachments.

Reformatted excerpts from Mark Alexander's message of 2009-06-02:
> I updated to the latest 'next' branch of sup this morning, and
> immediately ran into a crash when viewing a message with an
> attachement, which was probably sent by an Outlook user. The crash
> was due to a nil charset; this patch fixes the crash.

Sloppy of me. Applied, thanks!
--

-- 
William <wmorgan-sup <at> masanjin.net>
Ingmar Vanhassel | 3 Jun 2009 00:09
Picon

Re: Attempt at reply-from hook

Excerpts from Edward Z. Yang's message of Tue Jun 02 01:18:26 +0200 2009:
> Hello,
> 
> I'm attempting to create a reply-from.rb hook that looks like this:
> 
> if message.has_label? 'twp':
>     Person.from_address "Edward Z. Yang <edwardzyang <at> thewritingpot.com>"
> end

if message.has_label? twp
    Person.from_address "Edward Z. Yang <edwardzyang <at> thewritingpot.com>"
end

> Unfortunately, it doesn't seem to work. I'm running sup v0.7.

If the above doesn't work, post some relevant error output.

> Cheers,
> Edward

Regards,
Ingmar

Gmane