NAME

ecs_scan_mail - ECS email processing daemon

SYNOPSIS

ecs_scan_mail

ecs_scan_mail --once

ecs_scan_mail --nodaemon

DESCRIPTION

This program monitors incoming ECS email. It receives messages from the configured POP3 or IMAP mailbox and calls appropriate functions to trigger processing of ECS meta-messages and regular messages.

OPTIONS

--config ecs_config_file

Specify the location of the ECS configuration file. By default, the program looks for the file specified by the ECS_CONFIG_FILE environment variable; if that environment variable is not set, it looks for a file named "ecs.cfg" in the current directory.

--daemon

Spawn background process to continuously monitor remote node communication status. This option is enabled by default.

--nodaemon

Do not spawn a background process. Instead, use the foreground process process to continuously monitor remote node communication status.

--once

Perform one processing iteration and then exit. Implies --nodaemon.

-help

Show embedded POD documentation

RETURN VALUE

Returns a non-zero exit code if a configuration error is detected.

BUGS

Possibly.

NOTES

To safely terminate this program, please use "kill -15" (not "kill -9").

SEE ALSO

EMDIS::ECS, ecs_chk_com, ecs_proc_meta, ecs_proc_msg, ecs_setup, ecstool

AUTHOR

Joel Schneider <jschneid@nmdp.org>

COPYRIGHT AND LICENSE

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Copyright (C) 2002-2020 National Marrow Donor Program. All rights reserved.

See LICENSE file for license details.

HISTORY

ECS, the EMDIS Communication System, was originally designed and implemented by the ZKRD (http://www.zkrd.de/). This Perl implementation of ECS was developed by the National Marrow Donor Program (http://www.marrow.org/).

2004-03-12 Canadian Blood Services - Tony Wai Added MS Windows support for Windows 2000 and Windows XP Added "DIRECTORY" inBox Protocol. This can interface with any mail system that can output the new messages to text files.

2007-08-01 ZKRD - emdisadm@zkrd.de Added to_XX and from_XX directory support. Added new environment variable ECS_CONFIG_FILE -> ecs.cfg. For details please refer to README file. Added new error report management. All 'email to admin' statements are removed. In relation to the error code ECS.pm will send an email to admin or not.