Re: Filtering cross posts

2024-03-02 Thread Adam Sjøgren
Richmond writes:

> Is it possible to filter out all cross posts? i.e. only see articles
> posted to the subscribed group?

Yes, you can use scoring for this, there are some examples in the
manual under "7.10 Scoring Tips":

 · https://www.gnus.org/manual/gnus_100.html#Scoring-Tips


  Best regards,

Adam

-- 
 "Emperors of the world hiding underground      Adam Sjøgren
  Waiting for the sky to rain on down with gold"   a...@koldfront.dk




Re: line brake for attachments

2024-02-15 Thread Adam Sjøgren
Dieter writes:

> <\#part ...>
> <\#/part>"
>
> for me it would be (much) nicer if this attachment needs only one line
> like this:
>
> <\#part ...><\#/part>"
>
> Is it possible to have a (customizable) variable for this behaviour?

Not out of the box, it seems to be "hardcoded" in the last line of
mml-insert-tag:

  (defun mml-insert-tag (name  plist)
"Insert an MML tag described by NAME and PLIST."
(when (symbolp name)
  (setq name (symbol-name name)))
(insert "<#" name)
(while plist
  (let ((key (pop plist))
(value (pop plist)))
(when value
  ;; Quote VALUE if it contains suspicious characters.
  (when (string-match "[][\"'\\~/*;()<>= \t\n[:multibyte:]]" value)
(setq value (with-output-to-string
  (let (print-escape-nonascii)
(prin1 value)
  (insert (format " %s=%s" key value)
(insert ">\n"))

which is called by mml-insert-empty-tag, which is in turn called by
mml-attach-file - called by you, I assume.

You could either wrap mml-attach-file in a little code that removes
the linefeed you do not like, and then call that, or (perhaps more
risky) add an advice to mml-insert-tag. Or simply override it with
your own version :-)


  Best regards,

Adam

-- 
 "Jo, tak som falbyder, det ville da være   Adam Sjøgren
  prisværdigt."a...@koldfront.dk




Re: Have message-ID set by my email server rather than by Message

2023-12-11 Thread Adam Sjøgren
One advantage of your email program setting the Message-ID is that the
unique identifier of the email is then known by your email program.


  Best regards,

Adam

-- 
 "It was called Tinderbox so we could make the joke,    Adam Sjøgren
  'the tree is on fire'. Puns are very important ina...@koldfront.dk
  naming tools."




Re: Does Gnus read and sync the read with IMAP?

2023-11-05 Thread Adam Sjøgren
Michael writes:

> AFAIU Gnus stores such stuff in a file named ".newsrc.eld" (AFAIR
> ".newsrc.el" in older Emacs versions).

Looks like the 'd' has been there at least since 1997; gnus-start.el:

eec82323c2e3 (Lars Ingebrigtsen 1997-04-16 2768)  (setq buffer-file-name
eec82323c2e3 (Lars Ingebrigtsen 1997-04-16 2769)(concat 
gnus-current-startup-file ".eld"))

and before that; gnus.el:

aa088210dd (Lars Magne Ingebrigtsen 1997-03-04 01:26:40 + 9645)
(write-region 1 (point-max) 
aa088210dd (Lars Magne Ingebrigtsen 1997-03-04 01:26:40 + 9646) 
 (concat gnus-current-startup-file ".eld") 
aa088210dd (Lars Magne Ingebrigtsen 1997-03-04 01:26:40 + 9647) 
 nil 'nomesg))

which is as far back the git repository I had lying around seems to
go:

commit aa088210dd9c90f00466b59c58f60f14b4544e69 (HEAD, tag: v0-5)
Author: Lars Magne Ingebrigtsen 
Date:   Tue Mar 4 01:26:40 1997 +

Initial revision


   :-),

Adam

-- 
 "Do you think the people who make these decisions  Adam Sjøgren
  about what features a project will have are the  a...@koldfront.dk
  *engineers*? Because that's adorable."




Re: Changing servers with same DNS IP Address value

2023-10-24 Thread Adam Sjøgren
Pankaj writes:

>   (nntp "gmane"
> (nntp-address "news.gmane.io"))
>
> Additionally, I've made updates to the ~/.newsrc.eld file, replacing
> "news.gwene.org" with "gmane". Everything seems to be running smoothly
> so far, and I've made sure to keep a backup, just in case.

Great! Yeah, a backup is never a bad idea :-)


  Best regards,

Adam

-- 
 "I'm sure there are people out there who has   Adam Sjøgren
  reiserfs working on their machines, and has nevera...@koldfront.dk
  seen any problems. You can find similar opinions on
  Windows 95."




Re: Changing servers with same DNS IP Address value

2023-10-23 Thread Adam Sjøgren
Pankaj writes:

>  '(gnus-secondary-select-methods
>'(
>  (nntp "news.gwene.org")  ; Gmane
>  (nnml ""); /var/spool/mail
>
> If I update the server to "news.gmane.io", will I need to modify all the
> entries in the "~/.newsrc.eld" file?

You can set the nntp-address, avoiding it defaulting to your
configuration's server name.

Eg I have:

  (nntp "gm"
(nntp-address "news.gmane.io"))
  (nntp "fb"
(nntp-address "feedbase.org"))

So you can go:

  (nntp "news.gwene.org"
(nntp-address "news.gmane.io"))

and keep your entries the same, while connecting to news.gmane.io
instead.


  Best regards,

Adam

-- 
 "Not The Same" Adam Sjøgren
   a...@koldfront.dk




Re: Correct ordering of items in mail threads

2023-10-23 Thread Adam Sjøgren
Pankaj writes:

> Adam Sjøgren  writes:

>> Pankaj writes:

>>> In the above snapshot, items are still ordered incorrectly.

>> Just to make sure: you are expecting the article in the last row to be
>> shown in the 4th row?

> No. I want the indentation to be proper. It cannot be child of a later 
> message.

This illustrates nicely that only stating that something is incorrect,
without saying what you expect, is insufficient :-)

> As we can see this is not possible.

I cannot see this without examining the headers, maybe you can :-)


  Best regards,

Adam


(I wanted to point you at Eric S Fraga's suggestion when I stumbled
over the "adopted"-thing, but I could find it at the time - luckily he
has suggested looking at gnus-sort-gathered-threads-function again -
setting that does what you want, right?!)

-- 
 "Oh, great altar of passive entertainment... bestowAdam Sjøgren
  upon me thy discordant images at such speed as toa...@koldfront.dk
  render linear thought impossible!"




Re: Correct ordering of items in mail threads

2023-10-23 Thread Adam Sjøgren
Pankaj writes:

> E   20-10-23 23:18 PM [ 107: Victor Giordano ] => Re: [go-nuts] Re: About 
> allowing conversion from bool to int
> O   21-10-23 02:44 AM [ 123: Victor Giordano ]   +-> 
> O   21-10-23 03:17 AM [ 142: Volker Dobler   ] +-> 
> O   21-10-23 06:01 AM [  21: Ian Lance Taylor] +-> 
> O   21-10-23 08:44 AM [  57: Victor Giordano ]   +-> 
> E   21-10-23 18:27 PM [  69: Victor Giordano ] +-> 
> O   21-10-23 03:44 AM { 179: Victor Giordano }   +-> Fwd: [go-nuts] 
> Re: About allowing conversion from bool to int
>
> In the above snapshot, items are still ordered incorrectly.

Just to make sure: you are expecting the article in the last row to be
shown in the 4th row?

I would expect the reason that the last line is put last is because
the References: header includes the Message-ID of the second to last
article.

Is that not the case?

But wait, the curly braces means "adopted". What does that mean?

 · https://www.gnu.org/software/emacs/manual/html_node/gnus/Loose-Threads.html

What happens if you change the value of gnus-summary-make-false-root?
Perhaps to nil?


  Best regards,

   Adam

-- 
 "Our voodoo-dolls are full of hopes"   Adam Sjøgren
   a...@koldfront.dk




Re: Correct ordering of items in mail threads

2023-10-22 Thread Adam Sjøgren
Eric writes:

> I meant the articles don't always arrive at Gnus in the order they
> were originally authored.

Got it :-)

I have configured Gnus to sort a bunch of groups by date instead of by
number, and I can't feel the difference (in speed) -- this on a 4 year
old laptop.

Maybe I'm just growing slower ;-)


  Best regards,

Adam

-- 
 "What do you do for a living, man?"    Adam Sjøgren
 "Oh, I confound expectations."a...@koldfront.dk




Re: Correct ordering of items in mail threads

2023-10-22 Thread Adam Sjøgren
Eric writes:

> sorting by number _usually_ means sorting by arrival time, but
> there's no contract there.

When do the numbers given to articles in Gnus not reflect _arrival_
time?


  Best regards,

Adam

-- 
 "Some kind of night into your darkness     Adam Sjøgren
  Colors your eyes with what's not there"  a...@koldfront.dk




Re: Correct ordering of items in mail threads

2023-10-22 Thread Adam Sjøgren
Pankaj writes:

> In fact, I wanted to use 'gnus-thread-sort-by-date for
> gnus-thread-sort-functions. But the docstring discouraged me.
>
> Also note that sorting by date is often much slower than sorting by
> number, and the sorting order is very similar.

These warnings are less and less relevant with the speed of personal
computers these days, I think.

If you give it a go, let us know if you can feel any difference!


  Best regards,

Aam

-- 
 "It's either spectacular, unbelievable success, or Adam Sjøgren
  crushing, hopeless defeat! There is no middlea...@koldfront.dk
  ground!"




Re: Does Gnus read and sync the read with IMAP?

2023-10-20 Thread Adam Sjøgren
Bob writes:

> At what point does gnus update the IMAP server? In other words, I
> read an article. In the summary buffer that article definitely is
> now shown as read.

Gnus updates the IMAP server when you exit the summary buffer (q).

To find out exactly what happens when, you can set
nnimap-record-commands in your nnimap server configuration, then the
commands will be logged in a buffer called "*imap log*".


  Best regards,

Adam

-- 
 "None of them kicks go boom    Adam Sjøgren
  None of them basslines fill the room"a...@koldfront.dk




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-05 Thread Adam Sjøgren
Eric writes:

> When you think about it, updating a global variable is all the Gnus code
> is doing! But better to rely on someone else's ugly hack, I suppose...

Haha, yes, and if you take a couple of more steps back, all computing
is manipulation of global memory ;-)

But I think not having one hook storing the information and another
one using it will be a little less ugly, so thanks for the hint - the
naming of these variables is often not obvious to me.


  Best regards,

Adam

-- 
 " - the devils neighbour"      Adam Sjøgren
   a...@koldfront.dk




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Adam Sjøgren
Eric writes:

> I think the "big" solution is to visit `message-reply-buffer', if that's
> a live buffer, and parse its contents.

That sounds better than the ugly hack I have now, where I update a
global variable from gnus-article-prepare-hook and use it in
message-setup-hook - eeek.


  Thanks!

   Adam

-- 
 'As usual, Bob Dylan said it best when he wrote in Adam Sjøgren
  1965, "He not busy being born, is busy dying."'  a...@koldfront.dk




Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Adam Sjøgren
How do I get hold of the parent articles' Keywords: in
message-setup-hook when I do a follow up?

I can get eg From: by lookin in message-reply-headers - but Keywords:
are not in there.

Is there a trick I can use?


  Best regards,

Adam

-- 
 "The laws of perspective have been repealed!   Adam Sjøgren
  Objects no longer diminish in size with distance!"   a...@koldfront.dk




Re: Showing a full thread

2023-07-02 Thread Adam Sjøgren
hus...@alshehhi.io writes:

[A T]

> Thank you very much for saving me again. This is exactly what I
> needed.

Happy to help! Sometimes finding the right function is the hardest part.


  Best regards,

Adam

-- 
 "Few things are less comforting than a tiger who's     Adam Sjøgren
  up too late."a...@koldfront.dk




Re: Showing a full thread

2023-07-02 Thread Adam Sjøgren
hus...@alshehhi.io writes:

> I would live to view the full tree of the thread: the root and all
> the messages that were span off it.

Have you tried A T?

,[ C-h f gnus-summary-refer-thread RET ]
| gnus-summary-refer-thread is an interactive native-compiled Lisp
| function in ‘gnus-sum.el’.
| 
| (gnus-summary-refer-thread  LIMIT)
| 
| Inferred type: (function ( t) t)
| 
| Fetch all articles in the current thread.
| A non-numeric prefix arg will search the entire server; without a
| prefix arg only the current group is searched.  If the variable
| ‘gnus-refer-thread-use-search’ is t the prefix arg has the
| reverse meaning.  If searching is not enabled for the current
| group, fetch LIMIT (the numerical prefix) old headers.  If LIMIT
| is non-numeric or nil fetch the number specified by the
| ‘gnus-refer-thread-limit’ variable.
| 
`


  Best regards,

Adam

-- 
 "I'll dye without my hair!"    Adam Sjøgren
   a...@koldfront.dk




Re: Marking thread as read

2023-06-29 Thread Adam Sjøgren
Alshehhi writes:

> I am new to gnus. I am trying to mark a thread as read. However, it is
> still unclear to me how to do that. There is the command
> gnus-summary-kill-thread:

I recently had the same need, and solved it by making my own function
based on gnus-summary-kill-thread:

(defun asjo-gnus-summary-mark-thread-read ()
  "Mark articles under current thread as read."
  (interactive "" gnus-summary-mode)
  (let ((articles (gnus-summary-articles-in-thread)))
(save-excursion
  ;; Expand the thread.
  (gnus-summary-show-thread)
  ;; Mark all the articles.
  (while articles
(gnus-summary-goto-subject (car articles))
(gnus-summary-mark-article-as-read gnus-read-mark)
(setq articles (cdr articles)
;; Go to next unread subject.
  (gnus-summary-next-subject 1 t)
  (gnus-set-mode-line 'summary))

(define-key gnus-summary-mode-map [(T) (r)] 
'asjo-gnus-summary-mark-thread-read)

More context: https://koldfront.dk/quickly_marking_a_thread_read_1839


  Best regards,

Adam

-- 
 "In the past we would do little things for love,   Adam Sjøgren
  but but things, big things required money. Now wea...@koldfront.dk
  can do big things for love."




Re: Face: not showing?

2023-06-18 Thread Adam Sjøgren
Eric writes:

> I would love a gnus interface to ActivityPub, mastodon in particular
> at the moment, giving me adaptive scoring and threading although I
> imagine the latter may be challenging if not impossible.

It's actually not that bad - ActivityPub objects have an "inReplyTo"
key which points to the parent, and that's sufficient for Gnus to do
the threading as expected.

So far I am just shoving the "inReplyTo" into References: which means
that Gnus only knows about the immediate parent.

To get the other replies in the same thread, more work is needed,
fetching URLs specified in the "replies" Collection of the object.

Everything can be seen through the glasses of NNTP if you squint a
little ;-)


  Best regards,

Adam

-- 
 "[...] but beyond that the Fry household had asAdam Sjøgren
  much interest or understanding of sport as a potato  a...@koldfront.dk
  has of  Riemann's zeta function."




Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
yeti writes:

> disabling the fill mode maybe can done like
>
> | (posting-style
> |  (eval ...change-the-fill-mode-here... 
> |   )
> | )
>
> Shouldn't that apply to the whole group then?

You're right, adding this to the Topic Parameters:

   (posting-style
(eval
 (auto-fill-mode -1)))

works.

Thanks for the tip!


  Best regards,

Adam

-- 
 "Mmm, what you say?        Adam Sjøgren
  Mm, that you only meant well? Well, of course youa...@koldfront.dk
  did."




Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
yeti writes:

> Adam Sjøgren  writes:
>
>> I would like to have auto-fill-mode turned off for all groups in a
>> specific topic in Gnus.
>
> Doesn't that sound like a job for gnus-posting-styles?

Sounds intriguing - do you have an example of how?


  Best regards,

   Adam

-- 
 "Our voodoo-dolls are full of hopes"   Adam Sjøgren
   a...@koldfront.dk




Re: How to turn off auto-fill-mode from Topic Parameters?

2023-06-10 Thread Adam Sjøgren
Adam writes:

> Is The Right Way™ to add a function to a hook instead?
>
> I just really like configuring behavior using the Topic/Group
> Parameters...

I have solved it like this now:

  (add-hook 'message-mode-hook (lambda ()
 (let ((group (or gnus-newsgroup-name "")))
   (when (string-match-p "illuminant:fediverse" 
group)
 (auto-fill-mode -1)

inspired by "3.7 Various Message Variables" in the manual,
https://www.gnu.org/software/emacs/manual/html_node/message/Various-Message-Variables.html

But I'd still prefer to use Topic Parameters.


  Best regards,

Adam

-- 
 "But I wake up quick   Adam Sjøgren
  And I wake up sick"  a...@koldfront.dk




Re: Face: not showing?

2023-04-04 Thread Adam Sjøgren
Alberto Luaces writes:

> Adam Sjøgren  writes:
>
>> Eric writes:
>>
>>> A data point: your face appears for me when reading your posts.  I'm on
>>> Emacs from git updated three days ago now.
>>
>> Thanks! What is the value of gnus-treat-fold-headers in your setup?
>
> I'm also seeing your face as always, gnus-treat-fold-headers is nil and
> emacs is 28.2.

Thanks! The bug was introduced in Emacs 29, I think, so that would
explain why you don't have missing images.


  Best regards,

Adam

-- 
 "Stand in front of you Adam Sjøgren
  Take the force of the blow   a...@koldfront.dk
  Protection"




Re: Face: not showing?

2023-04-04 Thread Adam Sjøgren
Eric writes:

> On Tuesday,  4 Apr 2023 at 15:43, Adam Sjøgren wrote:

>> because I am implementing an ActivityPub server with an nntp-interface
>> and wanted to see user icons) :-)

> Oh, that sounds interesting!  Are you intending on making it public?

Yes, when it's a little more functional - it's doesn't do much yet, but
it's kind of fun trying to make it work.


  Best regards,

Adam

-- 
 "nu skall vi dansa efter min pipa          Adam Sjøgren
  nu skall vi dansa efter min pipa"a...@koldfront.dk




Re: Face: not showing?

2023-04-04 Thread Adam Sjøgren
Eric writes:

> It's not as if many people use the face capability so I guess it's not
> tested very thoroughly?

Yup - I mean, it took me two years to notice they were gone (and only
because I am implementing an ActivityPub server with an nntp-interface
and wanted to see user icons) :-)

> My own emails show a face but I think that comes from gravatar (setq
> gnus-treat-from-gravatar 'head) as I have not defined the face header
> details. Out of curiosity, does my (colourful and young ;-)) face
> appear if you set that?

I only see your gravatar when I set gnus-treat-fold-headers to nil,
otherwise your young colors are missing ;-)


  Best regards,

Adam

-- 
 "Pick-up trucks are ridiculous clown cars and 99%  Adam Sjøgren
  of the people who buy them will never have a a...@koldfront.dk
  practical need to own one."




Re: Face: not showing?

2023-04-04 Thread Adam Sjøgren
Eric writes:

> A data point: your face appears for me when reading your posts.  I'm on
> Emacs from git updated three days ago now.

Thanks! What is the value of gnus-treat-fold-headers in your setup?


  Best regards,

   Adam

-- 
 "Hvad med kulturen og Information? Kan vi      Adam Sjøgren
  håbe på mere omtale af dansktoppen?" a...@koldfront.dk




Re: Face: not showing?

2023-04-03 Thread Adam Sjøgren
The bisect of "Face: header present, but image not showing" gives:

  3bc0768e9b82feaf5ce1665227055e97e72af164 is the first bad commit
  commit 3bc0768e9b82feaf5ce1665227055e97e72af164
  Author: Lars Ingebrigtsen 
  Date:   Wed Dec 1 14:10:19 2021 +0100

  Enable gnus-treat-fold-headers by default

  * lisp/gnus/gnus-art.el (gnus-treat-fold-headers): Change default
  to `head'.

   etc/NEWS  | 3 +++
   lisp/gnus/gnus-art.el | 4 ++--
   2 files changed, 5 insertions(+), 2 deletions(-)

Here is the bisect log:

  adsj@tullinup:~/emacs$ git bisect log 
  git bisect start
  # status: waiting for both good and bad commits
  # bad: [1f100def91292dae6f8a97bae2bcd1f3a4cb101e] Revert "Generalise a LAP 
optimisation rule"
  git bisect bad 1f100def91292dae6f8a97bae2bcd1f3a4cb101e
  # status: waiting for good commit(s), bad commit known
  # bad: [842ea1e22f2251e62a23c3fafdd7d1571f730d7d] Fix Gnus registry key 
bindings
  git bisect bad 842ea1e22f2251e62a23c3fafdd7d1571f730d7d
  # status: waiting for good commit(s), bad commit known
  # bad: [2a3edd1e0acf00587a5243db87bf80e8383a61d8] Document textsec
  git bisect bad 2a3edd1e0acf00587a5243db87bf80e8383a61d8
  # status: waiting for good commit(s), bad commit known
  # good: [ddabb03a0176beb4b7fc8d4f2267d459fd2ebded] * doc/misc/idlwave.texi 
(Troubleshooting): Don't say "Emacsen".
  git bisect good ddabb03a0176beb4b7fc8d4f2267d459fd2ebded
  # good: [f393d0d441c3746f98007ae54341870a296bf809] Fix regression leading to 
flickering tooltips when the mouse is moved
  git bisect good f393d0d441c3746f98007ae54341870a296bf809
  # good: [f393d0d441c3746f98007ae54341870a296bf809] Fix regression leading to 
flickering tooltips when the mouse is moved
  git bisect good f393d0d441c3746f98007ae54341870a296bf809
  # skip: [32a8b3bc22bfc0aeca9943699e7a43b68915122b] Fix regression introduced 
by the previous date-to-time change
  git bisect skip 32a8b3bc22bfc0aeca9943699e7a43b68915122b
  # bad: [c9186b1b0bfb7662a2765aac5dd1afd4309fdfec] Use gnus-message instead of 
plain message in gnus-search
  git bisect bad c9186b1b0bfb7662a2765aac5dd1afd4309fdfec
  # good: [3886c95d7ef20e40b5d3625d4650b89612f7efdd] Make emoji-describe really 
describe only the glyph under point
  git bisect good 3886c95d7ef20e40b5d3625d4650b89612f7efdd
  # good: [487ec3cf2a34496866153474507ab741d8dfea63] Add support for event 
processing via XInput 2
  git bisect good 487ec3cf2a34496866153474507ab741d8dfea63
  # good: [d329014574575b3f98ac68e22bdcb1ab4ddd5419] Make 
`pixel-scroll-precision-scroll-up' use existing logic
  git bisect good d329014574575b3f98ac68e22bdcb1ab4ddd5419
  # good: [6adf37b4a5a954ac981c2f89ea2c343658f532c2] Update SKK-JISYO.L from 
upstream
  git bisect good 6adf37b4a5a954ac981c2f89ea2c343658f532c2
  # bad: [aa6a05c146e94c0afc35b5354d68da55aecb2db7] Fix display of free disk 
space in Dired
  git bisect bad aa6a05c146e94c0afc35b5354d68da55aecb2db7
  # bad: [c35c86a353c7dd6d4130913c532aba026a5a6562] * 
lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure
  git bisect bad c35c86a353c7dd6d4130913c532aba026a5a6562
  # bad: [6348ca1a888974e7ed8d43e5d78961c81d80b140] Make pixel-fill-region 
handle space regions better
  git bisect bad 6348ca1a888974e7ed8d43e5d78961c81d80b140
  # good: [9d17e346fe15d7afff8a2e520522586c51225a4c] Preserve newlines at the 
end of pixel-fill-region
  git bisect good 9d17e346fe15d7afff8a2e520522586c51225a4c
  # bad: [2ee6621fe9ff67cd5ac4ac4e6b6f6d0c4cb6f047] Fix precision pixel 
scrolling for a recent change
  git bisect bad 2ee6621fe9ff67cd5ac4ac4e6b6f6d0c4cb6f047
  # good: [2d60566c8787b63b5e4e2958e9ec9f55fbcf9e87] Use proportional fonts in 
the Gnus headers by default
  git bisect good 2d60566c8787b63b5e4e2958e9ec9f55fbcf9e87
  # bad: [3bc0768e9b82feaf5ce1665227055e97e72af164] Enable 
gnus-treat-fold-headers by default
  git bisect bad 3bc0768e9b82feaf5ce1665227055e97e72af164
  # first bad commit: [3bc0768e9b82feaf5ce1665227055e97e72af164] Enable 
gnus-treat-fold-headers by default


  Best regards,

Adam

-- 
 "Good evening. Today is Good Friday. There is no   Adam Sjøgren
  news."   a...@koldfront.dk




Re: Face: not showing?

2023-04-03 Thread Adam Sjøgren
Ok, I've now tested it with a minimal configuration. Face: displays in
Emacs 28.02 with the minimal config, but not with 30.0.5 (master).

So it's not just me, phew.

On to bisecting.


  Best regards,

Adam

-- 
 "Man ser gubbar"   Adam Sjøgren
   a...@koldfront.dk




Re: Face: not showing?

2023-04-03 Thread Adam Sjøgren
Adam writes:

> Maybe I have misconfigured something, but when I read an article that
> has a Face: header, the picture isn't shown.

The same goes for X-Face: h.

-- 
 "I think there are enough frivolous lawsuits in    Adam Sjøgren
  this country without people fighting over popa...@koldfront.dk
  songs."




Face: not showing?

2023-04-03 Thread Adam Sjøgren
  Hi,


Maybe I have misconfigured something, but when I read an article that
has a Face: header, the picture isn't shown.

If I run M-x gnus-article-display-face _twice_ it pops up, however.

That makes me think it might be a bug - if I had just accidentally
turned off Face: display, I would have expected the image to appear
after _one_ invocation.

,[ C-h v gnus-treat-display-face RET ]
| gnus-treat-display-face is a variable defined in ‘gnus-art.el’.
| 
| Its value is ‘head’
| 
| Display Face headers.
| Valid values are nil, t, ‘head’, ‘first’, ‘last’, an integer or a
| predicate.  See Info node ‘(gnus)Customizing Articles’ and Info
| node ‘(gnus)Face’ for details.
| 
`

Anyone else see this problem?


  Best regards,

Adam

-- 
 "Obviously my body doesn't believe Adam Sjøgren
  a word my brain is saying."  a...@koldfront.dk




Re: Server listed twice in gnus-group-enter-server-mode

2023-01-26 Thread Adam Sjøgren
Richmond writes:

> Richmond  writes:
>
>> I have ended up with the same server listed twice in

  [...]

>> I must delete it from the configuration file, but there is only one in
>> .gnus, where is the other?
>
> It must be in .newsrc-dribble.

I would guess ~/.newsrc.eld - which can be quite fiddly to edit,
remember to stop Gnus and take a backup copy before changing anything!


  Best regards,

Adam

-- 
 "Jeg har læst alt hvad google kan finde."  Adam Sjøgren
   a...@koldfront.dk




Re: Removing the first nntp server from the list

2023-01-25 Thread Adam Sjøgren
Sergey writes:

> I wonder why simple 'nil is not accepted as well: it's extremely
> confusing.

nnnil is the "do nothing" backend, the name is similar to eg nnimap,
nnspool, and nnmbox.

The historical split between the primary select method and the secondary
methods is more confusing to me :-)


  Best regards,

Adam

-- 
 "Too much, too soon        Adam Sjøgren
  You're way out of tune   a...@koldfront.dk
  No class, no class"




Re: Removing the first nntp server from the list

2023-01-25 Thread Adam Sjøgren
Richmond writes:

> If I have in .gnus a structure like
>
>   (setq gnus-select-method
>
> and then subsequently
>
>   (add-to-list 'gnus-secondary-select-methods
>
> How do I remove the first server from the list? Should I just replace it
> with the second server? I think the article numbers would be messed up.

You can set gnus-select-method to '(nnnil) - then it will do nothing,
and everything else will be "secondary" select-methods. This way you
also avoid having the special case for the first method.


  Best regards,

Adam

-- 
 "We can discuss sexism in survival situations when Adam Sjøgren
  I get back." a...@koldfront.dk




Re: Keeping IMAP connection alive when using it in mail-sources

2023-01-15 Thread Adam Sjøgren
Adam writes:

> Adam writes:
>
>> Here's the modified version of mail-source-fetch-imap I cobbled
>> together [...]
>
> I have been running this for the past 4 days without a single hiccup(!)

One thing to fix is to make the process buffer name unique to the
mail-sources entry, so if you have multiple imap accounts in your
mail-sources they get a process buffer each.

I think.


  Best regards,

Adam

-- 
 "Du danser godt, men ude af takt"  Adam Sjøgren
   a...@koldfront.dk




Re: Keeping IMAP connection alive when using it in mail-sources

2023-01-14 Thread Adam Sjøgren
Adam writes:

> Here's the modified version of mail-source-fetch-imap I cobbled
> together [...]

I have been running this for the past 4 days without a single hiccup(!)

If anyone else is using IMAP as POP, it's worth trying.


  Best regards,

Adam

-- 
 "This piece is about the inadequacy of traditional     Adam Sjøgren
  imagery and symbols to convey meaning in today's a...@koldfront.dk
  world."




Re: Keeping IMAP connection alive when using it in mail-sources

2023-01-10 Thread Adam Sjøgren
nselect buf)
  (imap-mailbox-close nil buf))
(mail-source-run-script
     postscript
 `((?p . ,password) (?t . ,mail-source-crash-box)
   (?s . ,server) (?P . ,port) (?u . ,user)))
found


-- 
 "A cat has nine lives, but a bullfrog croaks every Adam Sjøgren
  day."a...@koldfront.dk




Re: Keeping IMAP connection alive when using it in mail-sources

2023-01-10 Thread Adam Sjøgren
Eric writes:

> Not with the code as it's written! There's a very definite
> (imap-close buf) at the end of the mail source fetching, then the buffer
> is deleted. I guess it wouldn't be a bad idea to add a keepalive option
> to imap.el, but someone would have to do that!

I guess changing mail-source-fetch-imap to check if the buffer already
exists and if the connected process is still there, and then not closing
imap and not killing the buffer at the end, would be the bare minimum.

Interesting.

Thanks for the pointer!


  Best regards,

Adam

-- 
 "Emacs [...] a [...] nuclear-powered Swiss Army    Adam Sjøgren
  knife favored by top-notch programmers and computer  a...@koldfront.dk
  scientists."




Keeping IMAP connection alive when using it in mail-sources

2023-01-07 Thread Adam Sjøgren
  Hi,


I was wondering if there is a way to use IMAP in mail-sources ("as
POP"), but without closing the connection after every
gnus-group-get-new-news?

All my nntp-connections are kept alive and pressing "g" in the *Group*
buffer is pretty fast, except for the tls connection and login on the
IMAP-server that happens every time.

It would be nice if Gnus would just keep the connection open.


  Best regards,

Adam

(I use IMAP "as POP" because I like having all my email locally, indexed
by notmuch, with local spam-classification by crm114 and so on and so
forth.)

-- 
 "I am not tropical. I am not a damn toucan."   Adam Sjøgren
   a...@koldfront.dk




Re: gnus-user-agent & nnmaildir:inbox is not visible

2022-12-14 Thread Adam Sjøgren
jindam.v...@disroot.org writes:

> typing "y" when i startup gnus message  "Gnus 
> auto-save file exists. Do you want to read it?"
> resolved issue.

Yes, Gnus prefers that you quit Gnus before closing Emacs - otherwise it
assumes that something went wrong and tries to help you recover on next
startup.


  Best regards,

Adam

-- 
 "> Fantastisk og fantastisk det kan jo diskuteres."Adam Sjøgren
 "Selvfølgelig er der altid folk der vil bestride  a...@koldfront.dk
  fakta."




Re: Debugger entered--Lisp error: (file-error "Adding new name" "Operation not permitted"

2022-12-13 Thread Adam Sjøgren
jindam.v...@disroot.org writes:

> Debugger entered--Lisp error: (file-error "Adding new name" "Operation
> not permitted" "/home/jin/.Maildir/INBOX/.nnmaildir/marks/expire/:"
> "/home/jin/.Maildir/INBOX/.nnmaildir/marks/expire/1...")

[...]

> how do i resolve issue?

It looks like you don't have access to write to the folder mentioned -
what are the permissions on it, and does your user have permission to
write to it?


  Best regards,

Adam

-- 
 "Bob Dylan? Han har en cool röst." Adam Sjøgren
   a...@koldfront.dk




Re: recipient does not have pgp key? can i still send an encrypted email?

2022-12-09 Thread Adam Sjøgren
vani writes:

> it seems we need recipient pgp key for sending
> encrypted email. if there is no pgp key, can i
> still encrypted email?

No, not with public-key cryptography¹, which is what is usually used.
You need the recipients public key to be able to encrypt the email to
them.

If you and the recipient share a secret (eg. a password), you could use
symmetric encryption², but you have to share the secret in some other
way first, so it's rarely a solution.


  Best regards,

Adam


¹ https://en.wikipedia.org/wiki/Public-key_cryptography
² https://en.wikipedia.org/wiki/Symmetric-key_algorithm

-- 
 "(Phew, it's hard to explain with my poor      Adam Sjøgren
  English.)"   a...@koldfront.dk




Re: delete downloaded marked emails after specific days & pop3 advice

2022-12-06 Thread Adam Sjøgren
Eric writes:

>> (d) seriously, reconsidering to use getmail
>> to fetch all emails through pop3, is it good
>> idea. pop3 supports or recognises only one
>> directory —inbox & does it mean it will include
>> spam emails in inbox?
>
> If you don't care about the state of the server, and would prefer to not
> leave messages there, then yes I think using a pop3 mail-source might be
> a better option than mbsync. You can still use nnmaildir locally, with
> split rules that send incoming mail there.
>
> I don't use this and I don't know if pop will pull messages from
> multiple folders; the docs don't mention any relevant config.

I think POP is from before mail folders on the mail server was a thing?

You can also "use IMAP as POP" - instead of how IMAP was intended to be
used - eg. if your mail server doesn't have POP, which is what I do:

  ; Get local mail, and use IMAPS as well:
  (setq mail-sources '((file)
   (imap :server "mail.koldfront.dk" :stream tls)))

This downloads the email from the server and stores it locally, marking
the email as deleted on the server. As far as I remember it just gets
the email from INBOX per default; I do splitting locally.

Yep, Gnus says:

Reading incoming mail from imap...
imap: Connecting to mail.koldfront.dk...
Waiting for response from mail.koldfront.dk...done
imap: Authenticating to ‘mail.koldfront.dk’ using ‘login’...
imap: Plaintext authentication...
imap: Login successful...
imap: Authenticating to ‘mail.koldfront.dk’ using ‘login’...done
Fetching from INBOX...
nnml: Reading incoming mail (no new mail)...done

See details here: https://gnus.org/manual/gnus_84.html#Mail-Sources


  Best regards,

    Adam

-- 
 "I pragmatically turn my whims into principles!"   Adam Sjøgren
   a...@koldfront.dk




Re: gnus-read-init-file: Error in ~/.gnus: disroot.org

2022-11-22 Thread Adam Sjøgren
vani writes:

> (setq gnus-select-method
>   '(nnimap "disroot.org"))

  [...]

> (nnimap "disroot.org"
> (nnimap-inbox "INBOX")
> (nnimap-split-methods default)
> (nnimap-expunge t)
> (nnimap-stream ssl))
> (nnimap-authinfo-file "~/.authinfo")))

This part is misplaced - I think what you are looking for is something
like this:

(setq gnus-select-method
  '(nnimap "disroot.org"
   (nnimap-inbox "INBOX")
   (nnimap-split-methods default)
   (nnimap-expunge t)
   (nnimap-stream ssl)
   (nnimap-authinfo-file "~/.authinfo")))

> (setq mail-sources
> ’((file :path "/var/spool/mail/jindam.v...@disroot.org") 
>(imap :server "disroot.org"
>  :user "jindam.v...@disroot.org" 
>  :port "993"
>  :password "password")))

You should _either_ use nnimap _or_ mail-sources, not both.

If you use nnimap, you are using IMAP "as intended", that is: email
lives and is manipulated on the mail-server.

If you, on the other hand, add "imap" to mail-sources, you will
basically be downloading emails to your local machine and removing them
from the mail-server.

If you are doing any of the above, you do not need to set up getmail.

If you set up getmail, you should ONLY set up the file-part of
mail-sources.

 · · ·

If I were you, I would start with setting up nnimap only. That way you
can still access your email using a different mail-client.

If nnimap gets annoying, then figure out another setup.

Start simple, get an idea of what you like and don't, then modify.

(I don't use nnimap, but I also have many weird old habits when it comes
to email :-))

I hope this helps a little!


  Best regards,

Adam

-- 
 "I never followed my dream, I always avoided myAdam Sjøgren
  nightmares." a...@koldfront.dk




Re: gnus-read-init-file: Error in ~/.gnus: disroot.org

2022-11-22 Thread Adam Sjøgren
vani writes:

> running M-x gnus has thrown another error:
> Debugger entered--Lisp error: (void-function nnimap)

Ok, then there's another problem in the configuration that I didn't spot
right away - feel free to share what your .gnus looks like again, and we
can try looking at it and see if we can spot the problem :-)


  Best regards,

Adam

-- 
 "Nobody: My name is Xamichee, "he who talks loud   Adam Sjøgren
  say nothing.""   a...@koldfront.dk




Re: gnus-read-init-file: Error in ~/.gnus: disroot.org

2022-11-22 Thread Adam Sjøgren
vani writes:

> (setq smtpmail-auth-supported '(plain))")

This line looks weird - there is an extra ") at the end?

> ** questions:
> (1) is it mandatory to use getmail or fetchmail?

No. See https://www.gnus.org/manual/gnus_84.html#Mail-Sources and
https://www.gnus.org/manual/gnus_83.html#Using-IMAP depending on how you
want your email organized.

> (2) how do i resolve gnus init error?

Fix the syntax.


  Best regards,

Adam

-- 
 "It's such a sadness that you think you've seen a  Adam Sjøgren
  film on your fucking telephone. Get real."   a...@koldfront.dk




Re: How to subsribe to a general mailing list?

2022-11-11 Thread Adam Sjøgren
Björn writes:

> Everything that doesn't involve things that need threading or should run
> in the background otherwise ;D

They should make some faster CPU's instead of all those multi-core
shenanigans! ;-)

> E.g. Gnus fetching articles to slow or indexing/searching of Mails.

I use notmuch to index and search email in Gnus, it works well - and
fast, as it's using Xapian.


  Best regards,

Adam

-- 
 "I need someone to throw blue sky at me"       Adam Sjøgren
   a...@koldfront.dk




Re: How to subsribe to a general mailing list?

2022-11-07 Thread Adam Sjøgren
Björn writes:

> Not necessarily every mailinglists is on Gmane, it depends on the users
> preference what he might choose.

True. However, most mailing lists can be added to Gmane.

> NTTP/Game won't work as good outside of Emacs, the user might use other
> clients besides Emacs for Emails.

That goes without saying, everything works better inside Emacs.


  ;-),

   Adam

-- 
 "Så kommer der omkvæd på. Og så skal man forklare  Adam Sjøgren
  omkvædet. Det er det værste."a...@koldfront.dk




Re: Denied posting the From looks strange

2022-09-13 Thread Adam Sjøgren
GH writes:

> "Denied posting -- the From looks strange"
>
> How can config gnus to post it?

Take a look at the variable message-syntax-checks - it might allow you
to disable the from check you don't want?


  Best regards,

Adam

-- 
 "He said, "He who is not for Me is against Me,"Adam Sjøgren
  Just so you know where He's coming from."a...@koldfront.dk




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread Adam Sjøgren
physiculus writes:

> inside the authinfo.gpg file there is a line
> #default force yes
> after comment out, it works.

Happy to hear you found a solution.


  Cheers,

Adam

-- 
 "I'm sorry I sound calm. I assure you that         Adam Sjøgren
  I am hysterical."a...@koldfront.dk




Re: Generate and insert Face header from jpg file

2022-07-31 Thread Adam Sjøgren
Satoshi writes:

> (setq message-required-headers
>   (nconc message-required-headers
>  (list '(Face . (lambda ()
>   (gnus-face-from-file "~/face.jpg"))
>
> But I couldn't generate and insert Face header at writing a mail.

What happens when you try? Do you get an error message?

You have chosen to use gnus-face-from-file and a JPEG - the
documentation says that it uses gnus-convert-image-to-face-command to
convert the image to PNG:

,[ C-h v gnus-convert-image-to-face-command RET ]
| gnus-convert-image-to-face-command is a variable defined in ‘gnus-fun.el’.
| 
| Its value is "convert -scale 48x48! %s -colors %d png:-"
| 
| Command for converting an image to a Face.
| 
| The command must take an image filename (first format argument
| "%s") and the number of colors (second format argument: "%d")
| as input.  The output must be the Face header data on stdout in
| PNG format.
| 
`

Do you have ImageMagick installed on your machine (i.e. the package that
contains the "convert" command)?

To eliminate that potential source of problems you could save the image
as a PNG and use gnus-convert-png-to-face instead.


  Best regards,

Adam

-- 
 "perhaps he does not understand that business needsAdam Sjøgren
  to be run without idiot balloons or child games."a...@koldfront.dk




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread Adam Sjøgren
physiculus writes:

> 220 2.0.0 Ready to start TLS
> 250-smtp.gmail.com at your service,
> [2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577
> 250-8BITMIME
> 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-CHUNKING
> 250 SMTPUTF8
> MAIL FROM: SIZE=308
> 530-5.7.0 Authentication Required. Learn more at
> 530 5.7.0  https://support.google.com/mail/?p=WantAuthError
> o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp QUIT
> 221 2.0.0 closing connection
> o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp

> could you see, which step brings the error?

The mail server explicitly tells you that you need to log in, and Gnus
doesn't, it forges ahead with "MAIL FROM".

> the mail adress is the same as in my authinfo.gpg file.

And the "machine" in authinfo.gpg matches the mail server's name?

And your ~/.authinfo.gpg is encrypted with GPG? What does "file
~/.authinfo.gpg" say?

> or is it possible to deeper log the connection?

There is nothing more being exchanged between Gnus and the mail server
than what you see in the trace.


  Best regards,

    Adam

-- 
 "My ethicator machine must've had a built-in moral Adam Sjøgren
  compromise spectral release phantasmatron!"  a...@koldfront.dk




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-30 Thread Adam Sjøgren
physiculus writes:

>> Do you have username and password configured in clawsmail for the
>> outgoing (smtp) mail servers?

> yes it is configured inside clawsmail.

Ok, so that's at least a difference between "working client" and
"non-working client".

> but i do not know, if gnus/smtpmail reads the data from this file.
> is it possible to log deeper if sending mail?

I would expect the smtp trace buffer to have lines about logging in
(AUTH) if it is.

Does what you have put after "machine" in authinfo match what you have
in your posting styles as the smtp servers?


  Best regards,

Adam

-- 
 "Du har ingenting at sige  Adam Sjøgren
  Og det siger du så,  a...@koldfront.dk
  så højt det nu kan blive"




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-30 Thread Adam Sjøgren
physiculus writes:

> yes sending and receiving inside clawsmail works great.

Do you have username and password configured in clawsmail for the
outgoing (smtp) mail servers?

> any ideas to investigate further?

I think most mail servers wants you to log in these days, so the curious
thing is that it has worked before.

Did you try the suggestion in the previous email?


  Best regards,

Adam

-- 
 "I have nothing to offer anybody   Adam Sjøgren
  Except my own confusion" a...@koldfront.dk




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-30 Thread Adam Sjøgren
physiculus writes:

> unfortunately i do not understand the report:

[...]

> MAIL FROM: SIZE=301
> 250 OK
> RCPT TO:
> 550 relay not permitted

So the mail server, wpxxx.webpack.hosteurope.de, is saying that you're
not allowed to send email to that address, z...@holnishaus.de, through it
- nothing new in that, that's the message that you got all along.

One thing that might change the servers opinion is if you log in.

I think that is usually done by adding a password in ~/.authinfo.gpg -
i.e. adding a line like:

machine smtp.gmail.com login asj...@gmail.com password MyGPassword

(switch out the smtp-server hostname, login, and password).

Does sending email to that address through that mail server work in
other clients?


  Best regards,

Adam

-- 
 "The problem is, you see everything in terms ofAdam Sjøgren
  black and white" "SOMETIMES THAT'S THE WAY THINGSa...@koldfront.dk
  ARE!!"




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-29 Thread Adam Sjøgren
physiculus writes:

> Am Thu, 28 Jul 2022 09:34:17 -1000
> Bob Newell  schrieb:

>> Have you tried setting smtp-debug-info to t?

> yes i have set it, but did not see any difference.

Probably because the variable is called smtpmail-debug-info:

,[ C-h v smtpmail-debug-info RET ]
| smtpmail-debug-info is a variable defined in ‘smtpmail.el’.
| 
| Its value is nil
| 
| Whether to print info in buffer *trace of SMTP session to *.
| See also ‘smtpmail-debug-verb’ which determines if the SMTP protocol should
| be verbose as well.
| 
`

So try setting that and look at the resulting trace buffer.

I'm guessing your smtp login is failing, as the mail server is telling
you that you are not allowed to send email through it (relaying).


  Best regards,

Adam

-- 
 "Because something is happening here       Adam Sjøgren
  But you don't know what it is, do you, Mistera...@koldfront.dk
  Jones?"




Re: How to clean up the mess in From: line from maillist

2022-06-11 Thread Adam Sjøgren
hput writes:

> My messages seem to carry a bunch of guff into this group from the
> maillist.

You can thank spammers for that.

Many mailing lists do From: rewriting these days when the From:-domain
has DMARC set up, because otherwise emails sent out by the mailing list
fail SPF.

This can be avoided by adding a DKIM header, which can be non-trivial¹ -
e.g. you need control of DNS of the domain in your From:-address.

> What can I so that all but the actual address of that maillist is
> gone?

The munged From:-line is what the mailing list sends out - so all you
can achieve is that it looks different on your screen.


  Best regards,

Adam

¹ https://koldfront.dk/adding_dkim_to_news_articles_1617

-- 
 "Är där noget så härligt som blommer om moronnen?  Adam Sjøgren
  Ja, alko-läsk!"  a...@koldfront.dk




Re: Something peculiar in my Topics setup

2022-06-11 Thread Adam Sjøgren
hput via writes:

>> Have you put them on a level that does this?

> No they are and have nearly alwas been on the default for mail  3 I
> think it is.

Ok, then my guess is out the window.

>> What level are those groups?
>
> How can I tell other than the color?  I think they are level 3.

Not sure, I would press S l (gnus-group-set-current-level) which shows
what the level is and lets you change it.

>> See
>> https://www.gnu.org/software/emacs/manual/html_node/gnus/Group-Levels.html
>
> Er, and what am I to learn there?

My intention was that _if_ the guess that it might be level related was
correct, that link is to the documentation of how group levels work.

> I haven't had any dealings with levels in gnus for at least 15 to 18
> years.  Or much longer, probably about the time of quassia gnus.

It was just a guess from what you were describing :-)

> Just for the record.  I solved the issue by deleting that topic and
> creating a new watch topic "nwatch".
>
> All working as expected again... Probably will never know what was
> happening there but all is well now.

Two steps forward and one step back - good that you found a way to make
the problem go away.


  Best regards,

    Adam

-- 
 "Never spend more than a year on anything."Adam Sjøgren
   a...@koldfront.dk




Re: Reply-To in gnus message

2022-06-11 Thread Adam Sjøgren
GH writes:

> (setq mail-default-reply-to "u...@example.org")

[...]

> how can I set it in message mode?

In Gnus you can use gnus-posting-styles, something like:

(setq gnus-posting-styles
  '((".*"
 (reply-to "u...@example.org")
 )))

