Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* archive NG msgs
@ 2007-06-17  8:57 Dick Hoogendijk
  2007-06-17  9:51 ` Leo
  0 siblings, 1 reply; 2+ messages in thread
From: Dick Hoogendijk @ 2007-06-17  8:57 UTC (permalink / raw)
  To: info-gnus-english

I read lots of news and sometimes I want to save msgs for future
reference. I can mark them with 'u' but what I really want is copy
them to aan archive. "M c" copies alright but never remembers the name
of the archive(s). Is there some kind of shortway to 'archive' NG msgs
always to the same place? Be it nnimap, nnfolder or whatever..

Sure I can (mail) copy them with "C-c C-f" but I'd like it even more
automated and easy. Any tips?

-- 
Dick Hoogendijk -- PGP/GnuPG key: F86289CE
++ http://nagual.nl/ + Solaris 11 05/07 ++

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: archive NG msgs
  2007-06-17  8:57 archive NG msgs Dick Hoogendijk
@ 2007-06-17  9:51 ` Leo
  0 siblings, 0 replies; 2+ messages in thread
From: Leo @ 2007-06-17  9:51 UTC (permalink / raw)
  To: info-gnus-english

----- Dick Hoogendijk (2007-06-17) wrote:-----

> I read lots of news and sometimes I want to save msgs for future
> reference. I can mark them with 'u' but what I really want is copy
> them to aan archive. "M c" copies alright but never remembers the name
> of the archive(s). Is there some kind of shortway to 'archive' NG msgs
> always to the same place? Be it nnimap, nnfolder or whatever..
>
> Sure I can (mail) copy them with "C-c C-f" but I'd like it even more
> automated and easy. Any tips?

I use the following in my .gnus which I seem to copy from somewhere:

(defun my-gnus-summary-archive-article ()
  "Copy current article to a suitable nnml archive group.
 The copied article will be marked as \"ancient\", the original
 will retain its current marks."
  (interactive)
  (let* ((group-name
          (if (string-match "nnimap" gnus-newsgroup-name)
              gnus-newsgroup-name
            (car (last (split-string gnus-newsgroup-name ":")))))
         (archive-name (concat "nnml:archive." group-name))
         (orig-mark (gnus-summary-article-mark)))
    (gnus-summary-mark-article nil gnus-ancient-mark t)
    (gnus-summary-copy-article 1 archive-name)
    (gnus-summary-mark-article nil orig-mark t)))

Best,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-17  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-17  8:57 archive NG msgs Dick Hoogendijk
2007-06-17  9:51 ` Leo

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).