From: piotr.kempa@wp.eu
To: sup-talk@rubyforge.org
Subject: Re: [sup-talk] PGP INLINE - can't make it work
Date: Tue, 2 Mar 2010 11:49:59 +0100 [thread overview]
Message-ID: <201003021149.59760.piotr.kempa@wp.eu> (raw)
In-Reply-To: <1267205858-sup-7113@hysbald>
I digged a bit further, trying to decode the emails from commandline with "gpg
--decode". For some of the inline GPG emails the commandline version fails,
but for some other it works. Even for those that it works, sup just shows
undecoded version which leads me to believe it doesn't even try to decode,
which means it doesn't recognize the email as encrypted at all.
As far as I can deduct, sup only recognizes encrypted emails if they have
something like this inside:
Content-Type: multipart/encrypted;
boundary="nextPart15239034.i9UOPnLxZ9";
protocol="application/pgp-encrypted"
Or similar. Which is a reasonable behaviour.
On the other hand, if the damned enigmail creates an email with "Content-Type:
text/plain;" and then proceeds to include "-----BEGIN PGP MESSAGE-----" in the
body, sup treats this as (no surprise) text/plain and doesn't decode. If it
tried, it would succeed since this message passed through gpg --decode is
decoded okay.
So, I guess if this functionality is to be included in sup (and I think it
doesn't have to be since enigmail just makes broken messages and there's no
reason why anybody should put up with that:) it should not be in crypto.rb but
somewhere else, where the decision is made to even use functions from
crypto.rb (like decrypt) on a message. I'm no programmer but I guess it should
be something like this:
if payload contains "BEGIN PGP MESSAGE" then run the decrypt function from
crypto.rb on it.
For now - does anybody know a way to mass decrypt all messages in my mailbox
so I can keep them in plain text and use sup anyway? That would be ideal
solution but I just can't find a program to do that. And gpg itself isn't
helpful since it just prints decoded payload on --output, without the headers,
so it's no use in batch. I can try to code this in bash but maybe there's
something out there already?
Thank you
Piotr
On Friday 26 February 2010 18:43:04 Sven Schober wrote:
> Excerpts from kosmici-atakuja's message of Fri Feb 26 18:08:36 +0100 2010:
> > First of wall I want to say I absolutely love sup! I used all the major
mail
> > clients like mutt, claws, thunderbird, kmail. All mail clients just fail
(mutt
> > was the closest though...). Sup so far has the potential to be the best of
> > them. If only I can get it to read the inline gpg that enigmail makes...
> >
> +1
>
> > Is there anything I can do to get this working? This is a crucial feature
for
> > me...
> >
> +1
> > Moreover, I searched the list archives and it looks like some people have
got
> > it working as there have been patches to make it work a couple of months
ago.
> > And my version is recent (January) so those patches should be in it. It
just
> > doesn't for me for some reason :(
> >
> I think there was a (preliminary) patch from Michael Stapelberg
> floating around, but somehow that didn't make it into next?
>
> > I know I should read crypto.rb and figure it out from there. I tried, I
just
> > can't understand it, as I'm not experienced in ruby, or email clients code
for
> > that matter.
> >
> +1
>
> > Please help!
> +1
>
> > Thank you
> > Piotr
>
> Ciao,
> Sven
> --
> Sven Schober, sven.schober@uni-ulm.de |UNI ULM
> http://www-vs.informatik.uni-ulm.de/dept/staff/schober/ |DISTRIBUTED
> Room O27-346, Phone: +49-731-5024146 [+49-179-5060182] |SYSTEMS LAB
>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-03-02 13:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 17:08 kosmici-atakuja
2010-02-26 17:43 ` Sven Schober
2010-03-02 10:49 ` piotr.kempa [this message]
2010-03-02 13:59 ` Michael Stapelberg
2010-03-02 14:19 ` piotr.kempa
2010-03-08 10:18 ` piotr.kempa
2010-03-08 10:29 ` piotr.kempa
2010-03-08 10:41 ` Michael Stapelberg
2010-03-08 10:50 ` Sven Moritz Hallberg
2010-03-08 11:20 ` piotr.kempa
2010-03-09 17:06 ` Michael Stapelberg
2010-03-10 10:53 ` Piotr Kempa
2010-03-10 11:14 ` Michael Stapelberg
2010-03-10 14:41 ` Piotr Kempa
2010-03-10 21:21 ` Michael Stapelberg
2010-03-02 14:12 ` Sam Hall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201003021149.59760.piotr.kempa@wp.eu \
--to=piotr.kempa@wp.eu \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox