[Asterisk-Users] Patch to fix vmail.cgi forwarding problem

Bisker, Scott (7805) sbisker at harvardgrp.com
Wed Dec 17 13:14:16 MST 2003


Hello All,

Here is a patch that fixes the problem when forwarding messages with vmail.cgi.  Bug submitted with patch on bugs.digium.com.

-sb



--- /usr/src/asterisk/vmail.cgi.orig	2003-12-17 14:21:47.000000000 -0500
+++ /usr/src/asterisk/vmail.cgi	2003-12-17 15:07:36.000000000 -0500
@@ -672,7 +672,7 @@
 
 sub message_copy()
 {
-	my ($mbox, $oldfolder, $old, $newmbox, $new) = @_;
+	my ($mbox, $newmbox, $oldfolder, $old, $new) = @_;
 	my $oldfile, $newfile;
 	return if ($mbox eq $newmbox);
 	
@@ -788,7 +788,7 @@
 #		print header;
 		foreach $msg (@msgs) {
 #			print "Forwarding $msg from $mbox to $newmbox<BR>\n";
-			&message_copy($context, $mbox, $folder, $msg, $newmbox, sprintf "%04d", $msgcount);
+			&message_copy($mbox, $newmbox, $folder, $msg, sprintf "%04d", $msgcount);
 			$msgcount++;
 		}
 		$txt = "Forwarded messages " . join(', ', @msgs) . "to $newmbox";



More information about the asterisk-users mailing list