This is my fault, I misunderstood Michel when he said 'all the options from sundew are implemented' I took it to mean for the subscribers as well as the senders. While it is certainly true that the documentation is currently wrong, I'm not sure that making the documentation 'right' is the correct fix.
This becomes a compatibility problem. If we are to 'hand off' configuration to users, we actually need this stuff to work. So the real fix is to implement the missing features.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
those options aren't supposed to be used on their own. As the variable names imply they are suffixes... TIME all on it's own is a weird case (never used.) You are supposed to use
WHATFN, HEADFN, or NONE
for the initial part of the file name... so something like NONE:TIME
is perhaps closer to what you want?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is my fault, I misunderstood Michel when he said 'all the options from sundew are implemented' I took it to mean for the subscribers as well as the senders. While it is certainly true that the documentation is currently wrong, I'm not sure that making the documentation 'right' is the correct fix.
This becomes a compatibility problem. If we are to 'hand off' configuration to users, we actually need this stuff to work. So the real fix is to implement the missing features.
Intersitingly it doesn't quite work all that well with sr_sender as well.
As an example I tried the following
filename TIME
directory /home/sarra/senderdir/
accept .*
And there was a file called 'TESTFILE' which didn't get renamed with a timestamp.
Looking in the code for sr_config
elif spec == 'TIME':
if destFileName != filename :
timeSuffix = ':' + time.strftime("%Y%m%d%H%M%S", time.gmtime())
....
Seems to imply that the time field only gets set if the file had been previously modified earlier. For instance if i had the following configuration:
filename WHATFN:TIME
directory /home/sarra/senderdir/
accept .*
And sent through
TESTFILE:SOME:EXTENSION
The extension gets removed and the timestamp gets added as expected.
those options aren't supposed to be used on their own. As the variable names imply they are suffixes... TIME all on it's own is a weird case (never used.) You are supposed to use
WHATFN, HEADFN, or NONE
for the initial part of the file name... so something like NONE:TIME
is perhaps closer to what you want?
776b41a5513c4fac935cdc1aaedca9743464ef8b - now they are all implemented.
try a daily-build to see.