- case FT_ADDTOSEQ:
-#ifdef LBL
- /*
- ** If we're working on a folder (as opposed to a
- ** file), add the current msg to sequence given
- ** in literal field. Don't disturb string or
- ** value registers.
- */
- if (fmt_current_folder)
- seq_addmsg(fmt_current_folder, fmt->f_text, dat[0], -1);
-#endif
+ case FT_LS_UNMAILTO:
+ if (!str) {
+ break;
+ }
+ str = trim(str);
+ if (*str == '<' && str[strlen(str)-1] == '>') {
+ str++;
+ str[strlen(str)-1] = '\0';
+ }
+ if (strncmp("mailto:", str, 7)==0) {
+ str += 7;
+ }