--- remove-duplicates-plugin-0.0.4/src/remove-duplicates.c 
+++ remove-duplicates-plugin-0.0.4.orig/src/remove-duplicates.c 
@@ -175,7 +175,7 @@
 
 	reader = (EMailReader *) (shell_content);
 	message_list = e_mail_reader_get_message_list (reader);
-	selected = message_list_get_uids(message_list);
+	selected = message_list_get_selected (message_list);
 
 	handle_messages (message_list->folder, selected);
 	message_list_free_uids (message_list, selected);