This makes it easy to do things depending on the name of the group.

Or you could use a hook:

(add-hook 'message-setup-hook (lambda ()
(message-add-header "Reply-To: 
u...@example.org")))


  Best regards,

Adam

-- 
 "We get it, luv, you can opera."   Adam Sjøgren
   a...@koldfront.dk




Re: deuglifing articles

2022-06-10 Thread Adam Sjøgren
GH writes:

> Hi, how can I set functions on articles when I open it to read, maybe
> a hook?

How about this hook:

,[ C-h v gnus-article-mode-hook RET ]
| gnus-article-mode-hook is a variable defined in ‘gnus-art.el’.
| 
| Its value is nil
| 
| A hook for Gnus article mode.
| 
|   This variable may be risky if used as a file-local variable.
|   You can customize this variable.
| 
`

?

> many mails from gmail are using Top Posting[1] style, any function to
> deuglify it?

I think it has been discussed before, but I can't remember if anybody
came up with something good.

It would be really nice to have a way to move around quotes
automatically, but without trimming (which top posters rarely do), it
might not be of much use in practice?


  Best regards,

Adam

-- 
 "Some things last longer than you think they will  Adam Sjøgren
  Some kind of things you can never kill"  a...@koldfront.dk




Re: Something peculiar in my Topics setup

2022-06-10 Thread Adam Sjøgren
hput via writes:

>  256: nnml:inco
>  235: nnml:all-but-cron_

If I understand correctly the root problem is that those groups are not
shown by default even though they are not empty?

Have you put them on a level that does this?

What level are those groups?

See https://www.gnu.org/software/emacs/manual/html_node/gnus/Group-Levels.html


  Best regards,

Adam

-- 
 "Ge dom ett finger och värm min hand   Adam Sjøgren
  (I ett iskallt Ikea-land)"   a...@koldfront.dk




Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes:

> Looks like Dick Chiang has already opened a bug report containing the
> fix, so expect this to work Real Soon Now.

That fixed it - great, thanks!


  Best regards,

Adam

-- 
 "Referring to glorified travelling salesmen    Adam Sjøgren
  as ``road warriors'' is an insult to a...@koldfront.dk
  gun-toting nomadic mercenaries everywhere."




Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes:

> I'll remove the checks now.

The line the error is triggered in is:

(defun gnus-topic-update-topic-line (topic-name  reads)
  (let* ((top (gnus-topic-find-topology topic-name))
 (type (cadr top))
 (children (cddr top))
 (entries (gnus-topic-find-groups
   (car type) (car gnus-group-list-mode)
   (cdr gnus-group-list-mode)))
 (all-groups (gnus-topic-find-groups
   (car type) (car gnus-group-list-mode)
   (cdr gnus-group-list-mode) t)) <-- HERE
 (parent (gnus-topic-parent-topic topic-name))

gnus-topic-find-groups: Wrong type argument: number-or-marker-p, t

gnus-group-list-mode is (5) here, so the cdr is nil, and
gnus-topic-find-groups doesn't like that, apparently. I didn't have time
to step through that to pinpoint it further.


  Best regards,

Adam

-- 
 "*We* focus on doing nothing at all!"      Adam Sjøgren
   a...@koldfront.dk




Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes:

> In fact, gnus-topic.el already thinks it's doing what you want --
> updating topic lines on group exit -- but because of the bug in
> `gnus-topic-update-topic', the update never happens.

Oooh, cool, I didn't remember that it used to work ;-)

> Lars added that major-mode check as part of a larger commit last year, I
> have to assume it was a mistake. I'll remove the checks now.

Nice piece of debugging!

However, I think you broke something? When I try to q out of a group I
now get:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t)
  gnus-topic-find-groups("feedwork" 5 nil t)
  gnus-topic-update-topic-line("feedwork")
  
gnus-topic-update-topics-containing-group("nntp+fb:feedbase.blog.inspiredpython")
  gnus-group-update-group("nntp+fb:feedbase.blog.inspiredpython" nil t)
  gnus-summary-update-info()
  gnus-summary-exit()
  funcall-interactively(gnus-summary-exit)
  command-execute(gnus-summary-exit)

(when toggle-debug-on-error is on, and I have removed my hook).


  Best regards,

Adam

-- 
 "The world is short of delimiters," says Don.  Adam Sjøgren
   a...@koldfront.dk




Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Adam writes:

> Eric writes:
>
>> It looks to me like you could add a function to
>> `gnus-summary-exit-hook', which calls
>> `gnus-topic-update-topics-containing-group' on the value of
>> `gnus-newsgroup-name'. At that stage in summary exit,
>> `gnus-newsgroup-name' won't have been cleared yet, so it should still
>> hold the name of the group you're coming out of.

[...]

> I will see if I can get your suggestion going after dinner :-)

