Avodah Zarah5: 2
יֵין נֶסֶךְ שֶׁנָּפַל עַל גַּבֵּי עֲנָבִים — יְדִיחֵן, וְהֵן מֻתָּרוֹת. וְאִם הָיוּ מְבֻקָּעוֹת — אֲסוּרוֹת. [נָפַל עַל גַבֵּי תְאֵנִים אוֹ עַל גַּבֵּי תְמָרִים, אִם יֵשׁ בָּהֶן בְּנוֹתֵן טַעַם — אָסוּר.] מַעֲשֶׂה בְּבַיְתוֹס בֶּן זוֹנִין שֶׁהֵבִיא גְרוֹגְרוֹת בִּסְפִינָה, וְנִשְׁתַּבְּרָה חָבִית שֶׁל יֵין נֶסֶךְ וְנָפַל עַל גַבֵּיהֶן, וְשָׁאַל לַחֲכָמִים, וְהִתִּירוּם. זֶה הַכְּלָל: כֹּל שֶׁבַּהֲנָאָתוֹ בְּנוֹתֵן טַעַם — אָסוּר. כֹּל שֶׁאֵין בַּהֲנָאָתוֹ בְּנוֹתֵן טַעַם — מֻתָּר, כְּגוֹן חֹמֶץ שֶׁנָּפַל עַל גַּבֵּי גְרִיסִין.
[If] nesech-wine fell onto grapes, he should rinse them off and they are permitted; but if they were cracked, they are prohib-ited. [If] it fell onto dates or onto figs, if there is [enough] in them to give taste —- it is prohibited. There was an incident in which Boethus the son of Zonin brought dried figs by boat, and a barrel of nesech-wine broke and [the wine] fell onto them; and he asked the Sages and they permitted them. This is the rule: Anything that contributes to his enjoyment by the flavor it imparts is prohibited; anything that does not contribute to his enjoyment by the flavor it imparts is permitted —- such as vinegar which fell onto chopped beans.