imap2rss.php
I like the idea of using blogs in the workplace as a way of keeping others informed of important or interesting facts, thus substituting the infamous email sent to the entire company. Unfortunately, I also think that unless everyone in the company is a serious blogger, you’re going to find some resistance to migrating towards blogs, especially if they don’t have a first-hand way of seeing the benefits of this approach.
I think that part of the problem resides in the complication of introducing blog software to people who have never even thought about blogging before. They just won’t see the advantage of using this software.
Thinking about this, I came up with the idea of meeting people half-way. A good way of doing this would be to remain doing things the old way, that is, using email to share interesting content. The difference would be that instead of sending these emails personally to everyone concerned, you can create one or several mailboxes specifically for holding this content.
The other difference is that instead of receiving these mails in their email inbox, the content would be viewed in an aggregator. Of course, the introduction of a new piece of software can be met with some resistance, but now that most email clients are able to understand RSS in some fashion, using these feeds is just a matter of adding another folder to the mail client in question.
I’ve put it online at http://www.noaxs.net/imap2rss/. Hopefully it can be of some use to someone else.
Update: I changed the download link because it was giving some people problems.
I am a software engineer, currently working as a Consultant at
February 21st, 2005 at 1:45 pm
download archive seems broken…
Thanks
Alex
February 21st, 2005 at 1:45 pm
download archive seems broken…
Thanks
Alex
February 21st, 2005 at 2:02 pm
Alex, I’ve changed the link, see if it works for you now.
Dave
February 21st, 2005 at 2:02 pm
Alex, I’ve changed the link, see if it works for you now.
Dave
March 6th, 2005 at 10:41 am
I’ve just found this on freshmeat and must say I really like it. I’ve given it a test drive and run into the following error :
———————
XML Parsing Error: undefined entity
Location: http://***************/imap.php
Line Number 399, Column 48:har lagt ved log4php i arkivet, men trenger også PEAR::Config.php
———————
the letter it stopping on is the Norwegian “å”
:torgeir
March 6th, 2005 at 10:41 am
I’ve just found this on freshmeat and must say I really like it. I’ve given it a test drive and run into the following error :
———————
XML Parsing Error: undefined entity
Location: http://***************/imap.php
Line Number 399, Column 48:har lagt ved log4php i arkivet, men trenger også PEAR::Config.php
———————
the letter it stopping on is the Norwegian “å”
:torgeir
March 11th, 2005 at 10:00 pm
Quite a good idea.
Consider for linking (had problems with email addresses with periods in them):
function renderPlainText($str) {
$str =eregi_replace(”(([[:alnum:]]+://)|www\.)([^[:space:]]*)([[:alnum:]#?/&=])”, “\\1\\3\\4“, $str); // link URLS
$str = eregi_replace(”href=\”www”,”href=\”http://www”, $str);// fix lazy URLs
$str = eregi_replace(”(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))”, “\\1“, $str); // link mailtos
$str = preg_replace(”/>(([[:alnum:]]+:\/\/)|www\.)([^[:space:]]{30,40})([^[:space:]]*)([^[:space:]]{10,20})([[:alnum:]#?\/&=])", ">\\1\\3…\\5\\6<", $str); // truncate long urls that can cause display problems
$str = stripslashes($str);
$str = nl2br($str);// Throw in
tags
return $str;
}
March 11th, 2005 at 10:00 pm
Quite a good idea.
Consider for linking (had problems with email addresses with periods in them):
function renderPlainText($str) {
$str =eregi_replace(”(([[:alnum:]]+://)|www\.)([^[:space:]]*)([[:alnum:]#?/&=])”, “\\1\\3\\4“, $str); // link URLS
$str = eregi_replace(”href=\”www”,”href=\”http://www”, $str);// fix lazy URLs
$str = eregi_replace(”(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))”, “\\1“, $str); // link mailtos
$str = preg_replace(”/>(([[:alnum:]]+:\/\/)|www\.)([^[:space:]]{30,40})([^[:space:]]*)([^[:space:]]{10,20})([[:alnum:]#?\/&=])", ">\\1\\3…\\5\\6<", $str); // truncate long urls that can cause display problems
$str = stripslashes($str);
$str = nl2br($str);// Throw in
tags
return $str;
}
May 19th, 2005 at 2:53 pm
Thank you very much for the imap2rss!
We have it running in our local Feedonfeeds installation. It runs pretty good!
Now what was a problem was the encoding. Although the server served the rss as “application/xml” the feed has done some problems with German umlaut (ä, ö, ü) and so on.. I tried to fix that but it doesn’t work.
We disabled the mail body for now..
May 19th, 2005 at 2:53 pm
Thank you very much for the imap2rss!
We have it running in our local Feedonfeeds installation. It runs pretty good!
Now what was a problem was the encoding. Although the server served the rss as “application/xml” the feed has done some problems with German umlaut (ä, ö, ü) and so on.. I tried to fix that but it doesn’t work.
We disabled the mail body for now..
March 28th, 2007 at 12:12 pm
@Philipp Keller:
use the php function “mb_decode_mimeheader()” to convert Umlaute just where the script accesses subject and author.
May 2nd, 2007 at 8:49 pm
Hi Dave,
Thanks for this nice application. I use it along with google custom homepage to bypass my company’s policy that prevents us to check our personal mails at work
Encoding was also an issue for french language, but Martin’s tip to use mb_decode_mimeheader mostly solved it, so everything’s fine !
Cheers !
Étienne