LDS Gems mbox to html summary pages for unit websites
Posted: Fri Apr 06, 2007 2:30 pm
I've heard a few people mention that they like
the LDS Gems series of e-mail newsletters,
but it seems to be a small number of people
who really even know about them.
So I thought -- Wouldn't it be cool to have
a page or pages in the News/Information
section of the Ward Website that would
show that day's LDS Gems message,
so people could see what the messages
were like, and decide if they might want
to subscribe to the newsletter(s).
My idea would be that I would subscribe
to all the LDS Gems newsletters (General,
Young Single Adult, etc.), and each morning
when I checked my email, a mail filter would
store them into their own mailbox in mbox
format. Then a script would parse the mailbox
and create it an html file I could then upload
to the website it every day.
I'm thinking of using the GNU utills
of sed and grep to do this.
There are a few questions I had
before I started that maybe some
of you can help me out with:
1) Since, I haven't subscribed to these
email newsletters before, can someone
who does, give me an idea of how long
they are ? Will I be able to fit multiple
newsletters into the 10,000 character
limit, or will I need each newsletter to
have it's own page ?
2) Is there a GNU tool that will do basically
this: LOOK for the first regexp, LOOK for
a second regexp, GET all the lines in between
the two ?
One more thing - I won't be able to use PERL
on my machine because I can't get it work
with CPAN or any of the other module repositories.
If I could, I would use some of the off-the-shelf
software to parse out each message as a file.
Thanks,
Atticus Ewig
the LDS Gems series of e-mail newsletters,
but it seems to be a small number of people
who really even know about them.
So I thought -- Wouldn't it be cool to have
a page or pages in the News/Information
section of the Ward Website that would
show that day's LDS Gems message,
so people could see what the messages
were like, and decide if they might want
to subscribe to the newsletter(s).
My idea would be that I would subscribe
to all the LDS Gems newsletters (General,
Young Single Adult, etc.), and each morning
when I checked my email, a mail filter would
store them into their own mailbox in mbox
format. Then a script would parse the mailbox
and create it an html file I could then upload
to the website it every day.
I'm thinking of using the GNU utills
of sed and grep to do this.
There are a few questions I had
before I started that maybe some
of you can help me out with:
1) Since, I haven't subscribed to these
email newsletters before, can someone
who does, give me an idea of how long
they are ? Will I be able to fit multiple
newsletters into the 10,000 character
limit, or will I need each newsletter to
have it's own page ?
2) Is there a GNU tool that will do basically
this: LOOK for the first regexp, LOOK for
a second regexp, GET all the lines in between
the two ?
One more thing - I won't be able to use PERL
on my machine because I can't get it work
with CPAN or any of the other module repositories.
If I could, I would use some of the off-the-shelf
software to parse out each message as a file.
Thanks,
Atticus Ewig