Gnus development mailing list
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: Buttonizing and decoding based on message part contents?
Date: Thu, 18 Dec 2003 12:30:06 -0500	[thread overview]
Message-ID: <m3fzfic9up.fsf@asfast.com> (raw)
In-Reply-To: <m3zndr6qjf.fsf@defun.localdomain>

Jesper Harder <harder@ifa.au.dk> writes:

> Lloyd Zusman <ljz@asfast.com> writes:
>
>> Jesper Harder <harder@ifa.au.dk> writes:
>>
>>> [ ... ]
>>>
>>> Well, I don't actually know if `article-hide-pgp' did anything
>>> useful for multiparts.
>
> It does, at least for text/plain parts.  Try the attached patch.

Thank you.  I'll give it a try.


>> If there was a hook function that gets called for each message part
>> (and which allows me to set the display and buttonizing status for
>> each part), I could then write my own, personal code to handle this
>> case, and at the same time avoid polluting the Gnus code base with
>> this anachronism.
>
> The bad thing isn't pollution, but that the approach
> `article-hide-pgp' uses doesn't really solve the problems.  It just
> hides them, viz.
>
> · It doesn't allow you to actually verify the signatures.
> · It doesn't work for encrypted parts.
> · It doesn't necessarily (I haven't tested) solve the related problem
>   of format=flowed & old-style PGP.

OK.  That makes sense.

In addition to trying the patch that you have enclosed, I also still
want to try the "hook" idea that I mentioned above.  I'll see if I can
do this.

A question: if I write a washing-type function that traverses the MIME
structure of a message and calls a hook for each part, what should I do
within this hook in order to cause each of the following outcomes? ...

1. Buttonize the message part.

2. Override the part's MIME type with my own setting.  This will allow a
   text/plain or application/octet-stream part that contains delimiters
   such as "-----BEGIN PGP MESSAGE-----" to be handled via the code that
   already exists for application/pgp-encrypted parts.

Thanks.

-- 
 Lloyd Zusman
 ljz@asfast.com




  reply	other threads:[~2003-12-18 17:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16 18:33 Lloyd Zusman
2003-12-16 23:08 ` Jesper Harder
2003-12-17 13:19   ` Lloyd Zusman
2003-12-17 13:49     ` Jesper Harder
2003-12-17 14:04       ` Lloyd Zusman
2003-12-17 15:13         ` Jesper Harder
2003-12-17 15:43           ` Lloyd Zusman
2003-12-17 22:13             ` Jesper Harder
2003-12-18 17:30               ` Lloyd Zusman [this message]
2003-12-19  1:17                 ` Jesper Harder
2003-12-19 18:26                   ` Lloyd Zusman

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=m3fzfic9up.fsf@asfast.com \
    --to=ljz@asfast.com \
    /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;
as well as URLs for NNTP newsgroup(s).