| This plugin forwards the mail via SMTP to a specified server, rather
| than delivering the email locally.
| 
| It takes one required parameter, the IP address or hostname to forward
| to.
| 
|   queue/smtp-forward 10.2.2.2
| 

This patch adds support for . characters in accordance with the above specification.

*** smtp-forward.~1.1.~ Mon Jun  9 07:06:41 2003
--- smtp-forward        Wed Jul 23 14:37:02 2003
***************
*** 26,32 ****
    $self->register_hook("queue", "queue_handler");
  
    if (@args > 0) {
!     if ($args[0] =~ /^([\w_-]+)$/) {
        $self->{_smtp_server} = $1;
      }
      else {
--- 26,32 ----
    $self->register_hook("queue", "queue_handler");
  
    if (@args > 0) {
!     if ($args[0] =~ /^([.\w_-]+)$/) {
        $self->{_smtp_server} = $1;
      }
      else {

Reply via email to