Thread View: news.software.readers
10 messages
10 total messages
Started by DC
Wed, 21 Jan 2004 17:29
[slrn][Xnews] Custom SigDash Regex in slrn?
Author: DC
Date: Wed, 21 Jan 2004 17:29
Date: Wed, 21 Jan 2004 17:29
16 lines
1578 bytes
1578 bytes
slrnners: In Xnews, one was able to specify a regular expression for the signature delimiter which helped compensate for b0rked OE sigs (i.e. "--") Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash Is there an equivalent tweak to the .slrnrc that will accomplish the same thing? Thanks. -- DC Don't get Longhorned -- get Linux.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: ras2
Date: Wed, 21 Jan 2004 17:49
Date: Wed, 21 Jan 2004 17:49
18 lines
1652 bytes
1652 bytes
On 2004-01-21 17:29:57 GMT, DC <dcmoose@myrealbox.com> wrote in <slrnc0tdol.k09.dcmoose@moosemeat.ca.INVALID>: > slrnners: > > In Xnews, one was able to specify a regular expression for the signature > delimiter which helped compensate for b0rked OE sigs (i.e. "--") > > Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash > > Is there an equivalent tweak to the .slrnrc that will accomplish the > same thing? % Define regular expression used to detect signatures strip_sig_regexp "^-- $" -R.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: DC
Date: Wed, 21 Jan 2004 18:23
Date: Wed, 21 Jan 2004 18:23
28 lines
2203 bytes
2203 bytes
ras2 wrote in <slrnc0teuk.giq.removethis@gmx.net>: > On 2004-01-21 17:29:57 GMT, DC <dcmoose@myrealbox.com> > wrote in <slrnc0tdol.k09.dcmoose@moosemeat.ca.INVALID>: >> slrnners: >> In Xnews, one was able to specify a regular expression for the signature >> delimiter which helped compensate for b0rked OE sigs (i.e. "--") >> Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash >> Is there an equivalent tweak to the .slrnrc that will accomplish the >> same thing? > % Define regular expression used to detect signatures > strip_sig_regexp "^-- $" Thanks. Actually, I had to change it some. This works: strip_sig_regexp "^-- ?$" Is there a place where all of these not-included-in-the-rc options are listed? You can't just guess these things. -- DC Don't get Longhorned -- get Linux.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: ras2
Date: Wed, 21 Jan 2004 19:09
Date: Wed, 21 Jan 2004 19:09
32 lines
2411 bytes
2411 bytes
On 2004-01-21 18:23:37 GMT, DC <dcmoose@myrealbox.com> wrote in <slrnc0tgt9.khg.dcmoose@moosemeat.ca.INVALID>: > ras2 wrote in <slrnc0teuk.giq.removethis@gmx.net>: >> On 2004-01-21 17:29:57 GMT, DC <dcmoose@myrealbox.com> >> wrote in <slrnc0tdol.k09.dcmoose@moosemeat.ca.INVALID>: > >>> In Xnews, one was able to specify a regular expression for the signature >>> delimiter which helped compensate for b0rked OE sigs (i.e. "--") > >>> Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash > >>> Is there an equivalent tweak to the .slrnrc that will accomplish the >>> same thing? > >> % Define regular expression used to detect signatures >> strip_sig_regexp "^-- $" > > Thanks. Actually, I had to change it some. This works: > > strip_sig_regexp "^-- ?$" yeah. I just quoted from my .slrnrc (it must have been included in the example slrn.rc at one point). > Is there a place where all of these not-included-in-the-rc options are > listed? You can't just guess these things. They should be in manual.txt, but it often still takes some guessing to find the right entry. grep is helpful. -R.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: Rudy Taraschi
Date: Wed, 21 Jan 2004 20:24
Date: Wed, 21 Jan 2004 20:24
18 lines
1728 bytes
1728 bytes
DC wrote:
> In Xnews, one was able to specify a regular expression for the
> signature delimiter which helped compensate for b0rked OE sigs
> (i.e. "--")
>
> Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash
>
> Is there an equivalent tweak to the .slrnrc that will accomplish
> the same thing?
This is what I use:
strip_sig_regexp "^-- ?$" "^- -- ?$"
Cheers!
rudy
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: DC
Date: Wed, 21 Jan 2004 21:20
Date: Wed, 21 Jan 2004 21:20
22 lines
1893 bytes
1893 bytes
Rudy Taraschi wrote in <slrnc0to1m.2lk.rudy@142.39.20.3>: > DC wrote: >> In Xnews, one was able to specify a regular expression for the >> signature delimiter which helped compensate for b0rked OE sigs >> (i.e. "--") >> Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash >> Is there an equivalent tweak to the .slrnrc that will accomplish >> the same thing? > This is what I use: > strip_sig_regexp "^-- ?$" "^- -- ?$" Ah! to remove PGP sig artifacts, right? Good idea --- thanks! -- DC Don't get Longhorned -- get Linux.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: SINNER
Date: Wed, 21 Jan 2004 21:30
Date: Wed, 21 Jan 2004 21:30
34 lines
2254 bytes
2254 bytes
While strolling through news.software.readers, DC was overheard plotting: > Rudy Taraschi wrote in <slrnc0to1m.2lk.rudy@142.39.20.3>: >> DC wrote: > >>> In Xnews, one was able to specify a regular expression for the >>> signature delimiter which helped compensate for b0rked OE sigs >>> (i.e. "--") > >>> Link: http://www.geocities.com/d4vidb/x_setup12.html#sigdash > >>> Is there an equivalent tweak to the .slrnrc that will accomplish >>> the same thing? > >> This is what I use: > >> strip_sig_regexp "^-- ?$" "^- -- ?$" > > Ah! to remove PGP sig artifacts, right? Good idea --- thanks! > There is already a setting in slrn to do that. 6.48 hide_pgpsignature Type: integer Default: 0 If non-zero, PGP signatures in articles will not be displayed. The setting of this variable can be changed using toggle_pgpsignature (default binding: `]') while slrn is running. -- David
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: DC
Date: Wed, 21 Jan 2004 21:40
Date: Wed, 21 Jan 2004 21:40
34 lines
2404 bytes
2404 bytes
SINNER wrote in <Xns94779E212F73ALouiscypherhellorg@140.99.99.130>:
> While strolling through news.software.readers, DC was overheard
> plotting:
>> Rudy Taraschi wrote in <slrnc0to1m.2lk.rudy@142.39.20.3>:
>>> strip_sig_regexp "^-- ?$" "^- -- ?$"
>> Ah! to remove PGP sig artifacts, right? Good idea --- thanks!
> There is already a setting in slrn to do that.
> 6.48 hide_pgpsignature
> Type: integer
> Default: 0
> If non-zero, PGP signatures in articles will not be displayed. The
> setting of this variable can be changed using toggle_pgpsignature
> (default binding: `]') while slrn is running.
True, but what with the "artifacts" this sometimes leaves behind?
Like this
i.e. - --
Visit my web page at http://blahblah.bla
Go to comp.security.pgp.test and poke around. You'll see some like
that.
--
DC
Don't get Longhorned -- get Linux.
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: Paul Boekholt
Date: Thu, 22 Jan 2004 08:07
Date: Thu, 22 Jan 2004 08:07
104 lines
4734 bytes
4734 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 21 Jan 2004 21:40:02 GMT, DC <dcmoose@myrealbox.com> said:
>
> True, but what with the "artifacts" this sometimes leaves behind?
>
> Like this
>
> i.e. - --
> Visit my web page at http://blahblah.bla
These artifacts are not just left in the signature, but before any dash at
the beginning of a line.
- - like this one
>From the gpg FAQ:
4.7) How do I sign a patch file?
Use "gpg --clearsign --not-dash-escaped ...". The problem with
--clearsign is that all lines starting with a dash are quoted with
"- ";
As you can see, I haven't added the --not-dash-escaped option to my gpg.sl
yet.
6.8) When I use --clearsign, the plain text has sometimes extra dashes
in it - why?
This is called dash-escaped text and required by OpenPGP.
It always happens when a line starts with a dash ("-") and is needed
to make the lines that structure signature and text
(i.e., "-----BEGIN PGP SIGNATURE-----") to be the only lines that
start with two dashes.
If you use GnuPG to process those messages, the extra dashes are removed.
Good mail clients remove those extra dashes when displaying such a
message.
By "processing with GnuPG", they probably mean that you should decrypt
it, even though it was only signed and not encrypted. Anyone know a good
mail client? Gnus will remove the dashes but in the "like this one line"
above it will remove BOTH dashes.
This is from Gnus 5.7, but Gnus 5.9 has the same problem.
#v+
(defun article-hide-pgp (&optional arg)
"Toggle hiding of any PGP headers and signatures in the current article.
If given a negative prefix, always show; if given a positive prefix,
always hide."
(interactive (gnus-article-hidden-arg))
(unless (gnus-article-check-hidden-text 'pgp arg)
(save-excursion
(let ((inhibit-point-motion-hooks t)
buffer-read-only beg end)
(widen)
(goto-char (point-min))
;; Hide the "header".
(when (search-forward "\n-----BEGIN PGP SIGNED MESSAGE-----\n" nil t)
(delete-region (1+ (match-beginning 0)) (match-end 0))
(setq beg (point))
;; Hide the actual signature.
(and (search-forward "\n-----BEGIN PGP SIGNATURE-----\n" nil t)
(setq end (1+ (match-beginning 0)))
(delete-region
end
(if (search-forward "\n-----END PGP SIGNATURE-----\n" nil t)
(match-end 0)
;; Perhaps we shouldn't hide to the end of the buffer
;; if there is no end to the signature?
(point-max))))
;; Hide "- " PGP quotation markers.
(when (and beg end)
(narrow-to-region beg end)
(goto-char (point-min))
(while (re-search-forward "^- " nil t)
(delete-region
(match-beginning 0) (match-end 0)))
(widen))
(gnus-run-hooks 'gnus-article-hide-pgp-hook))))))
#v-
The problem is that after the re-search-forward and delete-region, they
forgot to go to the end of the line so the second dash matches again. It
should be
#v+
(while (re-search-forward "^- " nil t)
(delete-region
(match-beginning 0) (match-end 0))
(end-of-line)))
#v-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: processed by gpg.sl <http://jedmodes.sf.net>
iEYEARECAAYFAkAPg64ACgkQ1RTqFUe7bzNgoQCgxLN49HHrRQ9sh54A0GFX3X6/
ujQAoMhguj/LxRurYZmkzgSDTg40Ogja
=pZ+5
-----END PGP SIGNATURE-----
Re: [slrn][Xnews] Custom SigDash Regex in slrn?
Author: DC
Date: Thu, 22 Jan 2004 15:32
Date: Thu, 22 Jan 2004 15:32
26 lines
2036 bytes
2036 bytes
Paul Boekholt wrote in <buo0ct$9pn$1@reader11.wxs.nl>: > On 21 Jan 2004 21:40:02 GMT, DC <dcmoose@myrealbox.com> said: >> True, but what with the "artifacts" this sometimes leaves behind? >> Like this >> i.e. - -- >> Visit my web page at http://blahblah.bla > These artifacts are not just left in the signature, but before any dash at > the beginning of a line. > - - like this one > From the gpg FAQ: [snip] Thanks for the very, *VERY* detailed explanation. }:O) -- DC Don't get Longhorned -- get Linux.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads