projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/adefaria/clearscm
[clearscm.git]
/
maps
/
bin
/
MAPSDeliver
diff --git
a/maps/bin/MAPSDeliver
b/maps/bin/MAPSDeliver
index
ab6a2ff
..
38596c0
100755
(executable)
--- a/
maps/bin/MAPSDeliver
+++ b/
maps/bin/MAPSDeliver
@@
-21,6
+21,7
@@
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use FindBin;
use lib "$FindBin::Bin/../lib";
+use lib "$FindBin::Bin/../../lib";
use MAPSFile;
use MAPS;
use MAPSFile;
use MAPS;
@@
-60,14
+61,17
@@
my ($userid, $msgfile) = @ARGV;
die 'User id not specified' unless $userid;
die 'Msgfile not specified' unless $msgfile;
die 'User id not specified' unless $userid;
die 'Msgfile not specified' unless $msgfile;
-my $err = DeliverMail($userid, $msgfile);
+my $err
msg
= DeliverMail($userid, $msgfile);
-if ($err) {
- OpenDB('maps', 'spam');
+if ($err
msg
) {
+
#
OpenDB('maps', 'spam');
SetContext($userid);
SetContext($userid);
- Error($err);
+ Error(
+ userid => $userid,
+ message => $errmsg,
+ );
exit 1;
} # if
exit 1;
} # if