Re: Procmail and error "is not a mailbox"



* rodkoch@xxxxxxxxx, 2006-07-27 17:47 UTC:
The first line is indeed a leading empty line. If I remove that empty
line, then mutt opens the inbox, so that solves my problem. But how do
I get my fetchmail -> procmail process to not make a leading empty
line?

Does it really? Is it reproducible if you remove the file and let
fetchmail|procmail create a new one? Do all mail entries have 2 empty
lines between the last text of the previous mail and the next one? If
not, I'd say it was a one time glitch, or some program emptied the Inbox
file but left a single newline instead of truncating the file to
0 bytes.

Your headers say you're using Windows, so it may also be some effect of
the nasty Windows CrLf combination for newlines, in case you or some
program edited the file.

Is there a procmail recpie that will let me
pipe the Inbox through perl to strip off any leading blank line?

Sure, you can pipe a mail through any filter you like, take a look at
the procmailex manpage. As you're under Windows you may not have it, see
http://man.splitbrain.org/procmailex

If you add the following recipe above all other recipes, formail will
(re)generate a From_ line, and maybe also strip a superfluous empty
line, I didn't check, it's quite flexible. I don't think though that
fetchmail injects mail with a leading empty line.

:0 fhw
| formail -I "From " -a "From "

You can of course replace the formail call with anything you like.

Also , thanks so much for your helpful information!

You're welcome!

Eike

--
PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
.



Relevant Pages

  • RE: exchange active sync, 0 items in inbox
    ... > to sync wireless, it seems to work, there are no errors and it says ... however, my inbox, tasks and contacts remain empty. ... > oddly, the folder structure of my inbox remains, so i can see all my ...
    (microsoft.public.pocketpc.activesync)
  • Re: What does Pine call "recent"?
    ... > The problem that you have is that Pine does not tell you which one ... It was empty, yes, and I did; and what's more, at least one message ... arrived, and got filtered into another incoming folder, while I was ... some, when I got back to my inbox with another ...
    (comp.mail.pine)
  • Re: Empty Inbox after advanced rebuild
    ... "Billy Doherty" wrote: ... Now main inbox is empty. ... Seen the All-New Entourage Help Pages? ...
    (microsoft.public.mac.office.entourage)
  • Re: Help!
    ... frequently a symptom of summat else that is unrelated but that is where it ... empty OE delete file ... shift current files away from inbox - make new files a stage away so Inbox ... shut down - open up in safe mode - full scan disk ...
    (uk.business.agriculture)
  • Re: Cant receive email in Outlook 07
    ... When I hit send/receive it has two things that run quickly and the window ... My inbox is now empty and everything from the ... Explorer site gets it fine. ...
    (microsoft.public.outlook)