=== modified file 'IkiWiki/Plugin/inline.pm'
--- IkiWiki/Plugin/inline.pm	
+++ IkiWiki/Plugin/inline.pm	
@@ -86,7 +86,9 @@
 	) unless $raw;
 	
 	foreach my $page (@list) {
-		if (! $raw) {
+		my $file = $pagesources{$page};
+		my $type = pagetype($file);
+		if (! $raw || ($raw && ! defined $type)) {
 			# Get the content before populating the template,
 			# since getting the content uses the same template
 			# if inlines are nested.
@@ -97,7 +99,8 @@
 			my $content=get_inline_content($page, $params{page});
 			# Don't use htmllink because this way the title is separate
 			# and can be overridden by other plugins.
-			my $link=htmlpage(bestlink($params{page}, $page));
+			my $link = bestlink($params{page}, $page);
+			$link=htmlpage($link) if defined $type;
 			$link=abs2rel($link, dirname($params{page}));
 			$template->param(pageurl => $link);
 			$template->param(title => pagetitle(basename($page)));
@@ -113,8 +116,6 @@
 			$template->clear_params;
 		}
 		else {
-			my $file=$pagesources{$page};
-			my $type=pagetype($file);
 			if (defined $type) {
 				$ret.="\n".
 				      linkify($page, $params{page},
@@ -196,6 +197,7 @@
 	foreach my $p (@pages) {
 		next unless exists $renderedfiles{$p};
 
+		my $file=$pagesources{$p};
 		my $u=URI->new(encode_utf8("$config{url}/$renderedfiles{$p}"));
 
 		$itemtemplate->param(
@@ -203,7 +205,25 @@
 			url => $u,
 			permalink => $u,
 			pubdate => date_822($pagectime{$p}),
-			content => absolute_urls(get_inline_content($p, $page), $url),
+		);
+		my $pcontent = absolute_urls(get_inline_content($p, $page), $url);
+		if ($itemtemplate->query(name => "post")) {
+			my $type=pagetype($file);
+			if (defined $type) {
+				$itemtemplate->param(post => 1);
+			} else {
+				my ($a, $b, $c, $d, $e, $f, $g, 
+					$size) = 
+					stat("".$config{destdir}."/".$renderedfiles{$p});
+				eval q{use File::MimeInfo};
+				my $mime = mimetype($file);
+				$pcontent = "<enclosure url=\"".$u."\" ";
+				$pcontent .= "type=\"".$mime."\" ";
+				$pcontent .= "length=\"".$size."\" />";
+			}
+		}
+		$itemtemplate->param(
+			content => $pcontent,
 		);
 		run_hooks(pagetemplate => sub {
 			shift->(page => $p, destpage => $page,

=== modified file 'doc/features.mdwn'
--- doc/features.mdwn	
+++ doc/features.mdwn	
@@ -58,6 +58,10 @@
 Ikiwiki can also [[plugins/aggregate]] external blogs, feeding them into
 the wiki. This can be used to create a Planet type site that aggregates
 interesting feeds.
+
+You can also mix blogging with podcasting by dropping audio files where
+they will be picked up like blog posts. This will work for any files that
+you would care to syndicate. (Requires `File::MimeInfo` module).
 
 ## Valid html and css
 

=== modified file 'doc/install.mdwn'
--- doc/install.mdwn	
+++ doc/install.mdwn	
@@ -7,7 +7,7 @@
 installed, and also uses the following perl modules if available: 
 `CGI::Session` `CGI::FormBuilder` (version 3.02.02 or newer)
 `HTML::Template` `Mail::Sendmail` `Time::Duration` `Date::Parse`,
-`HTML::Scrubber`, `RPC::XML`, `XML::Simple`, `XML::Feed`.
+`HTML::Scrubber`, `RPC::XML`, `XML::Simple`, `XML::Feed`, `File::MimeInfo`.
 
 Various [[plugins]] use other libraries and utlities; see their individual
 documentation for details.

=== modified file 'templates/rssitem.tmpl'
--- templates/rssitem.tmpl	
+++ templates/rssitem.tmpl	
@@ -13,5 +13,9 @@
 	</TMPL_LOOP>
 	</TMPL_IF>
 	<pubDate><TMPL_VAR PUBDATE></pubDate>
+	<TMPL_IF NAME="POST">
 	<description><![CDATA[<TMPL_VAR CONTENT>]]></description>
+	<TMPL_ELSE>
+	<TMPL_VAR CONTENT>
+	</TMPL_IF>
 </item>

