Skip to content

Commit

Permalink
Merge pull request #1690 from ikedas/issue-1688 by ikedas
Browse files Browse the repository at this point in the history
Improve diagnostic messages in the DSNs generated by Sympa
  • Loading branch information
ikedas committed Aug 25, 2024
2 parents 100d6cd + d37baf7 commit ef6bcb0
Showing 1 changed file with 75 additions and 36 deletions.
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

0 comments on commit ef6bcb0

Please sign in to comment.