On 01/30/12 23:52, Fulvio wrote:
> Tom Malloy wrote:
>> Although I a pretty sure I could figure out how to write a perl script
>> (for example) to extract the games from mail and create a pgn file,
>> there are simpler solutions that should be preferred.
>> Most interfaces will allow you to log your games. Eboard does, xboard
>> does, and i think the built in SCID interface will allow you to save
>> them as you play. Although I do think the SCID interface needs a
>> little work.
>> But still the the question is 'why reinvent the wheel?'
>> There are simple solutions already available.
> I agree if you play just from one computer.
> Not that i analyze blitz games, but it's nice to build a tree with my
> games and see that i stubbornly play losing variations :-)
Have you progressed, if you have a solution, what is it?
I have a similar problem which I must address one day.... Like you, I
have games arrive in my mail box and I sort them into their own folder.
Things I am thinking about include use of formail to remove unwanted
headers. formail is part of the procmail system, and there are few, if
any, Linux distroes without it.
I often use alpine (Alternatively Licenced PINE, PINE Is Not Elm) to
read email,it's particularly good at dealing with spam as it doesn't
insist on opening any email, but I am diverted.
My email is stored on my own private imap server, so my first problem is
getting it from there to my PC. Alpine (and probably that dog, Mutt) can
do that. One of the Alpine commands is "!" which pipes it into an
arbitrary command, maybe a script you wrote.
Said script might use formail to remove unwanted headers, and a little
something else - shell stuff, or a modest amount or Perl, Python, TCL -
whatever takes your fancy to rearrange the other info to make a pgn file
the way you (and SCID) like. You could then use pgnscid to create a new
database with your latest games, and from there you can use the ordinary
SCID facilities top copy, fold and mutilate your games.
Note, while I recommend formail to remove unwanted headers, it does a
little more - it can unroll long headers into a single line, making it
easier for punters' scripts to process them.