Yes the files are creating and there are the same as original
Maybe I have something wrong with my RC config but $_SESSION['username'] have only name before '@' (not 'test@exemple.com' but 'test'), so I have added some lines in cmd_learn.php and change the command to /usr/local/bin/sa-learn --username=%l --configpath=/usr/local/etc/mail/spamassassin/ --spam %f
but it doesn't work either.
29 $command = str_replace('%u', $_SESSION['username'], $command);
30
31 if (strpos($_SESSION['username'], '@') !== false) {
32 $parts = explode("@", $_SESSION['username'], 2);
33
34 $command = str_replace(array('%l', '%d'), array($parts[0], $parts[1]), $command);
35 }
36 + else {
37 + $command = str_replace('%l', $_SESSION['username'], $command);
38 + }