225 |
current = util_ll_add (current, x); |
current = util_ll_add (current, x); |
226 |
free (arg); |
free (arg); |
227 |
} |
} |
228 |
|
else if (strchr (argv[i], '[') != NULL) |
229 |
|
{ |
230 |
|
/* attachments - GNU extension */ |
231 |
|
/* |
232 |
|
* This is a general extension to the msglist format. Basicallay, |
233 |
|
* it adds C-like array subscripting to msg numbers to allow access |
234 |
|
* to just a single part of a MIME multipart message. I.e.: |
235 |
|
* print 7[1],8[1-2] |
236 |
|
* should print the first attachment of message 7 and the first |
237 |
|
* and second attachments of message 8. The format inside the |
238 |
|
* brackets is the same as a msglist, so we should be able to |
239 |
|
* reuse this function for its expansion. This will primarily |
240 |
|
* be used by the new decode command, which needs discussion on |
241 |
|
* the mailing list to nail its syntax down (should it default to |
242 |
|
* saving to a file, printing to stdout, or piping?) |
243 |
|
* -- sparky |
244 |
|
*/ |
245 |
|
} |
246 |
else |
else |
247 |
{ |
{ |
248 |
/* Single message. */ |
/* Single message. */ |