Rev 1082 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1082 | Rev 1209 | ||
---|---|---|---|
Line 380... | Line 380... | ||
380 | undef, |
380 | undef, |
381 | { alias => "$params{'address'}\@$params{'domain'}", |
381 | { alias => "$params{'address'}\@$params{'domain'}", |
382 | rcpt => $rcpt, comment => $params{"comment"} } ); |
382 | rcpt => $rcpt, comment => $params{"comment"} } ); |
383 | return if($res_action eq "error"); |
383 | return if($res_action eq "error"); |
384 | } |
384 | } |
- | 385 | # FIXME add the loopback destination? handle "a@domain.com => a@domain.com" |
|
- | 386 | # as "a@domain.com => _something_@domain.com + _something_@domain.com => _something_@domain.com" ? |
|
385 | 387 | ||
386 | if($del_action eq 'delete') { |
388 | if($del_action eq 'delete') { |
387 | set_request_code($request, $code_ok, "Mail alias modified"); |
389 | set_request_code($request, $code_ok, "Mail alias modified"); |
388 | } |
390 | } |
389 | elsif($del_action eq 'not found') { |
391 | elsif($del_action eq 'not found') { |
Line 635... | Line 637... | ||
635 | 637 | ||
636 | $res = $insert_sth->execute; |
638 | $res = $insert_sth->execute; |
637 | $res_action = 'insert'; |
639 | $res_action = 'insert'; |
638 | } |
640 | } |
639 | }; |
641 | }; |
- | 642 | # FIXME handle exceptions? |
|
640 | 643 | ||
641 | if(db_close($request, $dbh, $@)) { |
644 | if(db_close($request, $dbh, $@)) { |
642 | return $res_action; |
645 | return $res_action; |
643 | } |
646 | } |
644 | else { |
647 | else { |