URL:
<http://savannah.nongnu.org/task/?13036>
Summary: Allow variables in xfer.file.download_path
Project: WeeChat
Submitted by: wakimiko
Submitted on: Mon 13 Jan 2014 06:12:54 PM GMT
Category: xfer plugin
Should Start On: Mon 13 Jan 2014 12:00:00 AM GMT
Should be Finished on: Mon 13 Jan 2014 12:00:00 AM GMT
Priority: 5 - Normal
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
IRC nick:
_______________________________________________________
Details:
It would be nice if the "xfer.file.download_path" setting allowed variables,
kinda like the logger plugin already does for "logger.file.mask".
Variables that come to mind:
$nick - The user that is sending the file.
$server - The IRC server.
$filename - The name of the file you are receiving. This could also replace
the "xfer.file.use_nick_in_filename" option.
$size - The size of the file.
$ip - The IP address of the sender.
Maybe date specifiers would be useful too.
With this it would be possible to sort received files by server, nickname or
both.
E.g.: Setting "xfer.file.download_path" to
"~/download/$server/$nick-$filename" would sort received files in directories
by server and prefix the filename with the sending nick.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?13036>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev