* nnimap uidvalidity/novcache updates
@ 2000-10-09 10:05 Andi Hechtbauer
2000-10-09 12:00 ` Simon Josefsson
0 siblings, 1 reply; 4+ messages in thread
From: Andi Hechtbauer @ 2000-10-09 10:05 UTC (permalink / raw)
Cc: simon
Hi,
in latest CVS Simon Josefsson has updated the way uidvalidity is
stored.
,----[ ChangeLog ]
| 2000-10-08 Simon Josefsson <simon@josefsson.org>
|
| * nnimap.el (nnimap-verify-uidvalidity): Delete overview file
| when uid validity changes.
| (nnimap-group-overview-filename): Store uidvalidity in filenames.
| Rename old files into new format.
`----
It seems the "rename" part doesn't work - at least for me it
didn't create its directories, so the rename failed with
"Renaming: no such file or directory, ".
If I create the novcache directory by hand (.../ding/952519011/, eg)
everything works fine.
regards,
--
Andi Hechtbauer anti@spin.de
root voice: +49 941 942 77 23
SPiN http://www.spin.de/ fax: +49 941 942 77 22
------ PGPf16: B4 FC 30 E0 31 2F BC F5 38 D0 A2 FC EA A9 82 5D ------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnimap uidvalidity/novcache updates
2000-10-09 10:05 nnimap uidvalidity/novcache updates Andi Hechtbauer
@ 2000-10-09 12:00 ` Simon Josefsson
2000-10-09 15:05 ` Andi Hechtbauer
0 siblings, 1 reply; 4+ messages in thread
From: Simon Josefsson @ 2000-10-09 12:00 UTC (permalink / raw)
Cc: ding
Andi Hechtbauer <anti@spin.de> writes:
> It seems the "rename" part doesn't work - at least for me it
> didn't create its directories, so the rename failed with
> "Renaming: no such file or directory, ".
Sorry, it didn't handle non-nil {gnus,nnmail}-use-long-file-name's
correctly. Fixed in CVS.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnimap uidvalidity/novcache updates
2000-10-09 12:00 ` Simon Josefsson
@ 2000-10-09 15:05 ` Andi Hechtbauer
2000-10-09 15:06 ` Simon Josefsson
0 siblings, 1 reply; 4+ messages in thread
From: Andi Hechtbauer @ 2000-10-09 15:05 UTC (permalink / raw)
Cc: ding
>>>>> "Simon" == Simon Josefsson <simon@josefsson.org> writes:
Simon> Andi Hechtbauer <anti@spin.de> writes:
>> It seems the "rename" part doesn't work - at least for me it
>> didn't create its directories, so the rename failed with
>> "Renaming: no such file or directory, ".
Simon> Sorry, it didn't handle non-nil
Simon> {gnus,nnmail}-use-long-file-name's correctly. Fixed in
Simon> CVS.
Works, but now I'm getting:
File already exists: /home/dir/News/overview/nnimap/srv/grp/943549114/novcache
Once for each group, only the first time I access it.
Does the upgrade part try to create things twice?
regards,
--
Andi Hechtbauer anti@spin.de
root voice: +49 941 942 77 23
SPiN http://www.spin.de/ fax: +49 941 942 77 22
------ PGPf16: B4 FC 30 E0 31 2F BC F5 38 D0 A2 FC EA A9 82 5D ------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nnimap uidvalidity/novcache updates
2000-10-09 15:05 ` Andi Hechtbauer
@ 2000-10-09 15:06 ` Simon Josefsson
0 siblings, 0 replies; 4+ messages in thread
From: Simon Josefsson @ 2000-10-09 15:06 UTC (permalink / raw)
Cc: ding
Andi Hechtbauer <anti@spin.de> writes:
> Works, but now I'm getting:
>
> File already exists: /home/dir/News/overview/nnimap/srv/grp/943549114/novcache
>
> Once for each group, only the first time I access it.
> Does the upgrade part try to create things twice?
It did, `rename-file' and `copy-file' doesn't return anything useful.
Should be fixed in CVS. Here's the current logic:
(when (and (file-exists-p oldfile) (not (file-exists-p newfile)))
(message "nnimap: Upgrading novcache filename...")
(sit-for 1)
(gnus-make-directory (file-name-directory newfile))
(unless (ignore-errors (rename-file oldfile newfile) t)
(if (ignore-errors (copy-file oldfile newfile) t)
(delete-file oldfile)
(error "Can't rename `%s' to `%s'" oldfile newfile))))
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-10-09 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-09 10:05 nnimap uidvalidity/novcache updates Andi Hechtbauer
2000-10-09 12:00 ` Simon Josefsson
2000-10-09 15:05 ` Andi Hechtbauer
2000-10-09 15:06 ` Simon Josefsson
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).