All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Schmidt <mail_ben_schmidt@yahoo.com.au>
To: mlmmj@mlmmj.org
Subject: Re: Proposal for richer list text
Date: Wed, 03 Feb 2010 01:41:37 +0000	[thread overview]
Message-ID: <4B68D451.4030803@yahoo.com.au> (raw)
In-Reply-To: <4B5EE8BD.2050205@yahoo.com.au>

On 3/02/10 9:36 AM, Robin H. Johnson wrote:
> On Wed, Jan 27, 2010 at 12:06:05AM +1100, Ben Schmidt wrote:
>> I'm wondering if this sounds acceptable. I'll go ahead and have a
>> shot implementing it, if so.
>>
>> I'm thinking of extending the listtext/prepstdreply mechanism to,
>> rather than just expect and include a subject header, to allow other
>> headers at the top of listtexts, that would/could replace the
>> default headers, and to allow greater amounts of the original mail
>> to be included, and random and subject substitutions.
>>
>> The first part would involve representing the default headers (To,
>> From, Reply-To, MIME-Version, Content-Type, etc.) in a
>> list/structure, then parsing each header line of the listtext,
>> removing existing headers from the structure if they match the new
>> one, and then adding the new one. Then the structure would be
>> reduced to a single string and output.
> Heavily in favour of supporting custom headers in listtexts.
>
> I just found out the hard way that subconf mails do NOT have any of the
> customheaders on them, and thus ended up getting us in a blacklist for a
> while.
>
> Can we get that first part implemented ASAP? One thing I am concerned
> about with it, is the ability to append vs. replace headers.
>
> For the moment, I say we just append, not replace.

Replacement is necessary to be able to change the content type which is
one of my main goals.

I can see it could be a problem if wanting to add multiple headers of
one kind, though.

How about it removes an mlmmj default header if it finds one, but
ensures it never replaces headers in the listtext with each other, i.e.
all the headers in the listtext will definitely end up in the mail?

For reference, the default headers mlmmj generates are:

From: for moderation emails, list+owner@...
To: for moderation emails, list-moderators@...
Reply-To: for moderation emails, list+moderate-blahblahblah@...
Date: ...
Message-ID: ...
Subject: from listtext
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Encoding: 8bit

Actually, this last one is a bug...that should be
'Content-Transfer-Encoding:'; there is no such MIME header as
'Content-Encoding:'. The same bug is there when digests are constructed.
That bugfix will be included in the patch when I've made it. As well as
another one I just spotted where the listtext file isn't closed if
digests don't have a thread summary.

At any rate, these are the only headers that mlmmj adds, so the only
candidates for replacement, and I can imagine it being useful to be able
to replace all of them except 'Date', 'Message-ID' and possibly
'Reply-To'. Simply appending wouldn't work, particularly for what I want
to achieve.

Does this slight modification sound OK to you?

Ben.






      parent reply	other threads:[~2010-02-03  1:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 13:06 Proposal for richer list text Ben Schmidt
2010-01-27 10:42 ` Christoph Wilke
2010-02-02 22:36 ` Robin H. Johnson
2010-02-03  1:41 ` Ben Schmidt [this message]

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=4B68D451.4030803@yahoo.com.au \
    --to=mail_ben_schmidt@yahoo.com.au \
    --cc=mlmmj@mlmmj.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.