+
+ /* Test 2b */
+ gchar *account_name_from_recipient;
+ account_name_from_recipient = modest_utils_get_account_name_from_recipient ("user@email.com");
+ fail_unless (account_name_from_recipient != NULL,
+ "modest_utils_get_account_name_from_recipient failed: "\
+ "From user@email.com should match account");
+
+ /* Test 2c */
+ account_name_from_recipient = modest_utils_get_account_name_from_recipient ("egg@egg.com");
+ fail_unless (account_name_from_recipient == NULL,
+ "modest_utils_get_account_name_from_recipient failed: "\
+ "From egg@egg.com shouldn't match account");