This is what I did:

(defun asjo-update-topics ()
  (gnus-topic-update-topics-containing-group gnus-newsgroup-name))

(add-hook 'gnus-summary-exit-hook 'asjo-update-topics)

But simpler than my hack - but nothing is updated.

When I edebug-defun it, I can see that gnus-newsgroup-name is indeed the
full newsgroup name, e.g. "nntp+gm:gmane.emacs.gnus.user", but the topic
counts aren't updated.


  Best regards,

Adam

-- 
 "The code is more what you'd call 'guidelines',Adam Sjøgren
  than actual rules."  a...@koldfront.dk




Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes:

>> Is there a way to get Gnus to update the counts automatically on group
>> exit as well?

> It looks to me like you could add a function to
> `gnus-summary-exit-hook', which calls
> `gnus-topic-update-topics-containing-group' on the value of
> `gnus-newsgroup-name'. At that stage in summary exit,
> `gnus-newsgroup-name' won't have been cleared yet, so it should still
> hold the name of the group you're coming out of.

Any reason for Gnus not to do that by default?

I hacked this together before reading your suggestion:

(defun asjo-update-topics ()
  (let ((pos (point)))
(beginning-of-buffer)
(gnus-topic-read-group)
(gnus-topic-read-group)
(goto-char pos)))

