summaryrefslogtreecommitdiff
path: root/fml/lib/FML
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-05-04 06:45:58 +0000
committerfukachan <fukachan>2006-05-04 06:45:58 +0000
commit8d956355349f040dc199a0cb6caa994505791dc2 (patch)
treeed6d4d7be53bb621a2901b636916ecf7ed7fc586 /fml/lib/FML
parent217c0125d67c6b856eb989ed54fb674c6ad7cda0 (diff)
downloadfml8-8d956355349f040dc199a0cb6caa994505791dc2.tar.gz
fml8-8d956355349f040dc199a0cb6caa994505791dc2.tar.bz2
fml8-8d956355349f040dc199a0cb6caa994505791dc2.zip
send back welcome file in subscription when running under CGI/MTA process.
Diffstat (limited to 'fml/lib/FML')
-rw-r--r--fml/lib/FML/Command/Admin/subscribe.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/Admin/subscribe.pm b/fml/lib/FML/Command/Admin/subscribe.pm
index 2583ea15..201b22fa 100644
--- a/fml/lib/FML/Command/Admin/subscribe.pm
+++ b/fml/lib/FML/Command/Admin/subscribe.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: subscribe.pm,v 1.35 2006/03/04 13:48:29 fukachan Exp $
+# $FML: subscribe.pm,v 1.36 2006/03/05 08:08:37 fukachan Exp $
#
package FML::Command::Admin::subscribe;
@@ -124,6 +124,15 @@ sub process
if ($r = $@) {
croak($r);
}
+
+ # send back a file.
+ if ($curproc->is_cgi_process() || $curproc->is_under_mta_process()) {
+ use FML::Command::SendFile;
+ push(@ISA, qw(FML::Command::SendFile));
+ $command_context->{ _recipient } = $address;
+ $self->send_user_xxx_message($curproc, $command_context, "welcome");
+ delete $command_context->{ _recipient };
+ }
}