* Help with gnus-simplify-subject-fuzzy-regexp
@ 2019-03-05 21:03 Igor Sosa Mayor
2019-03-05 21:50 ` Andreas Schwab
2019-03-05 21:55 ` Eric Abrahamsen
0 siblings, 2 replies; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-05 21:03 UTC (permalink / raw)
To: ding
Hi,
I'm using gnus as rss fetcher (using gwene, etc.). The news in some
groups have url addresses in their subjects. I want to get rid of them
and (as far as I understand) I should do it using
gnus-simplify-subject-functions.
I have this in my config:
(setq gnus-simplify-subject-fuzzy-regexp "http.*$")
(setq gnus-simplify-subject-functions
'(gnus-simplify-subject-fuzzy))
But the subjects still have "http://etc.".
Is there any other variable or function which could maybe interfer with
this config?
Many thanks in advance!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 21:03 Help with gnus-simplify-subject-fuzzy-regexp Igor Sosa Mayor
@ 2019-03-05 21:50 ` Andreas Schwab
2019-03-05 22:33 ` Igor Sosa Mayor
2019-03-05 21:55 ` Eric Abrahamsen
1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2019-03-05 21:50 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: ding
On Mär 05 2019, Igor Sosa Mayor <joseleopoldo1792@gmail.com> wrote:
> I'm using gnus as rss fetcher (using gwene, etc.). The news in some
> groups have url addresses in their subjects. I want to get rid of them
> and (as far as I understand) I should do it using
> gnus-simplify-subject-functions.
gnus-simplify-subject-functions is not about modifing the subject
header, it is about obtaining keys for gathering loose threads.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 21:03 Help with gnus-simplify-subject-fuzzy-regexp Igor Sosa Mayor
2019-03-05 21:50 ` Andreas Schwab
@ 2019-03-05 21:55 ` Eric Abrahamsen
2019-03-05 21:57 ` Eric Abrahamsen
1 sibling, 1 reply; 12+ messages in thread
From: Eric Abrahamsen @ 2019-03-05 21:55 UTC (permalink / raw)
To: ding
Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
> Hi,
>
> I'm using gnus as rss fetcher (using gwene, etc.). The news in some
> groups have url addresses in their subjects. I want to get rid of them
> and (as far as I understand) I should do it using
> gnus-simplify-subject-functions.
>
> I have this in my config:
>
> (setq gnus-simplify-subject-fuzzy-regexp "http.*$")
> (setq gnus-simplify-subject-functions
> '(gnus-simplify-subject-fuzzy))
>
> But the subjects still have "http://etc.".
>
> Is there any other variable or function which could maybe interfer with
> this config?
>
> Many thanks in advance!
What's the value of gnus-summary-line-format in that group? Also, maybe
first try a basic sanity check like:
(setq gnus-simplify-subject-functions (list (lambda (sub) (upcase sub))))
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 21:55 ` Eric Abrahamsen
@ 2019-03-05 21:57 ` Eric Abrahamsen
0 siblings, 0 replies; 12+ messages in thread
From: Eric Abrahamsen @ 2019-03-05 21:57 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
>
>> Hi,
>>
>> I'm using gnus as rss fetcher (using gwene, etc.). The news in some
>> groups have url addresses in their subjects. I want to get rid of them
>> and (as far as I understand) I should do it using
>> gnus-simplify-subject-functions.
>>
>> I have this in my config:
>>
>> (setq gnus-simplify-subject-fuzzy-regexp "http.*$")
>> (setq gnus-simplify-subject-functions
>> '(gnus-simplify-subject-fuzzy))
>>
>> But the subjects still have "http://etc.".
>>
>> Is there any other variable or function which could maybe interfer with
>> this config?
>>
>> Many thanks in advance!
>
> What's the value of gnus-summary-line-format in that group? Also, maybe
> first try a basic sanity check like:
>
> (setq gnus-simplify-subject-functions (list (lambda (sub) (upcase sub))))
Oops, ignore me!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 21:50 ` Andreas Schwab
@ 2019-03-05 22:33 ` Igor Sosa Mayor
2019-03-05 22:53 ` Andreas Schwab
2019-03-06 6:31 ` Eric S Fraga
0 siblings, 2 replies; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-05 22:33 UTC (permalink / raw)
To: ding
Andreas Schwab <schwab@linux-m68k.org> writes:
> On Mär 05 2019, Igor Sosa Mayor <joseleopoldo1792@gmail.com> wrote:
>
>> I'm using gnus as rss fetcher (using gwene, etc.). The news in some
>> groups have url addresses in their subjects. I want to get rid of them
>> and (as far as I understand) I should do it using
>> gnus-simplify-subject-functions.
>
> gnus-simplify-subject-functions is not about modifing the subject
> header, it is about obtaining keys for gathering loose threads.
OK, I understand. Thanks.
Is there a way to modify subject headers (in the group summary)?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 22:33 ` Igor Sosa Mayor
@ 2019-03-05 22:53 ` Andreas Schwab
2019-03-06 18:58 ` Igor Sosa Mayor
2019-03-06 6:31 ` Eric S Fraga
1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2019-03-05 22:53 UTC (permalink / raw)
To: Igor Sosa Mayor; +Cc: ding
On Mär 05 2019, Igor Sosa Mayor <joseleopoldo1792@gmail.com> wrote:
> Is there a way to modify subject headers (in the group summary)?
I'd guess you have to write a washing function.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 22:33 ` Igor Sosa Mayor
2019-03-05 22:53 ` Andreas Schwab
@ 2019-03-06 6:31 ` Eric S Fraga
2019-03-06 18:58 ` Igor Sosa Mayor
1 sibling, 1 reply; 12+ messages in thread
From: Eric S Fraga @ 2019-03-06 6:31 UTC (permalink / raw)
To: ding
On Tuesday, 5 Mar 2019 at 23:33, Igor Sosa Mayor wrote:
> Is there a way to modify subject headers (in the group summary)?
You might try setting gnus-list-identifiers.
--
Eric S Fraga via Emacs 27.0.50 & org 9.2.1 on Debian buster/sid
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-06 6:31 ` Eric S Fraga
@ 2019-03-06 18:58 ` Igor Sosa Mayor
2019-03-06 21:35 ` Eric S Fraga
0 siblings, 1 reply; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-06 18:58 UTC (permalink / raw)
To: ding
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Tuesday, 5 Mar 2019 at 23:33, Igor Sosa Mayor wrote:
>> Is there a way to modify subject headers (in the group summary)?
>
> You might try setting gnus-list-identifiers.
in which sense? I think I will try with a gnus-user-format-function...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-05 22:53 ` Andreas Schwab
@ 2019-03-06 18:58 ` Igor Sosa Mayor
0 siblings, 0 replies; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-06 18:58 UTC (permalink / raw)
To: ding
Andreas Schwab <schwab@linux-m68k.org> writes:
> On Mär 05 2019, Igor Sosa Mayor <joseleopoldo1792@gmail.com> wrote:
>
>> Is there a way to modify subject headers (in the group summary)?
>
> I'd guess you have to write a washing function.
Thanks for the hint. I think I will try with a
gnus-user-format-function...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-06 18:58 ` Igor Sosa Mayor
@ 2019-03-06 21:35 ` Eric S Fraga
2019-03-07 21:30 ` Igor Sosa Mayor
0 siblings, 1 reply; 12+ messages in thread
From: Eric S Fraga @ 2019-03-06 21:35 UTC (permalink / raw)
To: ding
On Wednesday, 6 Mar 2019 at 19:58, Igor Sosa Mayor wrote:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>> You might try setting gnus-list-identifiers.
> in which sense? I think I will try with a gnus-user-format-function...
Well, gnus-list-identifiers is a "Regexp that matches list identifiers
to be removed from subject." which I thought matched exactly what you
wanted?
--
Eric S Fraga via Emacs 27.0.50 & org 9.2.2 on Debian buster/sid
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-06 21:35 ` Eric S Fraga
@ 2019-03-07 21:30 ` Igor Sosa Mayor
2019-03-07 22:28 ` Igor Sosa Mayor
0 siblings, 1 reply; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-07 21:30 UTC (permalink / raw)
To: ding
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Wednesday, 6 Mar 2019 at 19:58, Igor Sosa Mayor wrote:
>> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>>> You might try setting gnus-list-identifiers.
>> in which sense? I think I will try with a gnus-user-format-function...
>
> Well, gnus-list-identifiers is a "Regexp that matches list identifiers
> to be removed from subject." which I thought matched exactly what you
> wanted?
Yes, exactly. I will give it a try. Thanks!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Help with gnus-simplify-subject-fuzzy-regexp
2019-03-07 21:30 ` Igor Sosa Mayor
@ 2019-03-07 22:28 ` Igor Sosa Mayor
0 siblings, 0 replies; 12+ messages in thread
From: Igor Sosa Mayor @ 2019-03-07 22:28 UTC (permalink / raw)
To: ding
Just for the record.
I achieved it with this simple function:
(defun gnus-user-format-function-j (header)
(replace-regexp-in-string "http.*$" "" (mail-header-subject header)))
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2019-03-07 22:28 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 21:03 Help with gnus-simplify-subject-fuzzy-regexp Igor Sosa Mayor
2019-03-05 21:50 ` Andreas Schwab
2019-03-05 22:33 ` Igor Sosa Mayor
2019-03-05 22:53 ` Andreas Schwab
2019-03-06 18:58 ` Igor Sosa Mayor
2019-03-06 6:31 ` Eric S Fraga
2019-03-06 18:58 ` Igor Sosa Mayor
2019-03-06 21:35 ` Eric S Fraga
2019-03-07 21:30 ` Igor Sosa Mayor
2019-03-07 22:28 ` Igor Sosa Mayor
2019-03-05 21:55 ` Eric Abrahamsen
2019-03-05 21:57 ` Eric Abrahamsen
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).