(add-hook 'gnus-summary-exit-hook 'asjo-update-topics)

Which just toggles the top-level topic, which has the side effect of
updating the counts.

I couldn't make save-mark-and-excursion work, so I did the point +
goto-char dance, which is a little icky.

I will see if I can get your suggestion going after dinner :-)

Thanks!


  Best regards,

Adam

-- 
 "Our voodoo-dolls are full of hopes"   Adam Sjøgren
   a...@koldfront.dk




Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
  Hi,


When I exit a group, the unread count in the topic it is under doesn't
update.

If I collapse the topic, the count gets updated. That's cool.

Is there a way to get Gnus to update the counts automatically on group
exit as well?

The speed of Emacs these days makes me think I don't mind Gnus doing the
the extra work.


  Best regards,

Adam

-- 
 "Sunday morning when the rain begins to fall   Adam Sjøgren
  I believe I have seen the end of it all" a...@koldfront.dk




Re: How to subsribe to a general mailing list?

2022-04-17 Thread Adam Sjøgren
Byung-Hee writes:

> Adam Sjøgren  writes:

>> Plus: have you looked at the sizes of harddisks these days? You can
>> store a _lot_ of emails in a couple of terabytes.

> Adam, please give me more example. Maybe i need this strategy...

I was just thinking about how small mailing list emails are compared to
how huge harddisks are these days.

