Gnus development mailing list
 help / color / mirror / Atom feed
* Just Deleted all my mails - How?
@ 2001-04-03 13:51 Ian Swainson
  2001-04-03 15:52 ` Kai Großjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Swainson @ 2001-04-03 13:51 UTC (permalink / raw)


Hi All,

Bit peeved, but I'm sure this is down to my complete misunderstanding of Gnus - 
scary thing is that it let me be so destructive:

I have an nnml group called 'Misc' which contains all my mail which doesn't fit 
into my other categories, defined thusly:

(setq gnus-select-method '(nnml "Inbox"))

(setq nnmail-split-methods
      '(
;:Emacs Groups
        
<loads of other groups>

	("Misc" "")
)
      )

The group became rather full, as it does every month, so I decided to archive 
it. What I normally do is tar and gzip up all the mails in the misc folder, and 
move them to another disk, all manually outside of Gnus. Problem is, Gnus 
totals don't get updated - it still thinks there is 1600 or whatever mails in 
the group. (I've posted about this before, as have others).

This time I thought I'd try to do it in Gnus. And I obviously understand Gnus 
even less than I thought, as I managed to delete all the mails rather than 
archive them. I'm a bit gutted about this. This is what I did:

I created (in my .gnus) a secondary select method thusly:

(setq gnus-secondary-select-methods '(
					(nnfolder "Archive")))

Thinking that like my 'sent' nnfolder group, it would create me a file group, 
with multiple mails per file.

I then went into my Misc group, and using the menu, process-marked all the 
mails. I then used B m to move them (or so I thought) to my new group. Pressing 
Tab at the prompt, I got a list of my current groups plus a load of new groups 
called nnfolder+Archive:xxxx, for every nnml group, 'xxxx' being the name of 
the existing nnml group. I selected nnfolder+Archive:Misc and after a lot of 
disk activity, the mails seemed to be duly moved. I then subscribed to the 
nnfolder+Archive:Misc group, and selected it. The processor went to 100% (and 
stayed like that for ages), so I C-g 'd it. I then exited Gnus, and restarted, 
then re-selected the nnfolder+Archive:Misc and alas, it is empty. My misc group 
is also empty, and the mails seem to have disappeared from the disk.

What should I have done to archive these mails properly, and why did all the 
mails get deleted instead of moved?

Cheers,
Ian

--
fortune is silent.

~~~~~~~~~~~~~~~~~~~Made in Ireland~~~~~~~~~~~~~~~~~~~~~
Ian Swainson           Kia Ora!         ian@qui-oui.com
~~~~~~~~~~~~~~~~http://www.qui-oui.com~~~~~~~~~~~~~~~~~


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

* Re: Just Deleted all my mails - How?
  2001-04-03 13:51 Just Deleted all my mails - How? Ian Swainson
@ 2001-04-03 15:52 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2001-04-03 15:52 UTC (permalink / raw)
  Cc: ding

On Tue, 03 Apr 2001, Ian Swainson wrote:

> I created (in my .gnus) a secondary select method thusly:
> 
> (setq gnus-secondary-select-methods '(
> 					(nnfolder "Archive")))

Then your nnml select method was using _directories_ ~/Mail/foo,
whereas this nnfolder select method was using _files_ ~/Mail/foo.
Since ~/Mail/foo cannot both be a file and a directory, instant
lossage resulted.

You should add server parameters to move this select method to some
other directory:

(setq gnus-secondary-select-methods
      '((nnfolder "Archive"
         (nnfolder-directory "~/mail-archive/")
         (nnfolder-active-file "~/mail-archive/active"))))

Not sure whether you need to add more parameters -- have a look in the
Gnus info file.

You know that it works if you _don't_ get an nnfolder group for every
nnml group you have.  You have to create the nnfolder groups manually
with `G m' (or they will be created automatically when you `B m' a
message to them).

kai
-- 
Be indiscrete.  Do it continuously.


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

end of thread, other threads:[~2001-04-03 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-03 13:51 Just Deleted all my mails - How? Ian Swainson
2001-04-03 15:52 ` Kai Großjohann

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