… | |
… | |
172 | length = 0; |
172 | length = 0; |
173 | ptr = iter + 1; |
173 | ptr = iter + 1; |
174 | } |
174 | } |
175 | |
175 | |
176 | /* |
176 | /* |
177 | * new filename detection routine, fists mostly for files by ftp-by-email |
177 | * new filename detection routine, fits mostly for files by ftp-by-email |
178 | * servers that create subject lines with ftp.host.address:/full/path/file |
178 | * servers that create subject lines with ftp.host.address:/full/path/file |
179 | * on them. We look for slashes and take the filename from after the last |
179 | * on them. We look for slashes and take the filename from after the last |
180 | * one ... or at least we try to. |
180 | * one ... or at least we try to. |
181 | */ |
181 | */ |
182 | |
182 | |
… | |
… | |
733 | } |
733 | } |
734 | else |
734 | else |
735 | result->filename = NULL; |
735 | result->filename = NULL; |
736 | |
736 | |
737 | if (uu_dumbness <= 1) |
737 | if (uu_dumbness <= 1) |
738 | result->subfname = data->uudet == YENC_ENCODED |
738 | /* trust the yyenc filename if it is long enough */ |
|
|
739 | result->subfname = data->uudet == YENC_ENCODED && data->filename && strlen (data->filename) > 4+1+3 |
739 | ? FP_strdup (data->filename) |
740 | ? FP_strdup (data->filename) |
740 | : UUGetFileName (data->subject, where, whend); |
741 | : UUGetFileName (data->subject, where, whend); |
741 | else |
742 | else |
742 | result->subfname = NULL; |
743 | result->subfname = NULL; |
743 | |
744 | |