Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: nnmaildir problems after upgrading to emacs 22.1.1
       [not found] <mailman.3212.1183987429.32220.info-gnus-english@gnu.org>
@ 2007-07-12  6:04 ` Paul Jarc
  2007-07-14 23:14   ` Pietro Giorgianni
       [not found]   ` <mailman.3490.1184454921.32220.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Jarc @ 2007-07-12  6:04 UTC (permalink / raw)
  To: info-gnus-english

Pietro Giorgianni <giorgian@gmail.com> wrote:
> if i  delete the  .nnmaildir directory, quit  gnus, exit  emacs, start
> emacs again, run gnus, it then works (simply restarting gnus doesn't),
> but it's annoying having to  loose all information about read, replied
> etc. messages.

Deleting the .nnmaildir directories while Gnus is running would cause
problems.  Exit Gnus, then delete the "nov" and "num" directories in
all of your .nnmaildir directories.  (You can keep the "marks"
directories so you don't lose read/replied/etc. information.  The
problem is likely to be in "nov" or "num" anyway.)  Then start Gnus
again and see if anything still goes wrong.

Also note that deleting the "num" directories will make nnmaildir
reassign article number starting from 1.  This can cause problems if
you use the cache or agent, since they identify articles by number.
But if you've already caused damage by deleting the directories while
Gnus was running, then deleting the "num" directories again probably
won't do any more harm.


paul

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

* Re: nnmaildir problems after upgrading to emacs 22.1.1
  2007-07-12  6:04 ` nnmaildir problems after upgrading to emacs 22.1.1 Paul Jarc
@ 2007-07-14 23:14   ` Pietro Giorgianni
       [not found]   ` <mailman.3490.1184454921.32220.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Pietro Giorgianni @ 2007-07-14 23:14 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1967 bytes --]

prj@po.cwru.edu (Paul Jarc) writes:

> Pietro Giorgianni <giorgian@gmail.com> wrote:
>> if i  delete the  .nnmaildir directory, quit  gnus, exit  emacs, start
>> emacs again, run gnus, it then works (simply restarting gnus doesn't),
>> but it's annoying having to  loose all information about read, replied
>> etc. messages.
>
> Deleting the .nnmaildir directories while Gnus is running would cause
> problems.  Exit Gnus, then delete the "nov" and "num" directories in
> all of your .nnmaildir directories.  (You can keep the "marks"
> directories so you don't lose read/replied/etc. information.  The
> problem is likely to be in "nov" or "num" anyway.)  Then start Gnus
> again and see if anything still goes wrong.

too late, i already deleted the whole .nnmaildir directories. alas, if
i knew,  i would have  kept the marks  directories, but, it  went this
way.

> Also note that deleting the "num" directories will make nnmaildir
> reassign article number starting from 1.  This can cause problems if
> you use the cache or agent, since they identify articles by number.
> But if you've already caused damage by deleting the directories while
> Gnus was running, then deleting the "num" directories again probably
> won't do any more harm.

well,  after deleting  all .nnmaildir  dirs,  i still  got some  other
messages when  restarting gnus. i cannot  tell if it's  related to the
next problem:

if new  messages arrive while  a group is  visited, i cannot  see them
pressing / N  on the right summary; they appear as  already read, so i
can see them by pressing / O, but this is of course a problem.

if i close all groups and  then launch getmail, everything seems to go
fine.


my .gnus  configuration is  quite minimal, and  the only  reference to
nnmaildir is:

,----
| (setq gnus-select-method
|       '(nnmaildir "localhost"
|                   (directory "~/maildir")
|                   (expire-age never)))
`----


should i change anything?

thanks

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnmaildir problems after upgrading to emacs 22.1.1
       [not found]   ` <mailman.3490.1184454921.32220.info-gnus-english@gnu.org>
