--- /opt/rt4/share/html/Search/Elements/ResultsRSSView	2015-07-09 13:16:40.646390255 +0200
+++ ResultsRSSView	2015-08-28 13:23:27.000000000 +0200
@@ -90,13 +90,46 @@
 
 
 while ( my $Ticket = $Tickets->Next()) {
-    my $creator_str = $Ticket->CreatorObj->Format;
-    $creator_str =~ s/[\r\n]//g;
+	my $transactions = $Ticket->Transactions;
+	
+	# Limit to transactions with type "Comment" or "Correspond"
+	$transactions->Limit(
+		FIELD => 'Type',
+		VALUE => 'Comment',
+		ENTRYAGGREGATOR => 'OR',
+		OPERATOR => '=' 
+	);
+	$transactions->Limit(
+                FIELD => 'Type',
+                VALUE => 'Correspond',
+		ENTRYAGGREGATOR => 'OR',
+		OPERATOR => '=' 
+        );
 
+	my $content;
+	my $txnCreatedObj;
+	my $creator_str;
+	
+	if ($transactions->Count) {		
+		# Comment/Correspondence found - take last transaction
+		my $transaction = $transactions->Last;
+		$content = $transaction->Content;
+		$txnCreatedObj = $transaction->CreatedObj;
+		$creator_str = $transaction->CreatorObj->Format;
+	} else { 
+		# no further Comments/Correspondence found - take first transaction
+		my $transaction = $Ticket->Transactions->First;
+		$content = $transaction->Content;
+		$txnCreatedObj = $transaction->CreatedObj;
+		$creator_str = $transaction->CreatorObj->Format;
+	}
+    
+    $creator_str =~ s/[\r\n]//g;
+	
     # Get the plain-text content; it is interpreted as HTML by RSS
     # readers, so it must be escaped (and is escaped _again_ when
     # inserted into the XML).
-    my $content = $Ticket->Transactions->First->Content;
+
     $content = $m->interp->apply_escapes( $content, 'h');
 
     $rss->add_item(
@@ -105,7 +138,7 @@
         description => $content,
         dc          => {
             creator => $creator_str,
-            date    => $Ticket->CreatedObj->W3CDTF,
+            date    => $txnCreatedObj->W3CDTF,
         },
         guid        => $Ticket->Queue . '_' . $Ticket->id,
     );
