5 parse_msgs(const struct msgs_array *msgs, char *folder, struct msgs_array *files)
14 path = toabsdir(folder);
16 path = toabsdir(getcurfol());
19 path = mh_xstrdup(path);
20 path = add("/", path);
22 f = folder_read(path);
28 for (i = 0; i < msgs->size; i++) {
29 if (*(msgs->msgs[i]) == '.' || *(msgs->msgs[i]) == '/') {
30 app_msgarg(files, msgs->msgs[i]);
34 if (!m_convert(f, msgs->msgs[i])) {
39 for (i = f->lowsel; f->numsel > 0 && i <= f->hghsel; i++) {
40 if (is_selected(f, i)) {
41 msgnam = mh_xstrdup(path);
42 msgnam = add(m_name(i), msgnam);
43 app_msgarg(files, msgnam);