On Sat, Apr 15, 2006 at 09:17:19PM -0800, Ken Irving wrote:
> On Sat, Jan 21, 2006 at 12:42:56AM +0100, Cord Beermann wrote:
> > Package: lists.debian.org
> > Followup-For: Bug #345283
> > 
> > this one would mean not only to append the normal unsubscribe-sermon
> > but fiddeling with MIME, to add a correct mime-container, i also
> > guess that this could be a general smartlist-problem.
> 
> This topic recently came up on debian/users; it looks like smartlist
> doesn't address it (see last entry in FAQ).  The amount of fiddling
> necessary is not much; in procmail, grab the multipart boundary string
> from the headers, seek to the terminating boundary, insert another
> section with the unsubscribe footer, and leave the terminating line there.
> 
> Maybe something like this will work?
> 
>     :0 fbw
>     * ^X-Mailing-List:[EMAIL PROTECTED]
>     * Content-Type: multipart.*boundary=\"\/[^"]*
>     | sed -e "s/--$MATCH--/--$MATCH\n\n`cat unsub-footer`\n\n&\n/"
> 
>     ## or the same thing in perl:
>     # | perl -pe "s/$MATCH--/$MATCH\n\n`cat unsub-footer`\n\n$MATCH--\n/"

I feel that if we're going to start fiddling with MIME messages, we
should check whether it's a valid MIME message first.

If we're doing that, we can also get the boundary out properly.

Pasc 
-- 
Pascal Hakim                                          0403 411 672
Do Not Bend


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to