My first harddisk was 40 MB, my laptop today has 1.5 TB of SSD. That's
more than 39000x larger. I definitely haven't been writing/receiving
39000x more emails. I have 396K emails in ~/Mail currently - they take
up 11 GB, that's ~a 140th of the available space.

In Feedbase I have 3.3 million articles currently, the PostgreSQL table
takes up around 5.4 GB on disk.

So I wasn't thinking of any specific strategy, storage spaces has just
grown much faster than email size.

PostgreSQL (unsurprisingly) is more efficient than a-file-per-article by
quite a bit, though :-)


  Best regards,

Adam

-- 
 "Wandering stars       Adam Sjøgren
  For whom it is reserved  a...@koldfront.dk
  The blackness of darkness, forever"




Re: How to subsribe to a general mailing list?

2022-04-17 Thread Adam Sjøgren
Durand writes:

> I was imagining that this is easily abused, e.g. some user can make up
> a plethora of mailing lists, and then blow the gmane server up by
> subscribing to a new list every 10 seconds, say.

Every subscription takes human interaction to complete, so there is a
"natural" filter in place.


  Best regards,

Adam

-- 
 "Python looks to me like the illegitimate spawn of Adam Sjøgren
  C and BASIC, but then I used to program in 6502  a...@koldfront.dk
  machine code so what do I know ..."




