%0 Conference Paper %B Proceedings of ICPC 2010 (18th IEEE International Conference on Program Comprehension) %D 2010 %T Extracting source code from e-mails %A Bacchelli, Alberto %A D'Ambros, Marco %A Lanza, Michele %K argouml %K email %K freenet %K jmeter %K mailing lists %K mina %K natural language %K openjpa %K source code %X E-mails, used by developers and system users to communicate over a broad range of topics, offer a valuable source of information. If archived, e-mails can be mined to support program comprehension activities and to provide views of a software system that are alternative and complementary to those offered by the source code. However, e-mails are written in natural language, and therefore contain noise that makes it difficult to retrieve the important data. Thus, before conducting an effective system analysis and extracting data for program comprehension, it is necessary to select the relevant messages, and to expose only the meaningful information. In this work we focus both on classifying e-mails that hold fragments of the source code of a system, and on extracting the source code pieces inside the e-mail. We devised and analyzed a number of lightweight techniques to accomplish these tasks. To assess the validity of our techniques, we manually inspected and annotated a statistically significant number of e-mails from five unrelated open source software systems written in Java. With such a benchmark in place, we measured the effectiveness of each technique in terms of precision and recall. %B Proceedings of ICPC 2010 (18th IEEE International Conference on Program Comprehension) %P 24-33 %U http://www.inf.usi.ch/phd/bacchelli/publications.php %> https://flosshub.org/sites/flosshub.org/files/icpc2010.pdf