🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #205875

Re: [slrn] newbie stuck some what

#205875
From: Blinky the Shark
Date: Sat, 15 Sep 2007 02:00
77 lines
3555 bytes
Ben Shimmin wrote:

> If you want to use Thomas' patch, I would suggest reading the manpage at
> patch(1).
 
Did.

I wasn't surprised to get:

<q>

[blinky@thurston src]$ patch -b mime.c patch_for_mime.c
patching file mime.c
Hunk #1 FAILED at 1231.
1 out of 1 hunk FAILED -- saving rejects to file mime.c.rej

</q>

mime.c.rej:

------------------------------->8

***************
*** 1231,1247 ****
     char *tmp, *ret;
     Slrn_Mime_Error_Obj *err=NULL;

     if (strlen(s) <= 78)
       {
         /* nothing to do */
         return NULL;
       }
-
     /* First step: counting. */

     /* skip the first word and all ws after it
      * (folding after the keyword is not allowed) */
     /* I'm not sure about that FS */
     while (((last_ws) || (s[pos] != ' ')) && (s[pos] != '\0'))
       {
         if (s[pos] == ' ')
--- 1231,1253 ----
     char *tmp, *ret;
     Slrn_Mime_Error_Obj *err=NULL;

     if (strlen(s) <= 78)
       {
         /* nothing to do */
         return NULL;
       }
+
+    if (slrn_case_strncmp(s,"x-face:",7) == 0)
+      {
+        /* leave X-Face untouched do */
+        return NULL;
+      }
+
     /* First step: counting. */

     /* skip the first word and all ws after it
      * (folding after the keyword is not allowed) */
     /* I'm not sure about that FS */
     while (((last_ws) || (s[pos] != ' ')) && (s[pos] != '\0'))
       {
         if (s[pos] == ' ')

------------------8<-----------------------------------

Whatever.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org  <----------- New Site Aug 28
Technical Details
Message-ID: <pan.2007.09.15.02.00.13.218296@thurston.blinkynet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <GuGdnb2Nc_-5qnrbnZ2dnUVZ_ramnZ2d@insightbb.com> <20070912112705@usenet.piggo.com> <os-dnRw9ioRgQHrbnZ2dnUVZ_jOdnZ2d@insightbb.com> <slrnfegii7.har.no.spam@thurston.blinkynet.net> <aradnU51muySyXXbnZ2dnUVZ_uXinZ2d@insightbb.com> <slrnfeglhs.kdq.no.spam@thurston.blinkynet.net> <aradnUt1mux4y3XbnZ2dnUVZ_uXinZ2d@insightbb.com> <fcdrth$hhj$2@registered.motzarella.org> <slrnfekttr.8ol.wiegner@dost.mchm.siemens.de> <slrnfekubn.ukn.no.spam@thurston.blinkynet.net> <sqpqr4-eg8.ln1@wiegner.user.individual.de> <slrnfelmki.4u6.no.spam@thurston.blinkynet.net> <slrn.2007-09-14.19-53-40@cunegonde.bas.me.uk>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2007.09.15.02.00.13.218296@thurston.blinkynet.net>
Subject: Re: [slrn] newbie stuck some what
Date: Fri, 14 Sep 2007 19:00:15 -0700
From: Blinky the Shark <no.spam@box.invalid>
References: <GuGdnb2Nc_-5qnrbnZ2dnUVZ_ramnZ2d@insightbb.com> <20070912112705@usenet.piggo.com> <os-dnRw9ioRgQHrbnZ2dnUVZ_jOdnZ2d@insightbb.com> <slrnfegii7.har.no.spam@thurston.blinkynet.net> <aradnU51muySyXXbnZ2dnUVZ_uXinZ2d@insightbb.com> <slrnfeglhs.kdq.no.spam@thurston.blinkynet.net> <aradnUt1mux4y3XbnZ2dnUVZ_uXinZ2d@insightbb.com> <fcdrth$hhj$2@registered.motzarella.org> <slrnfekttr.8ol.wiegner@dost.mchm.siemens.de> <slrnfekubn.ukn.no.spam@thurston.blinkynet.net> <sqpqr4-eg8.ln1@wiegner.user.individual.de> <slrnfelmki.4u6.no.spam@thurston.blinkynet.net> <slrn.2007-09-14.19-53-40@cunegonde.bas.me.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: http://blinkynet.net
Lines: 77
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net u0486eLLbPBanrRAnx8CeQX28ktJsNLtq6rjCjBEDPeNn5UJAb
Cancel-Lock: sha1:rz8AuTkAn8kQTkqbrPjWe7SxBmM=
User-Agent: Pan/0.14.2.91
X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%;
 )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E
X-OS: Mandriva Linux 2006.0; kernel 2.6.12
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black
X-The-Usenet-Improvement-Project: http://improve-usenet.org