Re: How to subsribe to a general mailing list?

2022-04-16 Thread Adam Sjøgren
Durand writes:

> Adam> Yes, if you have an mbox file, you can browse it in Gnus
> Adam> e.g.  by using G f in the *Group* buffer:
> 
> Thanks for the information.  That is exactly what I want!

Great!

[Traditional subscription to a mailing list]

> I hesitate to do this because I don't want to store the mailing list
> in my mail inbox.

What people usually do is to "split" (filter) email for a mailing list
into a separate "group" (folder).

> If I subscribe to the list, then the only way (that I know) to remove
> the mails from my mail inbox is to delete them. But, what if I want to
> read the unsubscribed mailing list again in the future? Re-subscribing
> to the list won't send me the old mails again. So I need some way to
> read the entire mailing list.

That's the situation where Gmane is handy - as it is keeps being
subscribed to a mailing list regardless of whether you - or anybody else
- is reading it, so it has all the emails back to when the group was
created in Gmane.

[Being in control]

> I mean I do not have the ability to freely manipulate the contents on
> the server.  For example, I have to request to add some mailing lists
> to the server.  How am I in control of that?  What if I want to
> subscribe to some mailing list that I don't wish others to know that I
> want to subscribe to?

Ah yes, in those cases using a public service is out of the question.
But then you have the problems you mentioned above instead :-)

> Moreover, if I later don't want to subscribe to the mailing list,
> could I remove the list from the gmane server?

No - you can unsubscribe (and forget about the group), but somebody else
might be reading the mailing list via Gmane - if you could remove it,
you'd annoy anybody else who subscribed to the group in the meantime.

> why can users add arbitrary mailing lists to the server?

To me it feels very much like a "I would like to use this myself, so I
built it. Maybe others would like to use it as well, feel free to do
so"-project. Although I don't know what Lars' motivations were/are.

As long as it isn't abused, it's a nice service and a neat solution to a
problem shared by a bunch of people.

> I think the server only has a limited amout of spaces, so that the
> user can only add a limited amount of mailing lists to the server?

There are only a limited amount of mailing lists on the internet.

And the emails on those lists are (mainly) written by people. People can
only type so much.

Plus: have you looked at the sizes of harddisks these days? You can
store a _lot_ of emails in a couple of terabytes.

> Or does gmane know some alchemical magic to handle an unlimited amount
> of subscriptions to mailing lists?

Luckily there aren't an unlimited supply of mailing lists, and there
aren't an unlimited number of mailing lists that people are interested
in reading through Gmane.

So although resources aren't unlimited, neither is the need for
capacity.

I would guess that storage was much more a problem in the beginning of
Gmane (20 years ago!) than now :-)


This discussion has become only tangentially Gnus related, it might make
sense to switch to the gmane.discuss group on news.gmane.io? :-)


  Best regards,

Adam

-- 
 "This piece is about the inadequacy of traditional Adam Sjøgren
  imagey and symbols to convey meaning in today's  a...@koldfront.dk
  world."




Re: How to subsribe to a general mailing list?

2022-04-14 Thread Adam Sjøgren
Durand via writes:

> From what I heard, the mailing lists on the gmane server are supposed
> to be related to "GNU things"?

Where have you heard that? Gmane has all kinds of lists - as long as the
owner of the list doesn't mind, any mailing list can be added.

> Of course I am not saying that gmane should allow people to add
> arbitrary mailing lists to the server; that makes no sense.

That is literally what Gmane does.

> I am just looking for some way to control what I can view in Gnus.

How are you not in control of that?


  Best regards,

Adam

-- 
 "Our voodoo-dolls are full of hopes"   Adam Sjøgren
   a...@koldfront.dk




Re: How to subsribe to a general mailing list?

2022-04-14 Thread Adam Sjøgren
Durand writes:

> - Is it possible to set up an nntp server on my own virtual personal
>   server, and let Gnus talk to that nntp server?  I presume this is
>   possible, but I have no experiences in this field.

Certainly. That won't make mailing lists appear on your own nntp server,
though, so that's an extra task to set up/figure out.

> - Is it possible to download the mailing list directly, as an mbox
>   file or any other format that the mailing list provides, and use an
>   ephemeral group to view the mailing list?

Yes, if you have an mbox file, you can browse it in Gnus e.g. by using G f
in the *Group* buffer:

,
| G f runs the command gnus-group-make-doc-group (found in
| gnus-group-mode-map), which is an interactive native compiled Lisp
| function in ‘gnus-group.el’.
| 
| It is bound to G f.
| It can also be invoked from the menu:.
| 
| (gnus-group-make-doc-group FILE TYPE)
| 
| Create a group that uses a single file as the source.
| 
| If called with a prefix argument, ask for the file type.
`

The traditional way of reading a mailing list is subscribing to it -
then you receive a copy of every email somebody sends to the mailing
list. Emails that can be read in Gnus. Subscribing is usually as easy as
sending an email to a special address, though sometimes you have to go
through a web form. This depends on the mailing list.

Gmane is a system that subscribes to mailing lists and exposes them via
nntp. This can be very convenient, but if the mailing lists you are
interested in aren't already on Gmane, you'll have to deal with getting
them added via the web interface.


  Best regards,

Adam

-- 
 "LUFTVAFFEL!"      Adam Sjøgren
   a...@koldfront.dk




Re: Retrieve thread URL from Gnus

2022-03-23 Thread Adam Sjøgren
Roland writes:

> I am fairly new to Gnus and your caveman-like approach came very handy
> when yesterday I needed to look at an old message for which I only knew
> the article number on the gmane server (the line "article 20429" in your
> example telnet session).

It is very handy to know a couple of nntp commands in a pinch! :-)

> What is the equivalent command in Gnus?

The equivalent is:

 a) Open the news.gmane.io server: in the Group buffer press B RET (for
nntp) and enter news.gmane.io
 b) Find the group gmane.lisp.clisp.devel and enter it (press RET with
point on the line)
 c) Jump to article number: press j and enter the article number

If you want to see the entire thread, you can press A T to have the
other articles in the thread inserted into the *Summary* buffer.

If you find it convenient to read news (i.e. mailing lists) via gmane,
you can set it up as a permanent server in your Gnus configuration
(gnus-secondary-methods) and subscribe to the groups you like to read.


  Best regards,

Adam


-- 
 "Archbishop of anarchy"        Adam Sjøgren
   a...@koldfront.dk




Re: Retrieve thread URL from Gnus

2022-03-22 Thread Adam Sjøgren
André writes:

>> You can fetch it via nntp, however:
>>
>> $ telnet news.gmane.io nntp
>
> [...]
>
> I didn't know that.  Thank you!

You're welcome. With Gnus you can skip all the telnetting-like-a-caveman
stuff, of course :-)


  Best regards,

Adam

-- 
 "I don't know! There's never a wrong idea in the   Adam Sjøgren
  brainstorming phase."a...@koldfront.dk




Re: Retrieve thread URL from Gnus

2022-03-22 Thread Adam Sjøgren
ubject=subscribe>
Errors-To: clisp-devel-boun...@lists.sourceforge.net
Xref: news.gmane.org gmane.lisp.clisp.devel:20429
Archived-At: <http://permalink.gmane.org/gmane.lisp.clisp.devel/20429>


I tried to use the new thread interface in Clisp's SWANK backend, and I
have come across a few minor issues, and one serious bug:

  * The lock-related functions are consistently called MUTEX-foo, but
the macro to grab a mutex is called WITH-LOCK.

  * I don't like that (thread-name (make-thread #'(lambda ( returns
#, as you cannot use (or (thread-name ...) "SOME-DEFAULT")
this way.

  * I think the default print-object method specializing on threads
should print whether the thread is currently running, or has been
stopped.

Now to a much more serious issue:  

  * If I run the file below, clisp exits with "Aborted". I'm on
Linux-x86/32, compiled clisp from CVS four hours ago. Have threads
and weak-hashtables been tested?

  -T.

PS.

(defvar *thread-plist-table-lock*
  (mp:make-mutex :name "THREAD-PLIST-TABLE-LOCK"))

(defvar *thread-plist-table* (make-hash-table :weak :key)
  "A hashtable mapping threads to a plist.")

(defvar *thread-id-counter* 0)

(defun thread-id (thread)
  (mp:with-lock (*thread-plist-table-lock*)
(or (getf (gethash thread *thread-plist-table*) 'thread-id)
(setf (getf (gethash thread *thread-plist-table*) 'thread-id)
  (incf *thread-id-counter*)

(defvar *thread* (make-thread (lambda () (loop (sleep 1)

(thread-id *thread*)

(thread-interrupt *thread* :function t)

(setq *thread* nil)

(gc)



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
 
details at: http://p.sf.net/sfu/Challenge
___
clisp-devel mailing list
clisp-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-devel

.
quit
205 Bye!
Connection closed by foreign host.
$ 


If you need a web-URL your best bet is the mailing list archives on
lists.sourceforge.net.


  Best regards,

Adam

-- 
 "I don't know! There's never a wrong idea in the   Adam Sjøgren
  brainstorming phase."a...@koldfront.dk




Setting message-shoot-gnksa-feet in a topic/group parameter

2022-02-15 Thread Adam Sjøgren
I have added this as the topic parameters for a topic of mine:

((message-shoot-gnksa-feet
  '(cancel-messages canlock-verify)))

but when message-is-yours-p runs in a summary buffer in a group under
that topic, message-shoot-gnksa-feet is nil - and I am told off:
"message-cancel-news: This article is not yours".

Did I get the syntax wrong, isn't this supposed to work, or what?


  Best regards,

Adam

-- 
 "You're terrible."     Adam Sjøgren
 "Nah. Don't want to be categorized."  a...@koldfront.dk




Re: mail splitting with mime-encoded headers

2022-01-17 Thread Adam Sjøgren
Roland writes:

> What is the recommended way for dealing with mime-encoded headers when
> splitting mail?

I use this:

; Decode headers before splitting on them:
(setq nnmail-mail-splitting-decodes t)


,[ C-h v nnmail-mail-splitting-decodes RET ]
| nnmail-mail-splitting-decodes is a variable defined in ‘nnmail.el’.
| 
| Its value is t
| Original value was nil
| 
| Whether the nnmail splitting functionality should MIME decode headers.
| 
`


  Best regards,

