Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Gnus corrupt mailbox w/ nnml
@ 2007-10-16 13:59 Kyle Sexton
  2007-10-16 17:46 ` Reiner Steib
  0 siblings, 1 reply; 8+ messages in thread
From: Kyle Sexton @ 2007-10-16 13:59 UTC (permalink / raw)
  To: info-gnus-english

All,

I'm trying to convert to using nnml since nnmaildir was *slooooow*.
Everything I've read says that nnml is the fastest backend for Gnus
since it is the most like an actual news server.  My setup consists
of:

fetchmail -> procmail -> Inbox.spool

When I try to start Gnus I get an error:

Error, unknown mail format! (Possibly corrupted buffer ` *nnmail
incoming*'.)

I then get stuck w/ an ~/.emacs-mail-crash-box, but whatever I do I
can't actually view the messages.  I ran the file command on the spool
and got the following back:

Work.spool: ASCII mail text

Here's the contents of my procmailrc and .gnus

.procmailrc
MAILDIR=$HOME/Mail
DEFAULT=Work/Inbox/

# Catchall to the inbox
:0:
/home/user/.incoming/Work.spool

.gnus
(setq
 gnus-secondary-select-methods '((nnml ""))
 mail-sources '((directory :path "~/.incoming/" :suffix ".spool"))
 mail-source-delete-incoming t
)


Thanks in advance for any advice.

-- 
Kyle Sexton

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

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-16 13:59 Gnus corrupt mailbox w/ nnml Kyle Sexton
@ 2007-10-16 17:46 ` Reiner Steib
  2007-10-16 21:06   ` Kyle Sexton
       [not found]   ` <mailman.2162.1192568814.18990.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Reiner Steib @ 2007-10-16 17:46 UTC (permalink / raw)
  To: info-gnus-english

On Tue, Oct 16 2007, Kyle Sexton wrote:

> fetchmail -> procmail -> Inbox.spool

You meant "Work.spool"?

> When I try to start Gnus I get an error:
>
> Error, unknown mail format! (Possibly corrupted buffer ` *nnmail
> incoming*'.)
>
> I then get stuck w/ an ~/.emacs-mail-crash-box, but whatever I do I
> can't actually view the messages.  I ran the file command on the spool
> and got the following back:
>
> Work.spool: ASCII mail text

The error occurs if Gnus can't find "^From " in the spool file.
Please show us the (anonymized) output of "head -n1 Work.spool".
It should look like this:

| From ttttttt@mmmmmm.invalid  Tue Oct 16 08:50:06 2007

> Here's the contents of my procmailrc and .gnus
[...]
> # Catchall to the inbox
> :0:
> /home/user/.incoming/Work.spool
>
> .gnus
> (setq
>  gnus-secondary-select-methods '((nnml ""))
>  mail-sources '((directory :path "~/.incoming/" :suffix ".spool"))
>  mail-source-delete-incoming t
> )

Setting `mail-source-delete-incoming' to t or a number during testing
might be a good idea.

Which version of Gnus are you using?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-16 17:46 ` Reiner Steib
@ 2007-10-16 21:06   ` Kyle Sexton
  2007-10-16 21:18     ` Reiner Steib
       [not found]   ` <mailman.2162.1192568814.18990.info-gnus-english@gnu.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Kyle Sexton @ 2007-10-16 21:06 UTC (permalink / raw)
  To: Reiner Steib; +Cc: info-gnus-english

On 10/16/07, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> On Tue, Oct 16 2007, Kyle Sexton wrote:
>
> > fetchmail -> procmail -> Inbox.spool
>
> You meant "Work.spool"?

You caught me. :)

> The error occurs if Gnus can't find "^From " in the spool file.
> Please show us the (anonymized) output of "head -n1 Work.spool".
> It should look like this:
>
> | From ttttttt@mmmmmm.invalid  Tue Oct 16 08:50:06 2007
>

Well, that explains my problem I guess.  The first line says:

~$ head -n1 Work.spool
X-MimeOLE: Produced By Microsoft Exchange V6.5
~$

In fact, the ^From isn't until line 18:

~$ cat Work.spool | nl | grep From
    18  From: "Anon Ymous" <anon@anon.com>
~$

-- 
Kyle Sexton

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

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-16 21:06   ` Kyle Sexton
@ 2007-10-16 21:18     ` Reiner Steib
  2007-10-17 17:39       ` Kyle Sexton
  0 siblings, 1 reply; 8+ messages in thread
From: Reiner Steib @ 2007-10-16 21:18 UTC (permalink / raw)
  To: info-gnus-english

On Tue, Oct 16 2007, Kyle Sexton wrote:

> On 10/16/07, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
[...]
>> | From ttttttt@mmmmmm.invalid  Tue Oct 16 08:50:06 2007
>
> Well, that explains my problem I guess.  The first line says:
>
> ~$ head -n1 Work.spool
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> ~$
>
> In fact, the ^From isn't until line 18:
>
> ~$ cat Work.spool | nl | grep From
>     18  From: "Anon Ymous" <anon@anon.com>
> ~$

