Set file when writing a message to a maildir
authorJamie Cameron <jcameron@webmin.com>
Thu, 18 Dec 2008 01:15:54 +0000 (01:15 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 18 Dec 2008 01:15:54 +0000 (01:15 +0000)
mailboxes/boxes-lib.pl

index 981791f..0d68187 100644 (file)
@@ -1973,6 +1973,7 @@ local $now = time();
 $_[0]->{'id'} = &unique_maildir_filename($_[1]);
 $mf = "$_[1]/$_[0]->{'id'}";
 &send_mail($_[0], $mf, $_[2], 1);
+$_[0]->{'file'} = $mf;
 
 # Set ownership of the new message file to match the directory
 local @st = stat($_[1]);