Adam

-- 
 "En monoton vers behöver en stark refräng"     Adam Sjøgren
   a...@koldfront.dk




Re: Where in gnus manual is info about timers

2022-01-15 Thread Adam Sjøgren
hput via writes:

> I remember using timers in gnus long ago but cannot find anything in
> the gnus manual about it now.

Maybe if you describe what you mean by "timers", somebody can help?

Are you thinking of daemons, that can be used to do stuff when Emacs is
inactive?

 · https://www.gnus.org/manual/gnus_119.html#Daemons

Or are you thinking of delayed sending?

 · https://www.gnus.org/manual/gnus_36.html#Delayed-Articles

Or something else?


  Best regards,

Adam

-- 
 "Först kom ingenting       Adam Sjøgren
  Sen kom ingenting"   a...@koldfront.dk




Re: about nndraft behavior

2021-12-29 Thread Adam Sjøgren
hput via writes:

> Am I miss-remembering that `C-c C-c' should return the finished msg to
> nndraft?

I think you are. C-x C-s however saves the message to the drafts group
without sending it.


  Best regards,

Adam

-- 
 "Henri, why did you leave France?"     Adam Sjøgren
 "Zhey didøn't like me zhere." a...@koldfront.dk




Re: [question] how show messages with bold or colored or different font sizes

2021-09-21 Thread Adam Sjøgren
Sharon writes:

> at last I can see html-like emails using 'shr'. Before I used 'w3m',
> and I could right-click a link and then copy the url to the clipboard
> for pasting into a browser. Unfortunately I've now lost that ability
> through using 'shr'.

> Do you know how I can regain the right-click of the mouse ability
> please?

No.

However, if I left-click on a link in an article, it opens in my default
browser.

If I press u with point on the link in the article, the URL is copied to
the clipboard.

If I press w in the *Summary* buffer, Gnus will open the link in the
article in my default browser - prompting if there is more than one
link.

Are any of those options useful for you?


  Best regards,

Adam

-- 
 "Who's got time for this nonsense! I'm a busy guy! Adam Sjøgren
  I've got things to do! The *last* thing *I* need is  a...@koldfront.dk
  to stand around with my nose in some silly plant!"




Re: [question] how show messages with bold or colored or different font sizes

2021-09-21 Thread Adam Sjøgren
physiculus writes:

> i set shr-use-fonts and shr-use-colors to t.

Ok, those are the defaults, so you had configured them previously, I
guess?

> but now the colors in html mails from other poeple are mostly terrible.
> too light or too dark, no real good mix.

Another good reason to discourage the use of HTML in email :-)


  Best regards,

Adam

-- 
 "I am not able rightly to apprehend the kind of        Adam Sjøgren
  confusion of ideas that could provoke such a a...@koldfront.dk
  question."




Re: [question] how show messages with bold or colored or different font sizes

2021-09-20 Thread Adam Sjøgren
physiculus writes:

> I'm on a step forward!

What did you change?

> colors are correct.
> bold, italics are correct.
> font sizes not.

That's also what you saw on my screenshot.


physiculus writes:

> Is it possible, that this is a bug in shr?

Yes, or perhaps a feature.


  Best regards,

Adam

-- 
 "En monoton vers behöver en stark refräng" Adam Sjøgren
   a...@koldfront.dk




Re: [question] how show messages with bold or colored or different font sizes

2021-09-20 Thread Adam Sjøgren
physiculus writes:

> i changed my settings and now gnus display bold and italics and bold.
> but no color and no font sizes.
>
> do you know why?

No. I'm guessing it is something in your configuration. Have you changed
it to display the HTML part or the text part?


  Best regards,

Adam

-- 
 "They are very important clients, they can't wait."Adam Sjøgren
 "They're about to."   a...@koldfront.dk




Re: [question] how show messages with bold or colored or different font sizes

2021-09-19 Thread Adam Sjøgren
physiculus writes:

> here is a message:

This is what that email looks like in my Gnus:

 · https://koldfront.dk/misc/gnus/email-screenshot.png

(when I remove "text/html" from mm-discouraged-alternatives, and leave
"text/html" in mm-automatic-display).

It looks like the only thing shr ignores is the font size part.

>> Do you have any configuration set up to prefer text/ignore HTML?
>>
>> E.g. I have:
>>
>>   ;; Don't display html inline
>>   (setq
>>mm-discouraged-alternatives '("text/html" "text/richtext" "text/enriched")
>>mm-automatic-display (remove "text/html" mm-automatic-display))

> Here is my setting:
> Its value is ("text/html" "text/richtext" "image/.*")

Well, there's your problem. You've told Gnus to prefer not displaying
text/html.


  Best regards,

Adam

-- 
 "And when your friends begin to lose their way...  Adam Sjøgren
  Don't look back just helpyourselfish"a...@koldfront.dk




Re: [question] how show messages with bold or colored or different font sizes

2021-09-19 Thread Adam Sjøgren
physiculus writes:

> my wife sends messages with thunderbird, but inside gnus these things are
> gone.
> Is it possible with gnus to show the messages with these attributes?

Are you talking about emails in HTML format, and/or in both text and
HTML?

The default is to render them with shr, which does a pretty good job of
showing such formatting.

Do you have an example you can share?

Do you have any configuration set up to prefer text/ignore HTML?

E.g. I have:

  ;; Don't display html inline
  (setq
   mm-discouraged-alternatives '("text/html" "text/richtext" "text/enriched")
   mm-automatic-display (remove "text/html" mm-automatic-display))

which is the opposite of what you want. At work I have configured Gnus
the other way around, i.e. to display text/html.

What is the value of mm-text-html-renderer in your setup?

,[ C-h v mm-text-html-renderer RET ]
| mm-text-html-renderer is a variable defined in ‘mm-decode.el’.
| 
| Its value is ‘shr’
| 
|   You can customize this variable.
|   This variable was introduced, or its default value was changed, in
|   version 27.1 of Emacs.
|   Probably introduced at or before Emacs version 27.1.
| 
| Render of HTML contents.
| It is one of defined renderer types, or a rendering function.
| The defined renderer types are:
| ‘shr’: use the built-in Gnus HTML renderer;
| ‘gnus-w3m’: use Gnus renderer based on w3m;
| ‘w3m’: use emacs-w3m;
| ‘w3m-standalone’: use plain w3m;
| ‘links’: use links;
| ‘lynx’: use lynx;
| ‘html2text’: use html2text.
`

In my experience the default, shr, is preferable for HTML email.


  Best regards,

Adam

-- 
 "Unfortunately, much of the Web is like an anthill Adam Sjøgren
  built by ants on LSD"a...@koldfront.dk




Subject of PGP-encrypted emails

2021-08-03 Thread Adam Sjøgren
I just installed Thunderbird on my nephew's new school-computer (I'm not
starting him on Emacs just yet) and tried out the built-in PGP-support.

I noticed that instead of including an unencrypted Subject:-header, it
is replaced by "Subject: ..." and then 'filled in' when the message is
decrypted.

I wonder if anyone has looked into adapting Gnus to do something similar?

Or maybe just do the same extraction and 'filling in' of the Subject:
when reading an encrypted email sent from Thunderbird.

It looks like what Thunderbird does it that it generates an
encrypted.asc which decrypts to a MIME message, which has a part that
includes the Subject:-header:

  Content-Type: multipart/mixed; boundary="80MRq3onMnRYcWyMqpzN3xR7VKumL3WsW";
   protected-headers="v1"
  Subject: Dette er emnelinien
  From: Test Testersen 
  To: =?UTF-8?Q?Adam_Sj=c3=b8gren?= 
  Message-ID: 

So the display-part is perhaps easier than the sending part.


I also noticed that Thunderbird included an Autocrypt:-header, which
seems to include the public key of the sender - I haven't looked into
it, but it might be worth adding support for that in Gnus as well? Or
maybe it's a waste of bandwidth...


  Best regards,

Adam

-- 
 "Our voodoo-dolls are full of hopes"   Adam Sjøgren
   a...@koldfront.dk




Re: fcc with nnml mail spool

2021-07-25 Thread Adam Sjøgren via info-gnus-english
Adam Sjøgren writes:

> (I guess you could just set your archive method to be your regular
> nnml-method - I'm not sure why I split them back in ancient times.)

I know why now - I followed the example in the manual almost to the
letter, only changing nnfolder to nnml:

 · https://www.gnus.org/manual/gnus_75.html#Archived-Messages


  :-),

   Adam

-- 
 "It's kind of important to have peace on earth."   Adam Sjøgren
   a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: fcc with nnml mail spool

2021-07-25 Thread Adam Sjøgren via info-gnus-english
Roland writes:

> How can one achieve the same thing with the nnml mail spool?

I use the archiving functionality in Gnus for this. It adds a
(Gnus-specific) header to news articles like this:

  Gcc: nnml+archive:news-2021

For email I have configured it to add this:

  Gcc: nnml+archive:news-2021

I have set gnus-message-archive-method in .gnus to this:

  '(nnml "archive"
 (nnml-directory "~/Mail/archive")
 (nnml-active-file "~/Mail/archive/active")
 (nnml-get-new-mail nil)
 (gnus-search-engine gnus-search-notmuch)
 (nnml-inhibit-expiry t))

