Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve diagnostic messages in the DSNs generated by Sympa #1690

Merged
merged 3 commits into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 75 additions & 36 deletions src/lib/Sympa.pm
Original file line number Diff line number Diff line change
Expand Up @@ -249,42 +249,81 @@ sub _get_search_path {
# They should be modified to fit in Sympa.
my %diag_messages = (
'default' => 'Other undefined Status',
# success
'2.1.5' => 'Destination address valid',
# forwarded to moderators
'2.3.0' => 'Other or undefined mail system status',
# no available family, dynamic list creation failed, etc.
'4.2.1' => 'Mailbox disabled, not accepting messages',
# no subscribers in dynamic list
'4.2.4' => 'Mailing list expansion problem',
# held for moderation
'4.3.0' => 'Other or undefined mail system status',
# unknown list address
'5.1.1' => 'Bad destination mailbox address',
# unknown robot
'5.1.2' => 'Bad destination system address',
# too large
'5.2.3' => 'Message length exceeds administrative limit',
# no owners defined in list at all, no listmasters defined at all
'5.2.4' => 'Mailing list expansion problem',
# could not store message into spool or mailer
'5.3.0' => 'Other or undefined mail system status',
# misconfigured family list
'5.3.5' => 'System incorrectly configured',
# loop detected
'5.4.6' => 'Routing loop detected',
# message contains commands
'5.6.0' => 'Other or undefined media error',
# no command found in message
'5.6.1' => 'Media not supported',
# failed to personalize (personalization_feature)
'5.6.5' => 'Conversion Failed',
# virus found
'5.7.0' => 'Other or undefined security status',
# message is not authorized and is rejected
'5.7.1' => 'Delivery not authorized, message refused',
# failed to re-encrypt decrypted message
'5.7.5' => 'Cryptographic failure',

# Destination address valid
# [Sympa] held message was distributed by moderator
'2.1.5' => 'Message was successfully delivered',

# Other or undefined mail system status
# [Sympa] forwarded to moderators
'2.3.0' => 'Message has been forwarded to the list moderator(s)',

# Mailbox disabled, not accepting messages
# [Sympa] no available family, dynamic list creation failed, etc.
'4.2.1' => 'List could not be created',

# Mailing list expansion problem
# [Sympa] no subscribers in dynamic list
'4.2.4' => 'List does not exist',

# Other or undefined mail system status
# [Sympa] held for moderation
# Currently 2.3.0 is used instead. See GH issue #1699.
'4.3.0' => 'Message has been forwarded to the list moderator(s)',

# Bad destination mailbox address
# [Sympa] unknown list in existing mail domain
'5.1.1' => 'List does not exist',

# Bad destination system address
# [Sympa] unknown mail domain
'5.1.2' => 'List does not exist',

# Message length exceeds administrative limit
'5.2.3' =>
'Message could not be sent because its size was over the maximum size allowed on the list',

# Mailing list expansion problem
# [Sympa] no owners defined in list at all, no listmasters defined at all
'5.2.4' =>
'Impossible to forward message because of an internal server error',

# Other or undefined mail system status
# [Sympa] could not store message into spool or mailer
'5.3.0' =>
'Impossible to distribute message because of an internal server error',

# System incorrectly configured
# [Sympa] misconfigured family list
'5.3.5' => 'List could not be created',

# Routing loop detected
# [Sympa] loop detected FIXME:Not really used.
'5.4.6' => 'Loop detected',

# Other or undefined media error
# [Sympa] message contains commands
'5.6.0' => 'Message contains a line that can be interpreted as a command',

# Media not supported
# [Sympa] no command found in message
'5.6.1' => 'No command found in message',

# Conversion Failed
# [Sympa] failed to personalize the message
'5.6.5' => 'Message cannot be personalized',

# Other or undefined security status
# [Sympa] virus found
'5.7.0' => 'A virus in your mail',

# Delivery not authorized, message refused
# [Sympa] message is not authorized and is rejected
'5.7.1' => 'You are not allowed to send this message',

# Cryptographic failure
# [Sympa] failed to re-encrypt decrypted message FIXME:Not yet used
'5.7.5' => 'Failed to encrypt message',
);

# Old names: tools::send_dsn(), Sympa::ConfigurableObject::send_dsn().
Expand Down
Loading