@ 2007-07-16 15:40     ` Paul Jarc
  2007-07-18  9:54       ` Pietro Giorgianni
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Jarc @ 2007-07-16 15:40 UTC (permalink / raw)
  To: info-gnus-english

Pietro Giorgianni <giorgian@gmail.com> wrote:
> prj@po.cwru.edu (Paul Jarc) writes:
>> Deleting the .nnmaildir directories while Gnus is running would cause
>> problems.  Exit Gnus, then delete the "nov" and "num" directories in
>> all of your .nnmaildir directories.  (You can keep the "marks"
>> directories so you don't lose read/replied/etc. information.  The
>> problem is likely to be in "nov" or "num" anyway.)  Then start Gnus
>> again and see if anything still goes wrong.
>
> too late, i already deleted the whole .nnmaildir directories.

You should still do what I described above.  That will ensure that the
damage won't grow any further.

> well,  after deleting  all .nnmaildir  dirs,  i still  got some  other
> messages when  restarting gnus.

It's probably because you deleted them while Gnus was running.  That
can cause damage that will persist to future Gnus sessions.

> my .gnus  configuration is  quite minimal, and  the only  reference to
> nnmaildir is:
>
> ,----
> | (setq gnus-select-method
> |       '(nnmaildir "localhost"
> |                   (directory "~/maildir")
> |                   (expire-age never)))
> `----

That looks ok.


paul

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

* Re: nnmaildir problems after upgrading to emacs 22.1.1
  2007-07-16 15:40     ` Paul Jarc
@ 2007-07-18  9:54       ` Pietro Giorgianni
  2007-07-18 11:15         ` restarting from scratch [was: nnmaildir problems after upgrading to emacs 22.1.1] Pietro Giorgianni
  0 siblings, 1 reply; 6+ messages in thread
From: Pietro Giorgianni @ 2007-07-18  9:54 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1093 bytes --]

prj@po.cwru.edu (Paul Jarc) writes:
> You should still do what I described above.  That will ensure that the
> damage won't grow any further.
> [...]
>
>> well,  after deleting  all .nnmaildir  dirs,  i still  got some  other
>> messages when  restarting gnus.
>
> It's probably because you deleted them while Gnus was running.  That
> can cause damage that will persist to future Gnus sessions.

i did, and it *almost*  worked: it solved all synchronization problems
but for the inbox folder: new messages to inbox folder still appear as
read, and sometimes they don't even appear; restarting gnus makes them
new again.


the inbox folder is just a  maildir folder as all other ones; the only
special thing i can  think of is the fact that i  often move or delete
messages from  there, so that the  apparent number of  messages is far
bigger than the real one. i could move all the messages to a temporary
folder and  then back again, to  change the article numbers,  but in a
couple of days they would be messed again anyway.


what can be the cause of this sync problem with inbox?

thanks

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* restarting from scratch [was: nnmaildir problems after upgrading to emacs 22.1.1]
  2007-07-18  9:54       ` Pietro Giorgianni
@ 2007-07-18 11:15         ` Pietro Giorgianni
  0 siblings, 0 replies; 6+ messages in thread
From: Pietro Giorgianni @ 2007-07-18 11:15 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1501 bytes --]

Pietro Giorgianni <giorgian@gmail.com> writes:
> the inbox folder is just a  maildir folder as all other ones; the only
> special thing i can  think of is the fact that i  often move or delete
> messages from  there, so that the  apparent number of  messages is far
> bigger than the real one. i could move all the messages to a temporary
> folder and  then back again, to  change the article numbers,  but in a
> couple of days they would be messed again anyway.

i tried the  above. i was not  able to move or delete  a message, that
is: i deleted it, but it was still there.

i closed gnus, and checked the  inbox maildir (with mutt and also with
find ~/maildir/inbox): it was empty.

i restarted gnus: the message was there.

i closed gnus, deleted .nov  and .num, restarted gnus. the message was
there.

so  i  unsubscribed inbox,  killed  inbox,  closed  gnus and  manually
deleted inbox.