and then I have:

  (setq gnus-message-archive-group
'((if (message-news-p)
  (concat "news-" (format-time-string "%Y"))
(concat "mail-" (format-time-string "%Y")

which does the {news,mail}-{year} part. 

I also set gnus-gcc-mark-as-read to t, because I want the archived
messages to be marked as read automatically.

(I guess you could just set your archive method to be your regular
nnml-method - I'm not sure why I split them back in ancient times.)

I hope this helps!


  Best regards,

    Adam

-- 
 'It's pulled, and it's fine, but there's clearly a Adam Sjøgren
  balance between "octopus merges are fine" anda...@koldfront.dk
  "Christ, that's not an octopus, that's a Cthulhu
  merge".'


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Does Washing work for IMAP backend?

2021-07-22 Thread Adam Sjøgren via info-gnus-english
Pankaj writes:

> (custom-set-variables
>  '(nnmail-list-identifiers
>'("[ABC Forum]")))

The value is interpreted as regexes, so you might want some \\'s before
the brackets.

But if nothing at all happens, I guess that's not it.

Just setting e.g.:

  (setq gnus-list-identifiers
'("\\[External\\]"))

works for me (both for email and news) - not touching any hooks. Hm,
wait, that's another variable!


  Best regards,

Adam

-- 
 "Finns det någon väg som leder oss hem Adam Sjøgren
  Finns det ens ett hem där vägen tar slut"a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: ‘Reply’ vs ‘followup’

2020-07-10 Thread Adam Sjøgren via info-gnus-english
Dmitry writes:

> As for ‘f’ and ‘F’, they do _not_ stay for ‘forwarding’, but for
> ‘following-up’. Contrary to what @a...@koldfront.dk have said [0],
> they are _not_ for posting to [news]group only,

This is what I wrote:

  For newsgroups (e.g. Gmane) R sends to the author only, and F sends to
  the group. (S W sends to both.)

  For email, you can think of R in Gnus as "Reply", and F as "Reply All".

I don't understand how you get from that to '"F" is for newsgroups
only' - that is clearly not what I wrote.


  Best regards,

Adam

-- 
 "Well, you walk into the room like a camel and thenAdam Sjøgren
  you frown  You put your eyes in your pocket an your  a...@koldfront.dk
  nose on the ground"


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Test email

2020-07-10 Thread Adam Sjøgren via info-gnus-english
Rafi writes:

> 1. I am using Gmail as the backend and received Dmitry Alexandrov's
> reply in my inbox, but for some reason your reply wasn't there. I am
> replying to you from the gmane group in gnus.

It's a common "problem" with mailing lists: Some people reply both to
the mailing list and directly to the person, some people only reply to
the mailing list.

The first strategy is useful if the person writing on the mailing list
isn't subscribed to it. (I find that an odd thing to do, and with Gmane,
where following a mailing list is very low friction, even more so).

There are some headers you can set to indicate your preference, but not
many email clients understand them.

> 2. What is the difference between replying and forwarding in mailing
> lists?

I think you are thinking of R.eply and F.ollow up?

For newsgroups (e.g. Gmane) R sends to the author only, and F sends to
the group. (S W sends to both.)

For email, you can think of R in Gnus as "Reply", and F as "Reply All".

It's more complicated than that (of course, this is Emacs), but it's a
reasonable first approximation.

F and R quote the previous email, f and r don't.

I usually want to follow up in the newsgroup, rather than replying only
to the author, so to be reminded if I hit the wrong button, I've (asked
around, and somebody provided this small snippet to) add to my ~/.gnus:

  ; Warn if replying from a newsgroup:
  (defadvice gnus-summary-reply (around asjo-reply-in-news activate)
(interactive)
(when (or (not (gnus-news-group-p gnus-newsgroup-name))
  (y-or-n-p "Really reply? "))
  ad-do-it))

which makes Gnus ask me if I really want to email the author instead of
following up in the newsgroup, if I happen to.


  Best reards,

Adam

-- 
 "Ride the tail of rhymeAdam Sjøgren
  Break the legs of time   a...@koldfront.dk
  Snap its spine"


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Adam Sjøgren writes:

>   (setq gnus-select-method '(nnimap "gmail"
>   (nnimap-address "imap.gmail.com")))
>
> And in your .authinfo.gpg:
>
>   machine imap.gmail.com login "...@gmail.com" password  
> port imap
^^
This should just say "gmail", to match the name of the
select method, I think, by the way.


  Best regards,

Adam

-- 
 "I will highly appreciate someone thinking out a   Adam Sjøgren
  counterargument, that is, a good idea."  a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

>> Just to be certain, you removed the (nnimap-stream ssl) when you tried
>> imap, right?

> No I didn't. What do you mean by trying imap instead? I thought I was
> using imap. I thought you meant use "imap" instead of a port number.

I mean use imap, as in "IMAP (with STARTTLS)", instead of imaps, as in
"IMAP over SSL".

I don't know if it makes a difference, I just know what I could connect
using imap (but without two factor and with less secure turned on).

So what I suggest that you try this in your .gnus:

  (setq gnus-select-method '(nnimap "gmail"
  (nnimap-address "imap.gmail.com")))

And in your .authinfo.gpg:

  machine imap.gmail.com login "...@gmail.com" password  
port imap

It's a longshot, admitted.


  Best regards,

    Adam

-- 
 "I wonder if you can refuse to inherit the world." Adam Sjøgren
 "I think if you're born, it's too late."  a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> I tried both imap and imaps (instead of 993) but it made no difference.

Just to be certain, you removed the (nnimap-stream ssl) when you tried
imap, right?

In that case, I'm out of ideas.


  Best regards,

Adam

-- 
 "There's such a glut of celebrities that they'll       Adam Sjøgren
  soon have to begin storing the surplus in silos in   a...@koldfront.dk
  Iowa."


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> Here is what I have in .gnus
>
> (setq gnus-select-method '(nnimap "gmail"
>  8  (nnimap-address "imap.gmail.com")
>  9  (nnimap-server-port 993)
> 10  (nnimap-stream ssl)
> 11  (nnimap-logout-timeout 60.0)))
>
> And in .authinfo
>
> machine imap.gmail.com login "...@gmail.com" password  
> port 993

Maybe try with imap instead (Gnus automatically does STARTTLS)?


  Best regards,

Adam

-- 
 "Language design is being taken over by hackers.   Adam Sjøgren
  The results so far are messy, but encouraging."  a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> "This setting is not available for accounts with 2-Step Verification
> enabled. Such accounts require an application-specific password for less
> secure apps access. Learn more"

Ah, I don't have 2-step verification enabled in Gmail. I guess you need
to get an application-specific password then?

> So I don't understand. I am able to use seamonkey and claws-mail with an
> app password, and it used to work with gnus. I am using ssl on port 993.

Maybe Gmail has changed?

Does it work if you try with the app-specific password and specifying
"port imap" in .authinfo.gpg (that's what used)?


  Best regards,

Adam

-- 
 "Language design is being taken over by hackers.   Adam Sjøgren
  The results so far are messy, but encouraging."  a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gmail

2020-04-05 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> Has gnus stopped working with gmail? I think I read maybe about some
> changes to gmail.

It seemsyou have to turn on "Less secure app access" in Gmail for IMAP
authentication using password to work these days:


I guess they want people to use OAuth2, or something along those lines...


  Best regards,

Adam

-- 
 "Did I ask too much, more than a lot?      Adam Sjøgren
  You gave me nothing, now that's all I got"   a...@koldfront.dk
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Gnus notification of replies to my articles

2020-03-10 Thread Adam Sjøgren via info-gnus-english
Eric writes:

> You could try adding an entry along the lines of
>
> ("references"
>   ("" 100 nil r))
>
> to your .SCORE file where the regex is something that matches your
> emails, i.e. the typical message-id of your emails (which, for instance,
> is <7ywo7skzgd@gmx.com> for the article I'm responding to).  What I
> don't know is whether there is a regex that would work generally to
> identify your articles.  Message IDs are a mystery to me.

Yes, that works.

I have this in my all.SCORE:

   ("references"
("<87[0-9a-z]+\\.fsf\\(_-_\\)?@.*koldfront.dk>" nil nil r))

I think the way Gnus generates Message-IDs, the first two chars are
stable per machine (or perhaps user), or something like that.


  Best regards,

Adam

-- 
 "Simsala-hyp!" Adam Sjøgren
   a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Idle Time to Poll Serve

2020-02-20 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> So much time and effort replaced with one line!

Gnus in a nutshell: so much time and effort saved, when you find the
right line.


  :-),

   Adam

-- 
 "I love loopholes."        Adam Sjøgren
   a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Idle Time to Poll Serve

2020-02-20 Thread Adam Sjøgren via info-gnus-english
As your approach is giving you problems, maybe it would make sense to
look into Gnus' demons?

 · http://gnus.org/manual/gnus_119.html#Daemons

I use this:

  ; Demon to fetch email every 5 minutes when Emacs has been idle for 5 minutes:
  (gnus-demon-add-handler 'gnus-demon-scan-news 5 5)
  ; Demon to send queued email every other minute:
  (gnus-demon-add-handler 'gnus-delay-send-queue 1 nil)
  (gnus-demon-init)

To my surprise, the manual doesn't mention gnus-demon-scan-news, which I
would think was the most obvious one to write about...

Hm, maybe it is obsolete? I guess this is the current way:

,[ C-h f gnus-demon-add-rescan RET ]
| gnus-demon-add-rescan is an autoloaded compiled Lisp function in
| ‘gnus-demon.el’.
| 
| (gnus-demon-add-rescan)
| 
| Add daemonic scanning of new articles from all backends.
`

?


  Best regards,

Adam

-- 
 "Lidt som at skylle en pose lakridskonfekt ned med Adam Sjøgren
  en flaske Kahlua, men det kan jo også have sin   a...@koldfront.dk
  egen diskrete charme"


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Colours gone

2020-02-18 Thread Adam Sjøgren via info-gnus-english
Richmond writes:

> OK what-face says the face in question is gnus-summary-high-read-face

That face was marked as obsolete in 2009:

  commit 3d493bef43be9d2cc91152043103156d5717d33f
  Author: Glenn Morris 
  Date:   Wed Sep 2 03:04:15 2009 +

  Mark face aliases with "-face" in the name as obsolete.

   · http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3d493bef43

I guess after 11 years it finally got removed. Yup:

  commit 66d83ce01125e8029efa454ece4e39e9567805e2
  Author: Glenn Morris 
  Date:   Wed Jan 10 15:39:06 2018 -0500

  Remove Gnus face aliases obsolete since 22.1

  * lisp/gnus/gnus-art.el, lisp/gnus/gnus-cite.el:
  * lisp/gnus/gnus-srvr.el, lisp/gnus/gnus.el:
  * lisp/gnus/spam.el: Remove face "-face" aliases, obsolete since 22.1.

   · http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=66d83ce011

Ok, only 8½ years later.

So you'll probably have to remove "-face" in some places in your
configuration.


  Best regards,

Adam

-- 
 "You gotta realize, you can kill somebody with Adam Sjøgren
  kindness too."   a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


  1   2   3   4   5   6   7   >