Re: Procmail and error "is not a mailbox"
- From: Eike Rathke <er-nutznetz.g@xxxxxx>
- Date: Sat, 29 Jul 2006 17:02:35 +0200
* 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
.
- References:
- Procmail and error "is not a mailbox"
- From: rodkoch
- Re: Procmail and error "is not a mailbox"
- From: Eike Rathke
- Re: Procmail and error "is not a mailbox"
- From: rodkoch
- Procmail and error "is not a mailbox"
- Prev by Date: Re: Bug tracker problem (and bug report)
- Next by Date: Re: Bug tracker problem (and bug report)
- Previous by thread: Re: Procmail and error "is not a mailbox"
- Next by thread: Re: Procmail and error "is not a mailbox"
- Index(es):
Relevant Pages
|