i then restarted gnus, and inbox was gone.

then  i created  inbox  and the  subdirs  cur new  tmp, started  gnus,
pressed  F to find  the inbox  group, but  it didn't  find it  (it had
always worked for new groups before).


now i'm close to surrender.


the gnus info manual says that  one can copy an entire maildir tree to
another computer, and magically use that maildir tree in a new gnus.


of course, i have just one computer, so i'm tempted to delete ~/.newsrc*
and ~/News, try again, and if  it still doesn't work, pass to mutt and
try again gnus in a year or two.


can anybody save me? thanks

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* nnmaildir problems after upgrading to emacs 22.1.1
@ 2007-07-09 13:23 Pietro Giorgianni
  0 siblings, 0 replies; 6+ messages in thread
From: Pietro Giorgianni @ 2007-07-09 13:23 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 5282 bytes --]

hi,

i use the  nnmaildir backend. mail is fetched  and splitted by getmail
and mailfilter.

everything worked fine, i  was using debian emacs-snapshot (22.0.95 or
the like) and No Gnus v0.7 (from cvs, updated to some months ago).

yesterday i installed debian emacs22 (22.1.1), which brings gnus 5.11.

when  i  first  runned  gnus  after  upgrading,  i  had  errors  about
.nnmaildir directories. i deleted some of them, and then i was able to
run gnus, but,  if i select a message from, say,  inbox, and move them
to another folder, i got the error.

