help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieve all the emails belong to a thread initiated by myself from


From: Emanuel Berg
Subject: Re: Retrieve all the emails belong to a thread initiated by myself from the archive server.
Date: Tue, 12 Oct 2021 09:34:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Hongyi Zhao wrote:

>> I found one defun I hade, useful but it is just a wrapper.
>>
>> Maybe the group should be a ordinary argument - or an optional
>> argument where "nnml:mail.misc" is the default ...
>>
>> Yeah, looks good in its simple way :)
>>
>> (defun gnus-summary-respool-all (&optional beg end)
>>   (interactive (when (use-region-p)
>>                  (list (region-beginning) (region-end)) ))
>>   (let*((b (or beg (point-min)))
>>         (e (or end (point-max)))
>>         (lines (count-lines b e)) )
>>     (goto-char b)
>>     (gnus-summary-respool-article
>>        lines
>>        (gnus-find-method-for-group "nnml:mail.misc") )))
>
> Thank you for sharing your valuable experience, I'll try it
> to see whether I can do the job with Gnus.

But won't do anything without the regexps ...

(setq nnmail-split-methods
      '(
        ("mail.ml-ooa"    
"\\(To\\|Cc\\):.*\\(help-gnu-emacs@gnu.org\\|ding@gnus.org\\|emacs-w3m@namazu.org\\|emacs-devel@gnu.org\\|gmane-discuss@quimby.gnus.org\\|tex-live@tug.org\\|gnuplot-info@lists.sourceforge.net\\|emacs-orgmode@gnu.org\\|emacs-erc@gnu.org\\)")
        [...]
        ("mail.misc"      "")
      ))

(note default last)

`B q' or `gnus-summary-respool-query' is the testing function
I spoke of, after you set up the regexps ...

For example of your message it says

  This message would go to mail.ml-ooa

That is because I assume I'd see it here (i.e.
gmane.emacs.help) anyway so if I get it as a mail it'll
respool to the mail ML out-of-action group where it doesn't
bother me ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]