That not the "From " line, but the "From:" line.  An mbox file needs
to start with "From " as in my example.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-16 21:18     ` Reiner Steib
@ 2007-10-17 17:39       ` Kyle Sexton
  2007-10-17 18:39         ` Reiner Steib
  0 siblings, 1 reply; 8+ messages in thread
From: Kyle Sexton @ 2007-10-17 17:39 UTC (permalink / raw)
  To: Reiner Steib; +Cc: info-gnus-english

On 10/16/07, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> On Tue, Oct 16 2007, Kyle Sexton wrote:
>
> > On 10/16/07, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> [...]
> >> | From ttttttt@mmmmmm.invalid  Tue Oct 16 08:50:06 2007
> >
> > Well, that explains my problem I guess.  The first line says:
> >
> > ~$ head -n1 Work.spool
> > X-MimeOLE: Produced By Microsoft Exchange V6.5
> > ~$
> >
> > In fact, the ^From isn't until line 18:
> >
> > ~$ cat Work.spool | nl | grep From
> >     18  From: "Anon Ymous" <anon@anon.com>
> > ~$
>
> That not the "From " line, but the "From:" line.  An mbox file needs
> to start with "From " as in my example.
>
> Bye, Reiner.
> --
>        ,,,
>       (o o)
> ---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/
> _______________________________________________
> info-gnus-english mailing list
> info-gnus-english@gnu.org
> http://lists.gnu.org/mailman/listinfo/info-gnus-english
>

Redownloaded my spool file and now it goes through fine, but it spools
into just one *really* big message, instead of splitting them into
individual messages.  Any idea what could cause that?  Using Gnus 5.11


-- 
Kyle Sexton

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

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-17 17:39       ` Kyle Sexton
@ 2007-10-17 18:39         ` Reiner Steib
  0 siblings, 0 replies; 8+ messages in thread
From: Reiner Steib @ 2007-10-17 18:39 UTC (permalink / raw)
  To: info-gnus-english

On Wed, Oct 17 2007, Kyle Sexton wrote:

> Redownloaded my spool file and now it goes through fine, but it spools
> into just one *really* big message, instead of splitting them into
> individual messages.  Any idea what could cause that?

Hard to tell without looking at the spool file.  I'd guess that again
the "From " lines (for the second and later messages) are corrupted.
Note that the messages must be separated like this:

|Last line.  Followed by one or more blank lines, then "From "...
|
|From foo@bar.invalid  Wed Oct 17 18:56:21 2007

Additionally, you may check, if mail/mailx is able to parse the file:

  mail -H -f Work.spool

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Gnus corrupt mailbox w/ nnml
       [not found]   ` <mailman.2162.1192568814.18990.info-gnus-english@gnu.org>
@ 2007-10-21 16:35     ` Sven Bretfeld
  2007-10-22 19:52       ` Kyle Sexton
  0 siblings, 1 reply; 8+ messages in thread
From: Sven Bretfeld @ 2007-10-21 16:35 UTC (permalink / raw)
  To: info-gnus-english


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

Hi Kyle

"Kyle Sexton" <ks@mocker.org> writes:

> Well, that explains my problem I guess.  The first line says:
>
> ~$ head -n1 Work.spool
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> ~$
>
> In fact, the ^From isn't until line 18:
>
> ~$ cat Work.spool | nl | grep From
>     18  From: "Anon Ymous" <anon@anon.com>
> ~$

The whole trick is to tell procmail to create a standard mbox wherein
all Mails begin with a From-Header (without :). To achive this, you
have to start procmail with the option -f %F.

So add this to the poll-line in your .fetchmailrc, for example:

poll your_mail_account with proto POP3 user 'your_pop_user_name' there
       with password 'secret' is 'your_local_username' here options
       keep ssl mda "/usr/bin/procmail -f %F"

That's all.

Bye,

Sven

[-- 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] 8+ messages in thread

* Re: Gnus corrupt mailbox w/ nnml
  2007-10-21 16:35     ` Sven Bretfeld
@ 2007-10-22 19:52       ` Kyle Sexton
  0 siblings, 0 replies; 8+ messages in thread
From: Kyle Sexton @ 2007-10-22 19:52 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: info-gnus-english

On 10/21/07, Sven Bretfeld <sven.bretfeld@relwi.unibe.ch> wrote:
> Hi Kyle
>
> "Kyle Sexton" <ks@mocker.org> writes:
>
> > Well, that explains my problem I guess.  The first line says:
> >
> > ~$ head -n1 Work.spool
> > X-MimeOLE: Produced By Microsoft Exchange V6.5
> > ~$
> >
> > In fact, the ^From isn't until line 18:
> >
> > ~$ cat Work.spool | nl | grep From
> >     18  From: "Anon Ymous" <anon@anon.com>
> > ~$
>
> The whole trick is to tell procmail to create a standard mbox wherein
> all Mails begin with a From-Header (without :). To achive this, you
> have to start procmail with the option -f %F.
>
> So add this to the poll-line in your .fetchmailrc, for example:
>
> poll your_mail_account with proto POP3 user 'your_pop_user_name' there
>        with password 'secret' is 'your_local_username' here options
>        keep ssl mda "/usr/bin/procmail -f %F"
>
> That's all.
>
> Bye,
>
> Sven
>

Worked like a charm, thanks a bunch.


-- 
Kyle Sexton

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

end of thread, other threads:[~2007-10-22 19:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-16 13:59 Gnus corrupt mailbox w/ nnml Kyle Sexton
2007-10-16 17:46 ` Reiner Steib
2007-10-16 21:06   ` Kyle Sexton
2007-10-16 21:18     ` Reiner Steib
2007-10-17 17:39       ` Kyle Sexton
2007-10-17 18:39         ` Reiner Steib
     [not found]   ` <mailman.2162.1192568814.18990.info-gnus-english@gnu.org>
2007-10-21 16:35     ` Sven Bretfeld
2007-10-22 19:52       ` Kyle Sexton

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