if i  delete the  .nnmaildir directory, quit  gnus, exit  emacs, start
emacs again, run gnus, it then works (simply restarting gnus doesn't),
but it's annoying having to  loose all information about read, replied
etc. messages.

of course this happens just the first time i use a folder with the new
version.

here is the backtrace i receive.  i have replaced some parts with ...,
to eliminate unprintable chars and also personal data.


is this incompatibility documented somewhere?

is  it ok to  simply delete  the .nnmaildir  directories, or  should i
expect problems in the future?


Debugger entered--Lisp error: (error "Corrupt internal nnmaildir data" "/home/giorgian/maildir/parcheggione/.nnmaildir/num/")
  signal(error ("Corrupt internal nnmaildir data" "/home/giorgian/maildir/parcheggione/.nnmaildir/num/"))
  byte-code("..." [group cl-struct-nnmaildir--grp-tags gname server pgname srv-dir 0 error "nnmaildir--grp-name accessing a non-nnmaildir--grp" 1 nnmaildir--pgname file-name-as-directory nnmaildir--param read-only "new" "cur" "nnmaildir--art-prefix accessing a non-nnmaildir--art" "nnmaildir--art-suffix accessing a non-nnmaildir--art" 2 file-attributes nnmaildir--expired-article throw return nil 5 7 "nnmaildir--art-nov accessing a non-nnmaildir--art" ".nnmaildir" "nov" copy-sequence get-buffer-create " *nnmaildir nov*" file-exists-p erase-buffer nnheader-insert-file-contents read vectorp "nnmaildir--art-num accessing a non-nnmaildir--art" 3 "nnmaildir--art-num storing a non-nnmaildir--art" "nnmaildir--art-msgid accessing a non-nnmaildir--art" 4 "nnmaildir--art-msgid storing a non-nnmaildir--art" mapcar #[(e) "^H        >\207" [e old-extra] 2] "\n" search-forward "\n\n" noerror count-lines ...] 9)
  nnmaildir--update-nov([cl-struct-nnmaildir--srv "localhost" (nnmaildir "localhost" (directory "~/maildir") (expire-age never)) "" "/home/giorgian/maildir/" directory-files [...] [...] nil (18045 35208) nil ""] [...] [cl-struct-nnmaildir--art "1183984863.M798137P20223Q0.follia" ":2," nil nil nil])
  nnmaildir--grp-add-art([cl-struct-nnmaildir--srv "localhost" (nnmaildir "localhost" (directory "~/maildir") (expire-age never)) "" "/home/giorgian/maildir/" directory-files ... nil nil nil nil nil nil nil nil nil nil] 6 [read]] [cl-struct-nnmaildir--art "1183984863.M798137P20223Q0.follia" ":2," nil nil nil])
  byte-code("..." [group nnmaildir--cur-server cl-struct-nnmaildir--srv-tags gname cl-struct-nnmaildir--grp-tags srv-dir 0 error "nnmaildir--srv-error storing a non-nnmaildir--srv" 8 "No such group: " throw return nil "nnmaildir--grp-name accessing a non-nnmaildir--grp" 1 nnmaildir--param nnmaildir--pgname read-only "Read-only group: " "nnmaildir--srv-dir accessing a non-nnmaildir--srv" 4 file-name-as-directory current-time format-time-string "%s." "M" number-to-string "Q" "." nnmaildir--system-name "tmp" "cur" ":2," file-exists-p "File exists: " run-with-timer 86400 #[nil "..." [tmpfile file nnmaildir--cur-server cl-struct-nnmaildir--srv-tags file-attributes delete-file 0 error "nnmaildir--srv-error storing a non-nnmaildir--srv" 8 "24-hour timer expired" throw return nil] 3] (add-name-to-file nnmaildir--file tmpfile) ((error ...)) nnheader-cancel-timer err (add-name-to-file tmpfile curfile) ((error ...)) file-attributes delete-file vector cl-struct-nnmaildir--art nnmaildir--grp-add-art ...] 8)
  nnmaildir-request-accept-article("parcheggione" "localhost" t)
  gnus-request-accept-article("parcheggione" nil t t)
  eval((gnus-request-accept-article "parcheggione" (quote nil) t t))
  byte-code("..." [group nnmaildir--cur-server cl-struct-nnmaildir--srv-tags gname cl-struct-nnmaildir--grp-tags pgname 0 error "nnmaildir--srv-error storing a non-nnmaildir--srv" 8 "No such group: " throw return nil "nnmaildir--grp-name accessing a non-nnmaildir--grp" 1 nnmaildir--pgname nnmaildir--nlist-art "No such article" "nnmaildir--art-suffix accessing a non-nnmaildir--art" 2 "nnmaildir--srv-dir accessing a non-nnmaildir--srv" 4 file-name-as-directory nnmaildir--param read-only "new" "cur" "nnmaildir--art-prefix accessing a non-nnmaildir--art" file-exists-p nnmaildir--expired-article "Article has expired" get-buffer-create " *nnmaildir move*" erase-buffer nnheader-insert-file-contents eval file-attributes delete-file article cl-struct-nnmaildir--art-tags suffix nnmaildir--file accept-form result file] 5)
  nnmaildir-request-move-article(184 "inbox" "localhost" (gnus-request-accept-article "parcheggione" (quote nil) t t) t)
  gnus-request-move-article(184 "inbox" "localhost" (gnus-request-accept-article "parcheggione" (quote nil) t t) t)
  gnus-summary-move-article(nil)
  call-interactively(gnus-summary-move-article)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2007-07-18 11:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3212.1183987429.32220.info-gnus-english@gnu.org>
2007-07-12  6:04 ` nnmaildir problems after upgrading to emacs 22.1.1 Paul Jarc
2007-07-14 23:14   ` Pietro Giorgianni
     [not found]   ` <mailman.3490.1184454921.32220.info-gnus-english@gnu.org>
2007-07-16 15:40     ` Paul Jarc
2007-07-18  9:54       ` Pietro Giorgianni
2007-07-18 11:15         ` restarting from scratch [was: nnmaildir problems after upgrading to emacs 22.1.1] Pietro Giorgianni
2007-07-09 13:23 nnmaildir problems after upgrading to emacs 22.1.1 Pietro Giorgianni

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