pax_global_header 0000666 0000000 0000000 00000000064 15023031135 0014503 g ustar 00root root 0000000 0000000 52 comment=10b128b02456ada94242d9944f6048590c71c6e6
mlmmj/ 0000775 0000000 0000000 00000000000 15023031135 0012163 5 ustar 00root root 0000000 0000000 mlmmj/.builds/ 0000775 0000000 0000000 00000000000 15023031135 0013523 5 ustar 00root root 0000000 0000000 mlmmj/.builds/alpine.yml 0000664 0000000 0000000 00000000564 15023031135 0015523 0 ustar 00root root 0000000 0000000 image: alpine/latest
packages:
- musl-dev
- gcc
- autoconf
- automake
- make
- pkgconf
- kyua
- m4
- atf-dev
sources:
- https://codeberg.org/mlmmj/mlmmj
tasks:
- configure: |
cd mlmmj
autoreconf -if
./configure
- build: |
cd mlmmj
make
- test: |
cd mlmmj
make check || { kyua report --verbose; exit 1 ;}
mlmmj/.builds/debian-unstable.yml 0000664 0000000 0000000 00000000610 15023031135 0017300 0 ustar 00root root 0000000 0000000 image: debian/unstable
packages:
- build-essential
- kyua
- atf-sh
- libatf-dev
- autotools-dev
- pkg-config
- autoconf
- automake
sources:
- https://codeberg.org/mlmmj/mlmmj
tasks:
- configure: |
cd mlmmj
autoreconf -if
./configure
- build: |
cd mlmmj
make
- test: |
cd mlmmj
make check || { kyua report --verbose; exit 1 ;}
mlmmj/.builds/debian.yml 0000664 0000000 0000000 00000000607 15023031135 0015473 0 ustar 00root root 0000000 0000000 image: debian/testing
packages:
- build-essential
- kyua
- atf-sh
- libatf-dev
- autotools-dev
- pkg-config
- autoconf
- automake
sources:
- https://codeberg.org/mlmmj/mlmmj
tasks:
- configure: |
cd mlmmj
autoreconf -if
./configure
- build: |
cd mlmmj
make
- test: |
cd mlmmj
make check || { kyua report --verbose; exit 1 ;}
mlmmj/.builds/freebsd.yml 0000664 0000000 0000000 00000000540 15023031135 0015657 0 ustar 00root root 0000000 0000000 image: freebsd/latest
packages:
- kyua
- autoconf-switch
- autoconf
- automake
- atf
- pkgconf
sources:
- https://codeberg.org/mlmmj/mlmmj
tasks:
- configure: |
cd mlmmj
autoreconf -fi
./configure
- build: |
cd mlmmj
make
- test: |
cd mlmmj
make check || { kyua report --verbose; exit 1 ;}
mlmmj/.gitignore 0000664 0000000 0000000 00000001057 15023031135 0014156 0 ustar 00root root 0000000 0000000 *~
*.o
*.a
*.la
*.lo
*.exe
.libs
.deps
.dirstamp
Makefile
Makefile.in
/aclocal.m4
/autom4te.cache/
/build-aux/
/config.h
/config.h.in
/config.log
/config.status
/configure
/kyua.conf
/src/mlmmj-bounce
/src/mlmmj-list
/src/mlmmj-maintd
/src/mlmmj-make-ml
/src/mlmmj-process
/src/mlmmj-receive
/src/mlmmj-send
/src/mlmmj-sub
/src/mlmmj-unsub
/stamp-h1
/tests/fakesmtpd
/tests/functional-tests
/tests/mlmmj
/tests/mlmmj-bounce
/tests/mlmmj-list
/tests/mlmmj-maintd
/tests/mlmmj-process
/tests/mlmmj-receive
/tests/mlmmj-send
/tests/mlmmj-sub
/tests/test_env.sh
mlmmj/.hgignore 0000664 0000000 0000000 00000001205 15023031135 0013764 0 ustar 00root root 0000000 0000000 # Use regular expressions for following lines
syntax: regexp
# Files generated by autoconf -if
^depcomp$
^missing$
^install-sh$
^aclocal.m4$
^autom4te.cache$
^configure$
(^|/)Makefile.in$
^config.h.in$
# Files generated by ./configure
^config.log$
^config.status$
(^|/)Makefile$
^config.h$
^stamp-h1$
.*\.Po$
^src/mlmmj-make-ml$
# Files generated by make
.*\.o$
^src/mlmmj-bounce$
^src/mlmmj-list$
^src/mlmmj-maintd$
^src/mlmmj-process$
^src/mlmmj-receive$
^src/mlmmj-send$
^src/mlmmj-sub$
^src/mlmmj-unsub$
^contrib/receivestrip/mlmmj_src/
# Other generated files
(^|/)TAGS$
# Vim swap files
(^|/)\..*\.swp$
# Mac files
(^|/)\.DS_Store$
mlmmj/.hgtags 0000664 0000000 0000000 00000002703 15023031135 0013443 0 ustar 00root root 0000000 0000000 2b70ab44683228abd309948de8c38883961341e3 RELEASE_1_2_15_RC1
4efe830e57dda4ea27caef1ea9dda1834da35805 start
71c6e16a30c2f19f88f26998c312b1dfe8be5d94 RELEASE_1_2_0
71c6e16a30c2f19f88f26998c312b1dfe8be5d94 help
75c4867e3622a4209a67f605ae9dce269c764c92 RELEASE_1_2_13_RC1
95ca5e4104df87d1ae2e897c2056bf211117f9b3 RELEASE_1_2_14_RC1
9b32890a008ecb0ec582c11b0193a7498cd21372 RELEASE_1_2_16
9de854a13e8b5042d90f948ca33299e588a1b75d RELEASE_1_2_12_RC4
b7cad7a582379a8cf608a8e951cadeb0ecc8a031 RELEASE_1_2_13
b9505eccf55520d7c6dace3e91825e921ab88536 RELEASE_1_1_0
dae40c9e616d75dfac7de6d742723848c9de3da0 MLMMJ_1_2_12_RC1
ee89b545818a0b6c785ee3f79f43f848834f674b RELEASE_1_2_12_RC2
fa4e4c0220a2232fc697083789bb08615a02896c RELEASE_1_0_0
19531ac31a24eb93bbdc04edfed86353d9b40e86 RELEASE_1_2_17
df592ffbe26466d2457f5fd3882a39a93425b0b8 RELEASE_1_2_14
dae40c9e616d75dfac7de6d742723848c9de3da0 MLMMJ_1_2_12_RC1
0000000000000000000000000000000000000000 MLMMJ_1_2_12_RC1
dae40c9e616d75dfac7de6d742723848c9de3da0 RELEASE_1_2_12_RC1
f1155f6b28123bf64dbf34d57c185b94008a6c4b RELEASE_1_2_12
a0e7464ec2b32c6ef205ebf6975ed01189d7127a RELEASE_1_2_18a1
4c3c8b1845767177845d477ac708fd464f9c2542 RELEASE_1_2_18rc1
0f90ad70a59f784540bb8cd281f370bcbb4d24d5 RELEASE_1_2_18_0
3f4aee02898be84c0a7c6780aaac39c7ad5f4ff0 RELEASE_1_2_19b1
b202ed626645cc909956d6b80fd5bcfdf6497367 RELEASE_1_2_19_0
31c88127180c873d922fe861dcdbb8f5950c0379 RELEASE_1_3_0a1
570dd6d4942b7eaddaf8525401f97ffbda649ab1 RELEASE_1_3_0
mlmmj/AUTHORS 0000664 0000000 0000000 00000000170 15023031135 0013231 0 ustar 00root root 0000000 0000000 Mads Martin Joergensen
Morten K. Poulsen
Ben Schmidt
mlmmj/COPYING 0000664 0000000 0000000 00000002170 15023031135 0013216 0 ustar 00root root 0000000 0000000 The MIT License
Copyright (c) 2002, 2003, 2004 Mads Martin Joergensen
2004 Morten K. Poulsen
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
mlmmj/ChangeLog 0000664 0000000 0000000 00000075737 15023031135 0013760 0 ustar 00root root 0000000 0000000 1.6.0
o Remove blanks in customheaders prefix and skip empty lines
o $bouncenumbers$ in probe are now expended to number, messageid when
possible
o customheaeders allow now substitution of $posteraddr$ (Erwan Mas)
o Fix portability issue on Hurd (Erwan Mas)
1.5.2
o Plenty of portability fixes
1.5.1
o Fix tests on system with a running smtp server on port 25
o Fix portability issue on arm64
o Fix tests where some struct were not initialised properly
1.5.0
o Add option to copy From: to Reply-To: (Graham Leggett)
o remove contrib/pymime
o remove contrib/foot_filter
o granular access rejection message
o fix duplicated bounce recording
o Remove support for all deprecated syntax in templates
1.4.7
o fix duplicate queued moderation notification email
o fix build on macOS
1.4.6
o mlmmj-make-ml: fix on OpenBSD
o Fix another regression regarding RFC 5321
1.4.5
o Improve error messages in case of smtp failure
o Regression: fix mlmmj-send -r
o Modernize autotools usage
1.4.4
o fix regression which results in probe not containing the list
of bounced emails
1.4.3
o fix regression which results in loosing track of probes
1.4.2
o fix regression in lastdigest parser
1.4.1
o fix regression in incremental updates
1.4.0-rc3
o fix unattended usage of mlmmj-makeml
o fix regression regarding RFC 5321
o fix subscription validation
1.4.0-rc2
o fix notifymod regression
o fix VERP regression
1.4.0-rc1
o moderation cookie for subscription is now under the sub directory
moderation/subscribe
o mlmmj-make-ml: now supports non interactive mailing list creation
o listtext: reintegrate the tree (not a submodule anymore)
o lots of code deduplication
1.4.0-b1
o manpage converted from man(7) to mdoc(7)
o Fix a potential crash with mail without separator between headers and body
o mlmmj-send: -l 6 has been removed
o mlmmj-send: accept file descriptor number as -s argument
o mlmmj-send: accept file descriptor number as -m argument
o cleanup .omit files leftover if moderated emails are rejected and notmetoo
is set.
1.4.0-a2
o Fix a crash with forged probe emails
o mlmmj-send does not need anymore absolute path
o Use copy_file_range if available
o Use arc4random_uniform if available
o Logs are not limited anymore to 256 characters per lines
1.4.0-a1
o Add a test suite
o Modernize code (dprintf, posix_spawn, asprintf, getline, daemon, ...)
o Supporting passing email to a mta over ipv6
o Fix relaying in IPV6-only systems
o Fix decode quoted printable subject
o Fix parsing RFC1891
o Fix a crash if no owner has been defined
o Validate ranges of all integers conversion
o New 'send' tunable to allow email passthrough
o Add support for 'X-Original-From'
o Reduce subscription confirmation address length to fit RFC 5321
o Use arc4random is available
o Reduce memory manipulation
o When unsubscribing bouncers, keep the bounce file if something went
wrong and report in syslog what went wrong
o Remove the -b option from mlmmj-unsub, it is not used anymore
1.3.0
o Czech translation (Jiří Šolc)
o Don't use address extensions from non-list addresses
o Fix some RFC 5321 compliance issues (Martijn Grendelman)
o Add smtphelo tunable (Andreas Schulze)
o Implement modonlypost
1.2.19.0
o Add README.footers and footer-related resources
o Support ESMTP so OpenSMTPD uses 8 bits (Paul Fariello)
o Use iconv to convert unknown character sets
o Handle unfolded header lines better
o Add a tunable for moderation request lifetime (Timo Boettcher)
o Ensure mlmmj-send always honours tunables (e.g. relayhost)
o Fix reason in denial messages for mails without the list in To: or CC:
1.2.18.1
o Stop mlmmj-maintd deleting list posts while they are being sent
o Fix +list from crashing Mlmmj
o Fix bug that made double subscription possible
1.2.18.0
o New list texts (Ben Schmidt, Xuacu Saturio, Nino Novak, Sophie Gautier,
Epaminondas Diamantopoulos, Valter Mura, Sérgio Marques, Milos Sramek, Dean
Lee)
o Add %nowrap% to facilitate more complex formatting
o Add subscription ability to php-admin
o Add ability to except characters from width reckoning (and be zero-width)
to facilitate wrapping even more languages well
o Add different width-reckoning modes to facilitate wrapping many languages
o Add different wrapping modes to facilitate wrapping many languages
o Fix backslash escaping mechanism so double backslash can't effectively
recurse and form part of another escape sequence, other non-unicode escapes
aren't ignored, and first lines of included files don't 'escape' escaping.
o Add ability to subscribe to both (normal and digest).
o Fix access logic so subonlypost doesn't override a send access rule.
o Make +unsubscribe remove the requester from all versions of the list.
o Make mlmmj-unsub default to removing the requester from all versions of the
list.
o Make mlmmj-sub and +subscribe[-digest|-nomail] switch existing
subscriptions.
o Add a switch to bypass notifying the owner on subscribe/unsubscribe.
o Introduce \ to indicate non-breakable space, \= to mark other
locations where breaks should not occur, and \/ to mark locations where
breaks can occur
o Add rejection of posts and obstruction of subscriptions.
o Avoid bogus error messages when logging that the list address has been
found in To: or CC: headers.
o Escape dashes in man pages.
o Remove 'bashisms' from mlmmj-make-ml script (patch from Dan forwarded by
Thomas Goirand).
o Automatically skip blank lines followed by unsatisfied conditionals with no
else part in list texts
o Automatically skip lines with only whitespace and directives in list texts
o Add support for conditionals in list texts
o Add %wrap% and %wrap W% formatting directives
o Add %digestthreads%, %gatekeepers%, %listsubs%, %digestsubs%, %nomailsubs%,
%moderators% and %bouncenumbers%
o Deprecate various list text substitutions such as $newsub$, $oldsub$,
$moderateaddr$
o Add $permitaddr$ and $releaseaddr$ substitutions
o Make $subject$, $posteraddr$ and $subaddr$ more widely available
o Fix potential crash when mail to the owner arrives with no From: header
o Add %originalmail% and %originalmail N% directives
o Allow more characters in control and text filenames for substitutions
o Add %%, %^%, %comment%, %control C% and %text T% formatting directives
o Improve algorithm for list text substitutions
o Add $text T$ substitution
o Add $$ substitution
o Allow list texts to include real UTF-8 characters, as documented
o Fix bug where the normal listtext would be sent when unsubscribing from the
nomail version of the list
o New listtext naming scheme
o Avoid trailing whitespace in MAIL FROM line (Lukas Fleischer)
o Better end-of-line handling and error reporting in php-admin (Franky Van
Liedekerke)
o Avoid losing mail when connecting to relayhost fails
o Improved and more consistent closing of SMTP sessions in error cases
o Check the relayhost gives a reply before reading it to avoid a crash
o Avoid checking addresses multiple times for notmetoo and make it work even
when delivering messages individually
o Fixed small memory leaks when SMTP errors occur
o Improved error logging when requeuing
o Fix php-admin to work when topdir contains a symlink (e.g. on Mac)
o Better techniques for locating support files in php-admin -- existing
installations will need to have their conf/config.php altered to set
the variable $confdir
o Add $control C$ substitution
o Fix theoretically possible memory corruption by chomp()
o Remove .sh from mlmmj-make-ml.sh; symlink original name
o Correct spelling of 'receive' and 'voodoo' throughout the code and
documentation, making mlmmj-recieve a symlink to mlmmj-receive (Chris Webb)
o Richer MIME list texts with inline messages
o Add $random0$ through $random5$ substitutions
o Add a $subject$ substitution for list texts
o Allow arbitrary headers in list texts
o Ensure digest listtext is always closed
o Fix Content-Transfer-Encoding: header for digests and list texts
o Fixed a bug that could cause a crash if $posteraddr$ appeared in the
maxmailsize listtext
o Documented listtexts
o Makes the random strings produced always the same length rather than
smaller random numbers producing shorter strings which could be
problematic
o Make random number generation more efficient by only seeding the
generator once
o Added feature to notify users when their posts are moderated
o Fixed documentation regarding silent subscription, and added
ability to silently subscribe
o Added notmetoo feature where posts are not mirrored to their senders
o Check return status in mlmmj-perl-admin when adding subscribers (Florian
Streibelt, Bitmand)
o Better validation of input in php-admin (Thomas Goirand)
o Fixed security bug in mlmmj-php-admin (Florian Streibelt, Morten Shearman
Kirkegaard)
o Added README.postfix to distribution tarball
o Added "send" keyword to control/access handling (Ben Schmidt)
o Added contrib/amime-receive (Gerd v. Egidy)
o Fixed memory leak in substitute_one() (Ben Schmidt)
o Updated TUNABLES file (Ben Schmidt)
1.2.17
o Added ifmodsendonlymodmoderate tunable
o Replaced class.FastTemplate.php with class.rFastTemplate.php in
contrib/web/php-admin (Christoph Thiel)
1.2.17-RC1
o Added information about digest and nomail to listhelp (Robin H. Johnson)
o Fixed bug in mlmmj-maintd which caused loss of archive files in some
requeue cases (Robin H. Johnson)
o Added README.postfix (Jeremy Hinegardner, Andreas Schneider)
o Added support for digest and nomail to +list (Christoph Wilke)
o Caseinsensitive string compare for owner addr when +list is invoked. Spotted
by Pavel Kolar.
o Added contrib/web/php-moderation (Thomas Goirand)
1.2.16
o Fixed injection in contrib/web/perl-user (Gerd von Egidy)
1.2.16-RC1
o Updated Dutch listtexts (Franky Van Liedekerke)
o Updated Italian listtexts (Fabio Busatto)
o Added Postfix pipe backend support (Niki Guldbrand)
o PHP admin interface bugfix (Niki Guldbrand)
o Added support for static bounce addresses (Thomas Jarosch)
o Added a sanity check in mlmmj-receive-strip (Chris Webb)
o Added miscellaneous sanity checks (Thomas Jarosch)
o Disabled digest mails when 'noarchive' is set (Thomas Jarosch)
o Added Russian listtexts (Nikolay Derkach)
o Fixed mmap()ing of zero-sized files (Robin H. Johnson)
o Fixed mlmmj-recieve [sic] for architectures where
sizeof(int) and sizeof(char *) differ
o Added support for the 'originalmail' keyword (Sascha Sommer)
o Merged various changes to the web interface from Franky Van Liedekerke
1.2.15-RC1
o Added --enable-recieve-strip configure option (Ansgar Burchardt)
o Added unicode support to listtexts
o Fixed build outside the source directory (Ansgar Burchardt)
o Moved English listtexts and install all languages (Ansgar Burchardt)
o Fixed missing exit()s in case of failed execl() calls (Ansgar Burchardt)
o Changed Message-ID headers to include FQDN (Ansgar Burchardt)
o Added support for 'discard' keyword in access rules (Sascha Sommer)
1.2.14
o Updated Danish listtexts (Jesper Lund)
1.2.14-RC1
o Fixed a small memory leak in log_oper() log rotation
o Fixed address parsing for cases with quotes and multiple addresses
o Added contrib/recievestrip/ MIME processor (Sascha Sommer)
o Fixed digest multipart boundary (Thanks to Ulrich Mueller)
o Added support for mail size limit (Christoph Wilke)
o Log the result of access rules in the operation log (Henne Vogelsang)
o Ignore empty lines in control files
1.2.13
o Added Dutch listtexts (Raymond den Ouden)
1.2.13-RC1
o Added 'nonomailsub' tunable which will disable nomail subscriptions
to a list (Henne Vogelsang)
o Added 'nodigestsub' tunable which will disable subscription to the
digest version of a list (Henne Vogelsang)
o Added list FAQ feature (Henne Vogelsang)
o Added support for default list text directory (Henne Vogelsang)
o Fixed a Bourne Shell issue in mlmmj-make-ml.sh (Magnus Naeslund)
o Fixed hostnamestr() for hosts that can't find themselves using
gethostbyname() (Benoit Dolez)
o Add 'modnonsubposts' tunable that when set will moderate all posts
from non subscribers
o Fixed requeue for lists with noarchive enabled
1.2.12
o Fixed memory corruption in cleanquotedp()
o Fixed bug in gethdrline() introduced in 1.2.12-RC3
1.2.12-RC4
o Fixed memory leak in checkwait_smtpreply()
o Changed mlmmj-process to look at environment variable DEFAULT instead
of EXT for qmail (Fabio Busatto)
o Added Frensh listtext unsub-confirm-digest (Christophe Gallienne)
1.2.12-RC3
o Fixed EOF handling in checkwait_smtpreply()
o Fixed header unfolding in gethdrline()
1.2.12-RC2
o Changed German listtexts (Stefan Reinauer, Christian Lackas)
o Changed English listtexts (Stefan Reinauer)
o Changed chomp() to also remove CR from CRLF sequences
1.2.12-RC1
o Update web interface with new tunables
o Add support for qmail (envelope from address in environment variable)
o Add digest text part
o Add subscriber moderation
o Fix default subject in administrative mails
o Add French listtexts (Christophe Gallienne)
o Add search and pagination functionality to the perl-admin web interface
o Only add To: header when sending out actual list mail
o Close stdin, stdout and stderr in the child of mlmmj-receive after
forking. This is neccesary on FreeBSD.
o No need to check for subscribers in 0-sized files
o Make sure chomp works with empty strings (Frank Denis)
1.2.11
o Previous fix to find_email_adr() was incomplete, so in some
cases mails would get rejected due to the To: or Cc: rule. Thanks
again lcars for finding this
o Sanity check to make sure there's a '@' in listaddress
1.2.10
o Fix nasty bug in the new 1.2.9 find_email_adr() making comma in
quoted text in From: being discarded as invalid
o Simply make all addresses lowercase before doing anything else
wrt. sub/unsub and bounce
o Add czech listtexts (Lukas Hluze)
o Make non list emails (subconf, moderation etc.) also honor relayhost
and smtpport
o Add tunable to be able to close for subscription only (closedlistsub)
1.2.9
o Make find_email_adr() more robust (BSD, Neale Pickett)
o Make the email address check case-insensitive. (Neale Pickett)
o Add spanish listtext translations (Enrique Matías Sánchez)
o Make recipient delimiter configurable per list. SIC! (Joel Aelwyn)
o Added italian list texts translation. A thanks to Andrea Barisani, he has
checked italian texts. (Filippo F. Fadda)
o Use is_subbed_in instead of find_subscriber when subscribing people
(Christian Laursen)
o Make it possible to confirm subscription even though it's a closedlist.
It makes sense to be able to confirm a request submitted by the sysadmin
on the commandline
o Add 'subonlyget' tunable which makes +get-N only work for subscribers
1.2.8
o Don't closedir() before done (GOOD spotting Christian Laursen)
o Make sure the resend of queue files will not loop indefinately
o Make Date: header RFC2822 compliant (Jakob Hirsch)
o Add -s switch to mlmmj-{,un}sub to control whether or not to send a mail
telling about already subscribed, or not subscribed when trying to
subscribe or unsubscribe (Christian Laursen)
1.2.7
o Remove old superflous cruft in the smtpreply reader function, making
mlmmj-send not segfault in rare cases when SIGTERM was sent
o Another printf had snuck in there printing a free'ed variable
1.2.6.1
o Make sure the fromaddr is correct on sub-subscribed mails
o Don't add an empty subject if there was one present
1.2.6
o If prefix but no Subject: header is present, add one (Jakob Hirsch)
o Add notification mail when subbed people try to sub (Jakob Hirsch)
o Install SIGTERM handler in mlmmj-send to allow it to shut down gracefully
o Also remove mails when it's a bounce from a person not subbed
o Introduce read() wrapper (Stevens)
o Bouncing confirmation mails of sub or unsub should be cleaned from
the queue as well
o Normally mails which doesn't have exactly one From: emailaddress are
discarded but certain ISPs have bounce mails with no From: header, forcing
us to allow bounce mails with no From: to make sure they're caught
o In case of a succesful DSN parse, we werent deleting the mail, and thus
littering the queue
o When sending moderated mails, rename them so that they wont be moderated
again while sending
1.2.5
o Make listname+list send the list of regular subscribers to the owner who
requested it.
o Michael Fleming corrected some spelling / grammatical errors and made
occasional minor clarifications in the english list texts.
o Add README.sendmail from Andrea Barisani
o Add README.exim4 from Jakob Hirsch
o Skip addresses without a @ when sending
o Set SO_KEEPALIVE for our connection socket
1.2.4
o Spend some time making valgrind completely happy
o Unlink totally harmless .lock files in subscribers dir.
o Make it possible to specify more than one listaddress in
LISTDIR/control/listaddress. The first one is the "real" one.
o Make the port to connect to controlable with LISTDIR/control/smtpport
1.2.3
o Only allow subscription of addresses with '@' in them
o Fix return value from unsubscribe function
o Add extra lock layer when accessing subscribers files
o In case of listname+bounces-INDEX use the DSN (RFC1891) report to extract
the bouncing address
o Fix usage of a zero sized control/verp string
o Make the Date: header RFC2822 conformant
1.2.2
o Make mlmmj-send work allthough no subscribers exist
o Bring webinterfaces up to speed (Christian Laursen)
o Fix moderate tag in access
o Make mlmmj-make-ml.sh default the listtext dir to where they were
installed in the system (Stephan Kulow)
1.2.1
o Introduce switches to turn off mails about posts being denied.
1.2.0
o Remove debug info printing
1.2.0-RC2
o Fix uninitialized strlist
o Add logging regular operation to mlmmj.operation.log
o Fix the sending loop by not sending the rest of the batch in every
iteration
1.2.0-RC1
o Add VERP support. http://cr.yp.to/proto/verp.txt
For Postfix: http://www.postfix.org/VERP_README.html, add "postfix" to
LISTDIR/control/verp
$smtpd_authorized_verp_clients should be the only one needed to touch
1.1.1-RC2
o It's ok to log to a symbolic link to somewhere else
o Add Message-Id: and Date: headers to mail from mlmmj
o Make log_oper() varargs capable (Rob Holland)
1.1.1-RC1
o Never discard anything from LISTDIR/queue/, let the admin be able to judge
o Grab the lock when sending a mail to make sure noone does bad things
to it underneath us
o Danish listtexts, thanks Jesper Lund
o Add control/noget to turn off listname+get-INDEX
o Rearrange envelope from to be listname+bounces-index-user=domain.tld@ instead
of listname+bounces-user=domain.tld-index@ to prepare for VERP support
1.1.0
o If mlmmj-recieve was invoked with a uid not root or not the owner of listdir
inform about the uid actually invoked with
o Add German listtexts (Hendrik Norman Vogelsang)
o Add hooks for installing listtexts into $(pkgdatadir) (Drake Wyrm)
o Add mlmmj-list manual page
o Make mlmmj-list be capable of listing owners, moderators too
o Perl interface updates
1.1.0-RC3
o Add 'moderate' tag for usage in control/access when one wants to have the
moderators moderate posts hitting this regexp. See README.access
o Add a To: header with the recipient's address when sending digests
1.1.0-RC2
o Strip envelope from before resending to +owner
o Make statctrl bail if it's not possible to stat()
o Add mlmmj-list binary to list the subcribers (-count) of a list
1.1.0-RC1
o Rewrite the way listtexts are managed, and in the process move the Subject:
out into the listtext file making mlmmj completely translateable
o Enhance perl webinterface - including group writable patch
o Add option control/nosubconfirm which makes it possible to subscribe
without confirmation by just sending the mail. USE WITH CARE!
o Make files discarded by maintd end in .by-maintd to make them distinct
o Fix off-by-one error in the function cleaning quoted printable chars
o Close the correct fd's in mlmmj-process
o Be consistent when using To: or Delivered-To:
o mlmmj-unsub should also change user id to the listdir owner
o Add support for not archiving the list by touching listdir/control/noarchive
o Add 'nomail' version of lists. Subscribers to the nomail version are
subscribed, but does not get any mail
o Don't talk about changing uid in mlmmj-sub when we're not really doing it
o Add sanity checks to disallow denial mails going to the list
o Add digest functionality
o Implement -d option for mlmmj-maintd to be able to supply it with a directory
containing several listdirs, where mlmmj-maintd then will run maintenance
o Chown option and a fix for mlmmj-make-ml.sh. Thanks Ingo Lameter
1.0.0
o Replace index() with strchr()
o Add parenthesis around realloc call to make sure we alloc correctly
o Make header matching case insensitive
o Fix dumping of addresses to requeue
o Make the time an address can bounce before unsubscribed configurable with
listdir/control/bouncelife
o Correct mlmmj-make-ml.sh cronentry line to include -F
o Add manual pages. Thanks Soeren Boll for the initial ones
o Make random numbers lowercase hex since gmail is lowercasing the address
it replies to.
o Also make sanity check in mlmmj-maintd to ensure it's invoke either
as root or as listdir owner
1.0.0-RC4
o Fix brown paper bag bug not allowing enough space for the new better random
strings introduced in RC3 so subscribe and unsubscribe works again.
1.0.0-RC3
o NULL and 0 are not the same on 64-bit platforms, so fix execlp(..., 0); to
be execlp(..., NULL);
o Add web-interface (PHP). Thank you Christoph Thiel
o Have the random numbers be somewhat longer everywhere and not just somewhere
o Move free() to where it belongs fixing problems with mlmmj-process some
people have been seen
o Fix printing of cron entry in mlmmj-make-ml.sh
1.0.0-RC2
o Do not allow mails from <> going to the list
o Fix mailing to +owner again by adding missing 'break;' to switch in
mlmmj-send
o perl-admin updates from Christian Laursen
o php-user updates from Christoph Thiel
o Use Delivered-To: instead of To: when available
1.0.0-RC1
o Add web-interface. Thanks Christian Laursen for new perl-admin
o Dump the customheaders before any Mime headers
o Implement +get-N functionality, so it's possible to send a mail to
foolist+get-101@domain.tld to retrieve mail 101 from that list. It's
deliberately only possible to request one mail at a time.
o Make sure that only either root or the listdir owner can execute the
binaries when it has something to do with lists.
o Don't leave bounces-help@ mails lying around in queue/
o Remove unanchored ".*" from beginning of regexp
0.8.3
o Have mlmmj-make-ml.sh remind people about using cron if they want
o Replying to the confirmation address is enough to sub/unsub, no matter what
address is used the second time
o Fix possible DoS wrt. unsubscribing. Thank you Erik Toubro Nielsen
o Add 'notifysub' functionality to have owner know when people sub/unsub.
Thank you Kenneth Vestergaard Schmidt
o Use Return-Path: for envelope From. Thanks Anders Johansson
o Specification of which relayhost to use can now be done in control/relayhost
o Add configure check to link against libnsl if needed.
o Implement our own daemon() function since we don't have daemon() on Solaris
0.8.2
o Make sure we don't cut of the first char of an emailaddress
o Fix header value copying (thanks Anders Johansson)
o Don't segfault if there's no email address in the To: header
o Clean up the subconf and unsubconf directories for stale requests as well
0.8.1.1
o Fix bug with prepstdreply not opening correct file. Thanks Christian Laursen
for spotting.
0.8.1
o Go through all open() calls and retry in case we (allthough it's extremely
unlikely) did get EEXIST
o Add the option to add a To: header including the recipient emailaddress.
NOTE that this does not remove any existing To: headers, they should be
removed in control/delheaders
o Optimize mlmmj-send by preparing the mail in memory to reduce the amount of
write syscalls. control/memmailsize (size in bytes) controls how big it can
be. Default is 16k before it's send line by line.
o Make sure we check if the Subject: prefix might be present in the
de-quoted printable version of the Subject. If so, don't add it.
o Fix bug with queuefilename not being correctly initialized when generating
standard mails
o Let mlmmj-send be capable of handling relayhost local users bounce probes
bouncing.
o Don't litter the queuedirectory with files when rejecting mails (the
maintenance daemon would take care of it, but lets be nice)
0.8.0
o Added regular expression based access control.
o Added wrappers for malloc(), realloc(), free() and strdup(), so we can
bail out if any of them fail.
0.7.3
o Implement control/delheaders in where one can specify all the headers
to delete in incoming mail to the list.
o Add +owner functionality (control/owner). Several addresses possible.
o Relicense the whole thing to be MIT instead of GPL
0.7.2
o Make it possible to only let subscribers post
o Implement feature to deny posts where the listaddress is not in To: or
Cc:. Enabled pr. default, but can be disabled by touching control/tocc
o Make mlmmj-sub change uid to the owner of listdir to avoid permission
problems. Disable with -U to mlmmj-sub.
o More memory debugging
0.7.1
o Fix bug with .reciptto and .mailfrom getting swapped
o Plug a few small memory leaks in mlmmj-maintd
o Fix bug with maintenance logfile not being opened at the right spot
0.7.0
o Add a macro to make sure mlmmj binaries are invoked with full path
o Add the function to mlmmj-maintd to unsubscribe people who've been bouncing
for BOUNCELIFE (default 432000 sec, 5 days) time. This completes
the bouncehandling of mlmmj. SIC!
o Add logging to mlmmj-maintd. mlmmj-maintd.lastrun.log in the listdir
always has the log of the last run. This is work in progress.
o Make mlmmj-bounce capable of sending probes
o Include a function for easy generation of standard mail replies
0.6.0
o Add several unlinks. No need to litter queue/ with useless files
o Don't use moderation/queue for outgoing, just use queue/
o Christoph Thiel pointed out that listaddress and moderators belong in
control/ so move them there
o Get rid of all FILE * instances and replace them with fd's
o Also mmap the subscribers file when reading subcribers
o Do an mmap of the mail to send once, instead of reading the mail for
each mail to send
o Rip out the ability to fork to make more than one connection to relayhost.
It turned out to not make any performance gain (tested with lists with
more than 120000 subscribers), and thus only complicated things.
KISS won, so it's gone.
o mlmmj-maint now handles resends and cleanup
o Fixed interrupted fgets() in write_mailbody_from_file()
o Fixed leak of subfile in mlmmj-send
0.5.2
o footer and customheaders are now accessed from listdir/control/ where
they belong
o Discard mails that doesn't have one and only one From: address. Discard
here means moving them to queue/discard
o Make sure we retrieve info from all headers matching the token we want
o Fixed error handling in mlmmj-send if we can not open subscribers.d/
o Make mlmmj-send a lot more robust with SMTP and handle
bounces from the relayhost.
o Fix BUG in mlmmj-bounce still using listdir/subscribers
o Handle subconf/unsubconf bounces
o Begin work on mlmmj-maintd--the mlmmj maintenance daemon
o Make help consistent and up to date with all options
o Make mlmmj-send print the replies from the mailserver
o Send our hostname in the HELO instead of relayhost
o Implement requeueing mechanism to be able to resend mail when relayhost
trouble occur
0.5.1
o Add a file TUNABLES which documents the ways to tune mlmmj lists.
o Add support for Subject: prefix
o Added WAITTIME (time to sleep before checking if we should spawn another
mlmmj-send process) option in mlmmj.h
o Fixed error handling in mlmmj-unsub if we can not open subscribers.d/
0.5.0
o Use a subscribers.d/ directory for several subscribers files. mlmmj-send
will now fork for each file (up to MAX_CONNECTIONS) for faster delivery.
mlmmj-unsub will search for subscribers in all of these files.
mlmmj-sub will now add emailaddresses to the file in subscribers.d/ with
the name of the first character in the emailaddress (foo@bar.com will be
in subscribers.d/f).
o Major cleanup of listcontrol() and in the process add closed list
functionality (touch listdir/control/closedlist and it's closed)
0.4.0
o Add moderation functionality
0.3.4
o Fix handling of lines which start with a dot
0.3.3
o Add primitive bounce handling
o mlmmj-recieve now forks before exec()
o mlmmj-{,un}sub now uses mmap and friends for better performance
0.3.2
o Logging enhancement
o Send on the full path to the binaries around in the program since
execlp needs it.
o Make mlmmj-make-ml.sh use /bin/sh not /bin/bash
o Rename mlmmj-{subscribe,unsubscribe} to mlmmj-{sub,unsub}
o Cleanup and reimplementation of several functions that needed it badly
0.3.1
o Add BINDIR (mortenp)
o Fix retstruct->emaillist initialize (mortenp)
o Log handling adjustments (mortenp)
o Touch subscribers and index (mortenp)
0.3.0
o Footer addition. Make a file called /path/to/listname/footer and it will be
added to all mails.
o Implement the help function. Send a mail to listname+help to get help. Also
address used as From: address when sending sub/unsub mails
o Make find_subscriber more safe (mortenp)
o Completely use EXIT_macro (mortenp)
0.2.2
o Add proper checks for the execpl (mortenp)
o Use EXIT_ macros for exit (mortenp)
o Try /dev/urandom before /dev/random
o Make the random_int() function work without /dev/random, which is not
present on DEC-Unix/Tru64 (mortenp)
o Make -V print the version
0.2.1
o Make the From: header on sub/unsub mails be listname+help
o Double check the subscription address before adding.
o The From header should be generated according to archive in the list mails
for proper bounce handling
o Cannot specify both -c and -C to mlmmj-{unsub,sub}scribe
o Small bugfixes
0.2.0
o Implement subscription and unsubscription by email
o Remove the need for the -l switch by introducing a listaddress file in the
mailinglist directory
o Make use of a queue directory, and not move mails to the archive before they
are processed by mlmmj-send.
0.1.4
o Properly handle the replies from the mailserver on our requests. Still need
some kind of requeing mechanism though.
o Use automake and autoconf
o Use fcntl instead of flock
o Add a script to make the mailinglist directories - thanks hennebird
0.1.3
o Make it write \r\n for each \n.
o Convert everything possible to snprintf
o Make valgrind (http://developer.kde.org/~sewardj/) find no error, leaks
anything
0.1.2
o Made mlmmj-unsubscribe
o Made mlmmj-subscribe
o Fix the indexnumber in the From header. Was reversed.
0.1.1
o Custom headers. Add a file called 'customheaders' in the listdir
and it will be added. Should be used for Reply-To: if God forbid someone
wants to use that.
o Cleanup a bit
0.1.0
o Initial version working with archiving and not much else apart from the
same functionality as a list in /etc/aliases
mlmmj/FAQ 0000664 0000000 0000000 00000001177 15023031135 0012523 0 ustar 00root root 0000000 0000000 Q: How does people subscribe/unsubscribe to mlmmj controlled mailinglists?
A: They send a mail to listname+subscribe@domain.tld or
listname+unsubscribe@domain.tld. So if we had a list called jokes@humour.org
people would send a mail to jokes+subscribe@humour.org to subscribe and
jokes+unsubscribe@humour.org to unsubscribe
Q: Why is my queue/ in the listdirectory filled with files with cryptip names
such as '4b35160eee7f63d' '287e3509509e4577' and '49123e175f68fcbc'
A: mlmmj had a tendency of leaking files in the queue/ in the past. They're
safe to delete as long as they're not accompanied by .from and .rcptto files
mlmmj/Kyuafile 0000664 0000000 0000000 00000000071 15023031135 0013655 0 ustar 00root root 0000000 0000000 syntax(2)
test_suite("mlmmj")
include("tests/Kyuafile")
mlmmj/LICENSE 0000664 0000000 0000000 00000002170 15023031135 0013170 0 ustar 00root root 0000000 0000000 The MIT License
Copyright (c) 2002, 2003, 2004 Mads Martin Joergensen
2004 Morten K. Poulsen
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
mlmmj/Makefile.am 0000664 0000000 0000000 00000003133 15023031135 0014217 0 ustar 00root root 0000000 0000000 ## Process this file with automake to produce Makefile.in
EXTRA_DIST = include LICENSE UPGRADE FAQ \
TUNABLES.md README.access.md README.archives.md README.listtexts.md \
man README.exim4.md README.sendmail.md README.qmail.md \
README.postfix.md README.footers.md Kyuafile tests/Kyuafile \
tests/dsnmail
CLEANFILES = *~ mlmmj-*.tar.*
man1_MANS = man/mlmmj-bounce.1 man/mlmmj-make-ml.1 man/mlmmj-receive.1 \
man/mlmmj-sub.1 man/mlmmj-maintd.1 man/mlmmj-process.1 \
man/mlmmj-send.1 man/mlmmj-unsub.1 man/mlmmj-list.1
SUBDIRS = src listtexts contrib
if WANT_TESTS
AM_CFLAGS += @ATF_CFLAGS@
check_PROGRAMS = \
tests/fakesmtpd \
tests/mlmmj
dist_noinst_HEADERS = \
tests/mlmmj_tests.h
tests_mlmmj_SOURCES = \
tests/mlmmj.c \
tests/mlmmj_tests.c
tests_mlmmj_LDADD = \
$(top_builddir)/src/libmlmmj.a \
@ATF_LIBS@
tests_fakesmtpd_SOURCES = \
tests/fakesmtpd.c
test_scripts = \
tests/mlmmj-send \
tests/functional-tests \
tests/mlmmj-maintd \
tests/mlmmj-sub \
tests/mlmmj-bounce \
tests/mlmmj-list \
tests/mlmmj-process \
tests/mlmmj-receive
# Run the Kyua test suite when the 'check' target is invoked
check-local: $(check_PROGRAMS) $(test_scripts)
failed=no; \
$(KYUA) --config='$(top_builddir)/kyua.conf' test \
--kyuafile='$(top_srcdir)/Kyuafile' --build-root='$(top_builddir)' \
|| failed=yes; \
if [ "$${failed}" = yes ]; then \
$(KYUA) report --results-file='$(abs_top_srcdir)' \
--verbose --results-filter=broken,failed; \
exit 1; \
fi
# Build the test programs when the 'all' target is invoked
all-local: $(check_PROGRAMS)
endif
mlmmj/README.access.md 0000664 0000000 0000000 00000007770 15023031135 0014715 0 ustar 00root root 0000000 0000000 README.access present in mlmmj versions >= 0.8.0
(moderate tag since 1.1.0-RC3)
Access control in mlmmj
=======================
If the file listdir/control/access is present, access control is enabled.
NOTE: the default action is to deny access (reject the mail), so an empty
access control file will cause mlmmj to reject all posts, whereas a non-
existant file will change nothing, and mlmmj will behave as usual.
Each header in the mail is tested against each rule, rule by rule. That is,
all headers are first tested against the first rule, then all headers are
tested against the second rule, and so on.
The first rule to match a header decides which action to take - allow, deny,
discard or moderate the post.
The syntax is quite simple: action[ [!]regexp]
- "Action" can be "allow", "send", "deny", "discard" or "moderate".
- The optional "!" makes the rule a match, if NO header matches the regular
expression.
- "Regexp" is a POSIX.2 extended regular expression. Matching is done case
insensitive.
The action "allow" will pass the mail on to the next step in processing. The
mail may still be held for moderation, if it would have been so without access
rules.
The action "send" will send the mail unconditionally. It will not be
moderated, nor subject to subonlypost, nor modnonsubposts.
The action "deny" will not send the mail to the mailing list, but will send a
rejection mail to the sender.
The action "deny" can be specialised with "dash-extension". The dash-extension
is used to identify the listtext to use, if present.
For example, if "deny-html" is triggered, the rejection message is loaded from
listtexts/deny-post-access-html
The action "discard" will not send the mail to the list, and will not send a
rejection mail.
The action "moderate" will hold the mail for moderation.
IMPORTANT: if "moderate" is used then don't forget to add people who should
function as moderators in listdir/control/moderators
The flow through the access system is something like this:
````
deny +------+
+----------------->| deny |
| +------+
|
| discard +---------+
| +-------------->| discard |
| | +---------+
| | ^
| | | expire
+--------+ moderate +------+ +------+
--->| access |----------->| hold |---------->| send |--->
+--------+ +------+ confirm +------+
| | ^ ^ ^
| | | yes | |
| | allow +--------------+ no | |
| +-------------->| moderation * |-----+ |
| +--------------+ |
| send |
+------------------------------------------+
````
* modnonsubposts is also processed here, and subonlypost (the flow
may be to deny or discard for subonlypost without modnonsubposts).
First a simple example. This rule set will reject any mail that is NOT plain
text, or has a subject that contains "BayStar", and allow anything else:
````
deny !^Content-Type: text/plain
deny ^Subject:.*BayStar
allow
````
To allow only text mails, but have the moderators moderate every html mail one
would use this:
````
allow ^Content-Type: text/plain
moderate ^Content-Type: text/html
deny
````
Now on to a more advanced example. Morten can post anything, Mads Martin can
post if the subject does not contain "SCO". Everything else is denied:
````
allow ^From: Morten
deny ^Subject:.*SCO
allow ^From: Mads Martin
deny
````
The last rule (deny) can be left out, as deny is the default action.
A third example. Deny any mails with "discount", "weightloss", or "bonus" in
the subject. Allow PGP signed and plain text mails. Anything else is denied:
````
deny ^Subject:.*discount
deny ^Subject:.*weightloss
deny ^Subject:.*bonus
allow ^Content-Type: multipart/signed
allow ^Content-Type: text/plain
````
mlmmj/README.archives.md 0000664 0000000 0000000 00000001276 15023031135 0015253 0 ustar 00root root 0000000 0000000 README.archives
Generating web-browseable archives of Mlmmj lists
=================================================
There are a couple of options for making web-browseable archives of Mlmmj
lists.
mlmmj-webarchiver (mhonarc)
---------------------------
Andreas Schneider has created mlmmj-webarchiver, based on mhonarc and perl.
You can get it here:
http://git.cryptomilk.org/projects/mlmmj-webarchiver.git/
And see the kind of output it gives here:
http://www.libssh.org/archive/
hypermail
---------
Wolf Bergenheim has written some scripts which use hypermail to create
web-browseable archives.
The scripts and details can be found here:
http://mlmmj.org/archive/mlmmj/2010-08/1710.html
mlmmj/README.exim4.md 0000664 0000000 0000000 00000007202 15023031135 0014470 0 ustar 00root root 0000000 0000000
README.exim4 May 7th 2005
This is a step-by-step guide to run mlmmj with Exim4. The most current version
of this can be found on http://plonk.de/sw/mlmmj/README.exim4.
Notes:
- We assume that you have a user and group called mlmmj to use with mlmmj
- The exim user needs rx access rights to mlmmj's spool directory. (If you
don't want that, see below.) The easiest way is
"chmod 755 /path/to/mlmmj/spool", if it's ok that local users can see which
lists there are.
Note that the owner of the mlmmj spool must still be the mlmmj user (and
this user must have at least x rights to the directories below).
- Existence of mailing lists is automatically checked ($listdir) and you
don't need to put anything into your aliases file
- If you want VERP to be done by your MTA, follow the instructions below and
put an empty file named verp into the control directory of your lists
1. In the main configuration section:
```
MLMMJ_HOME=/var/spool/mlmmj
domainlist mlmmj_domains = list.example.net
```
2. Add +mlmmj\_domains to relay\_to\_domains:
```
domainlist relay_to_domains = other.domain : +mlmmj_domains
```
3. mlmmj is barely interested in delay warnings, so add this in the main
configuration:
```
delay_warning_condition = ${if match_domain{$domain}{+mlmmj_domains}{no}{yes}}
```
4. In the routers section (before the dnslookup router, preferably at the
beginning):
```
mlmmj_router:
driver = accept
domains = +mlmmj_domains
require_files = MLMMJ_HOME/${lc::$local_part}
# Use this instead, if you don't want to give Exim rx rights to mlmmj spool.
# Exim will then spawn a new process running under the UID of "mlmmj".
#require_files = mlmmj:MLMMJ_HOME/${lc::$local_part}
local_part_suffix = +*
local_part_suffix_optional
headers_remove = Delivered-To
headers_add = Delivered-To: $local_part$local_part_suffix@$domain
transport = mlmmj_transport
```
If you want VERP to be done by your MTA, also add this:
```
verp_router:
driver = dnslookup
domains = !+mlmmj_domains
# we only consider messages sent in through loopback
condition = ${if eq{$sender_host_address}{127.0.0.1}{yes}{no}}
ignore_target_hosts = <; 0.0.0.0; 127.0.0.0/8; ::1/128; fe80::/10; ff00::/8
# only the un-VERPed bounce addresses are handled
senders = \N^.+\+bounces-\d+@.+\N
transport = verp_smtp
```
To prevent temporary errors for not-existing lists, add !+mlmmj\_domains to the
domains condition of the dnslookup router:
```
dnslookup:
driver = dnslookup
domains = !+mlmmj_domains : !+local_domains
[...]
```
5. Somewhere in the transports section. (Change the path of mlmmj-receive if you
don't use the default location!):
```
mlmmj_transport:
driver = pipe
return_path_add
user = mlmmj
group = mlmmj
home_directory = MLMMJ_HOME
current_directory = MLMMJ_HOME
command = /usr/local/bin/mlmmj-receive -F -L MLMMJ_HOME/${lc:$local_part}
```
If you want VERP to be done by your MTA, also add this:
```
verp_smtp:
driver = smtp
# put recipient address into return_path
return_path = ${quote_local_part:${local_part:$return_path}}-\
${original_local_part}=${original_domain}@\
${domain:$return_path}
# must restrict to one recipient at a time
max_rcpt = 1
# Errors-To: may carry old return_path
headers_remove = Errors-To
headers_add = Errors-To: $return_path
```
6. Test your setup with
```
$ exim -bt mlmmj-test@your.list.domain
mlmmj-test@your.list.domain
router = mlmmj_router, transport = mlmmj_transport
```
If you get different output, run it with -d to see what's going wrong.
If not, you're done!
Jakob Hirsch (jh at plonk dot de)
mlmmj/README.footers.md 0000664 0000000 0000000 00000001743 15023031135 0015127 0 ustar 00root root 0000000 0000000 README.footers
# Footers in Mlmmj
Mlmmj's built-in footer support is very rudimentary. It will work for plain
text emails, and that's about it. It doesn't understand HTML or MIME or
anything like that.
There are a few solutions to this. They all involve piping incoming mail
through a filter before it reaches Mlmmj. A script to do this, called
mlmmj-amime-receive, is included in amime-receive in the contrib directory.
It can be used with a number of different pre-processors. One day we also hope
to improve the integration of these external filters with Mlmmj, e.g. so only
list posts are processed. However, the piping solution has worked for a number
of people over the years quite satisfactorily, so this is not a high priority.
Here are some pre-processors you can use.
## alterMIME
The mlmmj-amime-receive script is designed to work with a program called
alterMIME. The script itself (in amime-receive in the contrib directory)
contains links to that software, and instructions.
mlmmj/README.listtexts.md 0000664 0000000 0000000 00000051342 15023031135 0015511 0 ustar 00root root 0000000 0000000 README.listtexts
List texts in Mlmmj
===================
List texts are stored in listdir/text and subdirectories of
prefix/share/mlmmj/text.skel. They specify the content of various automatic
emails that Mlmmj sends. They are provided in a number of different languages.
The language to use for a list is chosen when you run the mlmmj-make-ml script
and the appropriate files are copied into your listdir/text directory.
This file documents the following aspects of list texts:
- Naming scheme
- Supported list texts
- Format
- Conditionals
- Wrapping
- Formatting and comments
- Formatted substitutions
- Unformatted substitutions
- Escapes
Naming scheme
-------------
List texts are named following a scheme of:
purpose-action-reason-type
Mlmmj will look for the full four-part name first, then for files with shorter
names obtained by dropping parts off the end, and finally for a file with a
compatibility filename. It will use the first one it finds. (Note that use of
the compatibility filename is DEPRECATED and will be removed in a future
release.)
So, the complete search order is:
- purpose-action-reason-type
- purpose-action-reason
- purpose-action
- purpose
- compatibility filename (DEPRECATED)
When using shortened names, the %ifaction%, %ifreason%, %iftype% and related
conditionals can be used to customise the list text according to the values of
the missing parts.
Mlmmj checks these three paths for each candidate filename, and then moves on
to the next candidate filename:
- listdir/text
- prefix/share/mlmmj/text.skel/default
- prefix/share/mlmmj/text.skel/en
The second path does not exist by default, but can be created by copying or
symlinking the language of your choice to that path.
Note that this search order means that if there is a more specific list text in
a system directory, it will override a less-specific or compatibility list text
in the listdir. This may be surprising, and may change in a future version, so
should not be relied upon. Best practice is to ensure each list has its own
copy of all textx present in system directories, or none of them.
Supported list texts
--------------------
The following list texts are supported. The compatibility filename (DEPRECATED)
is given in brackets. Those with asterisks (*) are not yet used.
- help (listhelp)
sent in response to an email to listname+help@domain.tld
- faq (listfaq)
sent in response to an email to listname+faq@domain.tld
- confirm-sub-{request|admin}-normal (sub-confirm)
- confirm-sub-{request|admin}-digest (sub-confirm-digest)
- confirm-sub-{request|admin}-nomail (sub-confirm-nomail)
- confirm-unsub-{request|admin}-normal (unsub-confirm)
- confirm-unsub-{request|admin}-digest (unsub-confirm-digest)
- confirm-unsub-{request|admin}-nomail (unsub-confirm-nomail)
sent to a requester to allow them to confirm a (un-)subscription request
- moderate-post-{modnonsubposts|access|moderated} (moderation)
sent to the appropriate moderators when moderation is required because a user
has submitted a post
- gatekeep-sub-{request|admin|confirm}-{normal|digest|nomail} (submod-moderator)
sent to the appropriate gatekeepers when gatekeeping is required because a
subscription request has been received
- wait-post-{modnonsubposts|access|moderated} (moderation-poster)
sent to a person submitting a post when they need to wait for moderation
before it is released to the list
- wait-sub-{request|admin|confirm}-{normal|digest|nomail} (submod-requester)
sent to a person requesting subscription when they need to wait for
gatekeeping for permission to join
- deny-sub-disabled-{digest|both} (sub-deny-digest)
- deny-sub-disabled-nomail (sub-deny-nomail)
- deny-sub-subbed-{normal|digest|nomail|both} (sub-subscribed)
- deny-sub-closed *
- deny-sub-expired *
- deny-sub-obstruct *
- deny-unsub-unsubbed-{normal|digest|nomail|all} (unsub-notsubscribed)
- deny-post-subonlypost (subonlypost)
- deny-post-modonlypost
- deny-post-access (access)
- deny-post-maxmailsize (maxmailsize)
- deny-post-tocc (notintocc)
- deny-post-expired *
- deny-post-reject *
- deny-release-notfound *
- deny-release-moderators *
- deny-reject-notfound *
- deny-reject-moderators *
- deny-permit-notfound *
- deny-permit-gatekeepers *
- deny-obstruct-notfound *
- deny-obstruct-gatekeepers *
sent to the requestor when an action is denied or fails for some reason
('requestor' here means the person who requested the action, so e.g. for a
reject action, deny-reject will go to the moderator requesting the rejection
if the rejection fails; but deny-post-reject will go to the person requesting
the post if the rejection succeeds, causing the post to fail)
- finish-sub-{request|confirm|admin|permit|switch}-normal (sub-ok)
- finish-sub-{request|confirm|admin|permit|switch}-digest (sub-ok-digest)
- finish-sub-{request|confirm|admin|permit|switch}-nomail (sub-ok-nomail)
- finish-unsub-{request|confirm|admin}-normal (unsub-ok)
- finish-unsub-{request|confirm|admin}-digest (unsub-ok-digest)
- finish-unsub-{request|confirm|admin}-nomail (unsub-ok-nomail)
- finish-post-request *
- finish-post-confirm *
- finish-post-release *
- finish-release *
- finish-reject *
- finish-permit *
- finish-obstruct *
sent to the requestor when an action completes successfully
('requestor' here means the person who requested the action, so e.g. for a
release action, the moderator requesting the release will receive
finish-release, and the person who submitted the released post will receive
finish-post-release because the release action caused their post action to
succeed)
- notify-sub-{request|confirm|admin|permit}-normal (notifysub)
- notify-sub-{request|confirm|admin|permit}-digest (notifysub-digest)
- notify-sub-{request|confirm|admin|permit}-nomail (notifysub-nomail)
- notify-unsub-{request|confirm|admin|bouncing}-normal (notifyunsub)
- notify-unsub-{request|confirm|admin|bouncing}-digest (notifyunsub-digest)
- notify-unsub-{request|confirm|admin|bouncing}-nomail (notifyunsub-nomail)
sent to the list owner when somebody is (un-)subscribed
- digest
sent at the start of a digest (NOTE: the only header supported in this list
text so far is a single-line 'Subject:' header; however, the contents of
control/customheaders is included when digests are sent)
- probe (bounce-probe)
sent to a subscriber after an email to them bounced to inform them of the
bounce and probe when the address is no longer bouncing
- list---all (listsubs)
- list---normal *
- list---digest *
- list---nomail *
sent in response to an email to listname+list@domain.tld from the list owner
(DEPRECATED: if none of %listsubs%, %digestsubs% and %nomailsubs% is
encountered in the text, then they will be automatically added with some
default formatting; this functionality is expected to be removed in the
future)
* Not yet used.
Format
------
List texts have the following format:
- Headers
- Blank line
- Body
They are expected to be in UTF-8 encoding and have Unix line endings.
The headers should be formatted as they should appear in the mail message. They
will begin the mail message. Header continuation via lines beginning with
linear whitespace is supported.
Following the headers found in the list text, Mlmmj will output the following
default headers, unless the same header is already provided in the list text.
- From:
- To:
- Message-ID:
- Date:
- Subject: mlmmj administrivia
- MIME-Version: 1.0
- Content-Type: text/plain; charset=utf-8
- Content-Transfer-Encoding: 8bit
The Subject: header is treated specially: it may include UTF-8 characters,
which will automatically be escaped using the =?utf-8?q?...?= quoting
mechanism.
(NOTE: the 'digest' list text is a bit different. See its description above.)
Both headers and bodies of list texts may include conditionals, formatting
directives and substitutions. These are explained in the following sections.
Conditionals
------------
Conditionals allow text in list texts to be included or omitted based on
conditions. The following are available:
- %ifaction A ...%
the action is one of those given
- %ifreason R ...%
the reason is one of those given
- %iftype T ...%
the type is one of those given
- %ifcontrol C ...%
one of the given control files exists
- %ifnaction A%
the action is not the one given
- %ifnreason R%
the reason is not the one given
- %ifntype T%
the type is not the one given
- %ifncontrol C ...%
at least one of the given control files does not exist
The text after the %if...% directive is only included if the condition is
satisfied, until an %else% or %endif% is encountered. These behave as you
would expect. The %else% is optional.
If a line with any of these conditional directives (%if...%, %else% or
%endif%), after processing, contains only whitespace, the line does not appear
at all in the output (the newline and any whitespace is omitted).
Furthermore, if the preceding processed output ends with a blank line, when an
unsatisfied conditional is encountered which has no %else% part, that
preceding blank line is removed (unless it is the blank line that ends the
headers).
On the whole, this is what you would want and expect, so you probably don't
need to worry about it.
Note that when multiple parameters can be given for the directives, these have
'or' behaviour; to get 'and' behaviour, nest conditionals.
Wrapping
--------
There are various directives available to assist with wrapping and formatting.
Wrapping needs to be enabled for each paragraph with:
- %wrap%
- %wrap W%
concatenate and rewrap lines until the next empty line, whitespace-only line,
or %nowrap% directive to a width of W (or 76 if W is omitted); second and
later lines are preceded with as many spaces as the width preceding the
directive; the width is reckoned including any text preceding the directive
and any indentation preserved from a file which included the current one, so
it is an absolute maximum width
To turn off wrapping before the end of a paragraph, use:
- %nowrap%
stop wrapping; usually placed at the end of a line so the following line
break is honoured but all preceding text is properly wrapped; if you want
wrapping to continue after the break, you need to use %wrap% to turn it on
again on the following line
To cater for various languages, there are a number of different wrapping modes
that can be set. These can be set either before or after wrapping is specified,
and can even be changed part way through a paragraph if desired. The following
directives control them:
- %wordwrap%
- %ww%
use word-wrapping (this is the default; good for English, French, Greek and
other languages that use an alphabet and spaces between words); lines have
whitespace trimmed from both ends and are joined with a single space; lines
are broken at spaces or at points marked for breaking with \/, but not at
spaces escaped with a backslash
- %charwrap%
- %cw%
use character-wrapping (good for Chinese, Japanese and Korean which use
characters without spaces between words); lines have only leading whitespace
trimmed and are joined without inserting anything at the joint; lines are
broken at space or any non-ASCII character except where disallowed with \=
- %userwrap%
- %uw%
use user-wrapping (for more complex languages or wherever complete manual
control is desired); lines have only leading whitespace trimmed and are
joined without inserting anything at the joint; lines are broken only where
marked for breaking with \/
- %thin%
assume non-ASCII characters are thin (equivalent to one unit, the same as
ASCII characters) when reckoning the width for wrapping (this is the default;
good for languages like Greek which use a non-Latin alphabet)
- %wide%
assume non-ASCII characters are wide (equivalent to two units, twice as wide
as ASCII characters) when reckoning the width for wrapping (good for Chinese,
Japanese, Korean)
- %zero ABC%
(ABC represents a sequence of non-ASCII characters)
treat the listed characters as having zero-width when reckoning the width for
wrapping (useful for ignoring combining characters such as accents so they
don't affect the width calculation); usefully, the listed characters can be
represented as unicode escapes (\uNNNN)
If a line with any of the directives in this section, after processing,
contains only whitespace, the line does not appear at all in the output (the
newline and any whitespace is omitted).
Formatting and comments
-----------------------
The following directives are available to assist with formatting and
readability:
- %^%
start the line here; anything preceding this directive is ignored (useful for
using indentation for readability without ruining the formatting of the text
when it is processed)
- %comment%
- %$%
end the line here; anything following this directive is ignored/a comment
If a line with any of these directives, after processing, contains only
whitespace, the line does not appear at all in the output (the newline and any
whitespace is omitted).
Formatted substitutions
-----------------------
These formatted substitutions work with multiple lines, so are generally not
appropriate for use in headers. They are:
- %text T%
text from the file named T in the listdir/text directory; the name may only
include letters, digits, underscore, dot and hyphen, and may not start with a
dot; note that there is an unformatted version of this directive
- %control C%
the contents of the control file named C in listir/control; the name may only
include letters, digits, underscore, dot and hyphen, and may not start with a
dot; note that there is an unformatted version of this directive
- %originalmail%
- %originalmail N%
(available only in moderate-post-*, wait-post-* and
deny-post-{access|maxmailsize|tocc|subonlypost|modonlypost})
the email message being processed (usually a mail being moderated); N
represents a number, which is how many lines of the message (including
headers) to include: if omitted, the whole message will be included
- %digestthreads%
(available only in digest)
the list of threads included in the digest
- %gatekeepers%
(available only in gatekeep-sub and wait-sub)
the list of moderators to whom the moderation request has been sent
- %listsubs%
(available only in list---*)
the list of normal subscribers
DEPRECATED: use %normalsubs%
- %normalsubs%
(available only in list---*)
the list of normal subscribers
- %digestsubs%
(available only in list---*)
the list of digest subscribers
- %nomailsubs%
(available only in list---*)
the list of nomail subscribers
- %moderators%
(available only in moderate-post-* and wait-post-*)
the list of moderators to whom the moderation request has been sent
- %bouncenumbers%
(available only in probe)
the list of indexes of messages which may not have been received as they
bounced
Directives which include a list of items have the behaviour that each item is
preceded and followed by the same text as preceded and followed the directive
on its line; only one such directive is supported per line. Those which include
a block of text have the behaviour that second and later lines are preceded
with as many spaces as there were bytes preceding the directive; any text
following such directives on the same line is omitted.
If a line with any of these directives, after processing, contains only
whitespace, the line does not appear at all in the output (the newline and any
whitespace is omitted).
Unformatted substitutions
-------------------------
Unformatted substitutions that are available are:
- $bouncenumbers$
(available only in probe)
the formatted list of indexes of messages which may not have been received as
they bounced
DEPRECATED: use %bouncenumbers%
- $confaddr$
- $confirmaddr$
(available only in confirm-[un]sub-*)
the address to which to send mail to confirm the (un-)subscription in
question
NOTE: the short version of this substitution is DEPRECATED
- $control C$
the contents of the control file named C in listdir/control, with its final
newline stripped; the name may only include letters, digits, underscore, dot
and hyphen, and may not start with a dot; note that there is a formatted
version of this directive
- $digestfirst$
(available only in digest)
index of the first message included in a digest
- $digestinterval$
(available only in digest)
indexes of the first and last messages included in a digest (e.g. 1-5), or
just the index if only a single message is included
- $digestissue$
(available only in digest)
the issue number of the digest
- $digestlast$
(available only in digest)
index of the last message included in a digest
- $digestsubaddr$
listname+subscribe-digest@domain.tld
DEPRECATED: use $list+$subscribe-digest@$domain$ instead
- $digestthreads$
(available only in digest)
the formatted list of threads included in the digest
DEPRECATED: use %digestthreads%
- $digestunsubaddr$
listname+unsubscribe-digest@domain.tld
DEPRECATED: use $list+$unsubscribe-digest@$domain$ instead
- $domain$
domain.tld
- $faqaddr$
listname+faq@domain.tld
DEPRECATED: use $list+$faq@$domain$ instead
- $helpaddr$
listname+help@domain.tld
DEPRECATED: use $list+$help@$domain$ instead
- $list$
listname
- $list+$
listname+
- $listaddr$
listname@domain.tld
DEPRECATED: use $list$@$domain$ instead
- $listgetN$
listname+get-N@domain.tld
(the N here is nothing special, so this won't actually work, but is used to
explain to users how to use the +get functionality)
DEPRECATED: use $list+$get-N@$domain$ instead
- $listowner$
listname+owner@domain.tld
DEPRECATED: use $list+$owner@$domain$ instead
- $listsubaddr$
listname+subscribe@domain.tld
DEPRECATED: use $list+$subscribe@$domain$ instead
- $listunsubaddr$
listname+unsubscribe@domain.tld
DEPRECATED: use $list+$unsubscribe@$domain$ instead
- $maxmailsize$
(available only in deny-post-maxmailsize)
the maximum size of mail that Mlmmj will accept
- $moderateaddr$
(available only in moderate-post-* and gatekeep-sub)
the address to which to send mail to approve the post or subscription in
question
DEPRECATED: use $releaseaddr$ or $permitaddr$ instead
- $moderators$
(available only in moderate-post-*, wait-post-*, gatekeep-sub and wait-sub)
the formatted list of moderators to whom the moderation request has been sent
DEPRECATED: use %moderators% or %gatekeepers% instead
- $newsub$
(available only in notify-sub-*-*)
the address that has been subscribed
DEPRECATED: use $subaddr$ instead
- $nomailsubaddr$
listname+subscribe-nomail@domain.tld
DEPRECATED: use $list+$subscribe-nomail@$domain$ instead
- $nomailunsubaddr$
listname+unsubscribe-nomail@domain.tld
DEPRECATED: use $list+$unsubscribe-nomail@$domain$ instead
- $oldsub$
(available only in notify-sub-*-*)
the address that has been unsubscribed
DEPRECATED: use $subaddr$ instead
- $originalmail$
the same as %originalmail 100% preceded by a space
DEPRECATED: use %originalmail%
- $permitaddr$
(available only in gatekeep-sub)
the address to which to send mail to permit the subscription in question
- $posteraddr$
(available only in deny-post-{access|tocc|subonlypost|modonlypost|
maxmailsize}, moderate-post-* and wait-post-*)
the from address of the message that was received as determined by Mlmmj
- $random0$
- $random1$
- $random2$
- $random3$
- $random4$
- $random5$
these are 6 distinct random strings; they allow list texts to be constructed
that are MIME messages with attachments by creating boundaries that are
unlikely to appear in the attached messages
- $releaseaddr$
(available only in moderate-post-*)
the address to which to send mail to release the post in question
- $subaddr$
(available only in gatekeep-sub, confirm-[un]sub-*, finish-[un]sub-*,
notify-[un]sub-* and deny-[un]sub-*)
the address requested to be (un-)subscribed
- $subject$
(available only in deny-post-{access|tocc|subonlypost|modonlypost|
maxmailsize}, moderate-post-* and wait-post-*)
the subject line of the message in question
- $text T$
text from the file named T in the listdir/text directory, with its final
newline stripped; the name may only include letters, digits, underscore, dot
and hyphen, and may not start with a dot; note that there is a formatted
version of this directive
Escapes
-------
These allow you to avoid special meanings of characters used for other purposes
in list texts, as well as control the construction of the texts at a fairly low
level.
- $$
a single $
- %%
a single %
- \\
a single \
- \uNNNN
(NNNN represents four hex digits)
a Unicode character
(this is not really appropriate for use in a header, except perhaps the
Subject: header as Mlmmj does automatic quoting for that header as described
above)
- \
a space, but don't allow the line to be broken here when wrapping
- \/
nothing, but allow the line to be broken here when wrapping
- \=
nothing, but don't allow the line to be broken here when wrapping
mlmmj/README.md 0000664 0000000 0000000 00000012670 15023031135 0013450 0 ustar 00root root 0000000 0000000 This is an attempt at implementing a mailing list manager with the same
functionality as the brilliant ezmlm, but with a decent license and mail server
independence.
The functionality:
* Archive
* Custom headers / footer
* Fully automated bounce handling (similar to ezmlm)
* Complete requeueing functionality
* Moderation functionality
* Subject prefix
* Subscribers only posting
* Regular expression access control
* Functionality to retrieve old posts
* Web interface
* Digests
* No-mail subscription
* VERP support
* Delivery Status Notification (RFC1891) support
* Rich, customisable texts for automated operations
To use mlmmj, do the following:
0) Compile it if you're not using a binary package such as dpkg, rpm or
a ports collection from a BSD or Gentoo. To compile, untar the tar-ball
and do:
$ autoreconf -i && ./configure && make && make install
If you want to filter multipart/mime messages, pass the option
--enable-receive-strip to configure, and take a look at
contrib/receivestrip/README.
1) Configure a recipient delimiter. The default is to use '+', and in
Postfix it's done by adding
recipient_delimiter = +
to /etc/postfix/main.cf. In Exim it can be done by adding
local_part_suffix = +*
local_part_suffix_optional
to the "userforward:" and the "localuser:" router in /etc/exim/exim.conf,
and also add "local_part_suffix = +*" to the system_aliases function. Also
make sure that exim will add the envelope from in the Return-Path: header.
There is a nice FAQ explaining recipient delimiter configuration here:
http://faqs.org/faqs/mail/addressing/
The mlmmj TUNABLE "delimiter" configures this on a per list basis
NOTE: Using '-' as a delimiter is unlikely to work. Mlmmj uses '-' as its
own kind of minor delimiter. Of course, you also cannot use the delimiter
in your list names or you will encounter problems.
2) Create the mailinglist. There's a script, mlmmj-make-ml, that will make
a mailinglist for mlmmj. It is highly recommended to use this script to make
the lists! What is does is described here:
In the case of a list called mlmmj-test below /var/spool/mlmmj it makes the
following directories:
```
/var/spool/mlmmj/mlmmj-test/incoming
/var/spool/mlmmj/mlmmj-test/queue
/var/spool/mlmmj/mlmmj-test/queue/discarded
/var/spool/mlmmj/mlmmj-test/archive
/var/spool/mlmmj/mlmmj-test/text
/var/spool/mlmmj/mlmmj-test/subconf
/var/spool/mlmmj/mlmmj-test/unsubconf
/var/spool/mlmmj/mlmmj-test/bounce
/var/spool/mlmmj/mlmmj-test/control
/var/spool/mlmmj/mlmmj-test/moderation
/var/spool/mlmmj/mlmmj-test/subscribers.d
/var/spool/mlmmj/mlmmj-test/digesters.d
/var/spool/mlmmj/mlmmj-test/nomailsubs.d
/var/spool/mlmmj/mlmmj-test/requeue
```
NOTE: The mailinglist directory (/var/spool/mlmmj/mlmmj-test in our
example) have to be owned by the user the mailserver writes as. On some
Postfix installations Postfix is run by the user postfix, but still writes
files as nobody:nogroup or nobody:nobody
3) Make the changes to your mailserver aliases that came as output from
mlmmj-make-ml. Following the example above they will look like this:
mlmmj-test: "|/usr/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test"
NOTE: Don't forget newaliases.
4) Start mlmmj-maintd (remember full path when starting it!) or add it to
crontab with -F switch. The recommended way for now is to run it via cron:
"0 */2 * * * /usr/bin/mlmmj-maintd -F -L /var/spool/mlmmj/mlmmj-test"
It should be started as root, as mlmmj-maintd will become the user owning
the listdir (/var/spool/mlmmj/mlmmj-test), and log it's last maintenance
run to listdir/mlmmj-maintd.lastrun.log.
If you have several lists below /var/spool/mlmmj you can use -d:
/usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj
If you have lists more deeply nested below /var/spool/mlmmj, use
something like:
```
find /var/spool/mlmmj -mindepth 1 -maxdepth 1 -type d \
-exec /usr/bin/mlmmj-maintd -F -d {} \;
```
That's it! You probably want to go through the next steps too.
5) Subscribe some people
/usr/bin/mlmmj-sub -L /var/spool/mlmmj/mlmmj-test/ -a joe@domain.tld
etc.
6) If you want custom headers like X-Mailinglist, Reply-To: etc. just add a
file called 'customheaders' in the list control/ directory like this:
$ cat /var/spool/mlmmj/mlmmj-test/control/customheaders
X-Mailinglist: mlmmj-test
Reply-To: mlmmj-test@domain.tld
7) If you want every mail to have something like:
To unsubscribe send a mail to coollist+unsubscribe@lists.domain.net
Just add what you want to a file named "footer" in the same dir as
"customheaders" (listdir/control/).
8) If you want a prefix on the subject, to make it look like this:
Subject: [mlmmj-test] how are we doing?
Simply do 'echo "[mlmmj-test]" > control/prefix
9) For having a moderated list, simply create a file called 'moderated' in the
control/ directory. Moderators are added to a file called 'moderators' in
the control/ dir as well.
10) Have a look at the file TUNABLES for runtime configurable things.
Tunables in include/mlmmj.h:
· There's some time intervals for how mlmmj-maintd operates. I've chosen
non-strict defaults, so depending on your BOFH rate you might want to tweak.
The defaults should be good for most people though.
Have fun!
mlmmj/README.postfix.md 0000664 0000000 0000000 00000020342 15023031135 0015136 0 ustar 00root root 0000000 0000000 README.postfix Jan 28th 2012
The main challenge to setting up Mlmmj with Postfix is that Mlmmj must be
executed by root or the owner of the list directory, but by default Postfix
will execute Mlmmj as 'nobody'[1].
There are a number of possible ways around this:
- Making 'nobody' own your lists (insecure) [2]
- Changing the Postfix default to an 'mlmmj' user (possibly insecure or
impractical) [3]
- .forward files (impractical) [4]
- Using an :include: file owned by an 'mlmmj' user (possibly insecure and
suboptimal) [5]
- Adding an alias table owned by an 'mlmmj' user (suboptimal) [6]
- Using a Postfix transport to run Mlmmj as an 'mlmmj' user (recommended)
As you can see, the last option is recommended. Here is how to set it up using
Postfix virtual domains (so you can host multiple domains on the same server).
(It can also be done with regular non-virtual aliases[7].)
1) Add an 'mlmmj' user to your system (e.g. using 'useradd'). It usually
makes sense to make this a 'system' user, with no password and no shell
(/usr/false for the shell), and for its home directory to be
/var/spool/mlmmj (or wherever you want to put your Mlmmj spool directory).
2) Create your Mlmmj spool directory (we'll assume it's /var/spool/mlmmj)
and change its owner to the 'mlmmj' user.
3) Add an 'mlmmj' transport which uses the pipe(8) delivery agent to execute
mlmmj-receive as the mlmmj user by adding something like the following to
master.cf (often in /etc/postfix)[8]:
# mlmmj mailing lists
mlmmj unix - n n - - pipe
flags=ORhu user=mlmmj argv=/usr/local/bin/mlmmj-receive -F -L /var/spool/mlmmj/$nexthop
Note that $nexthop is used to specify the list directory. We will return
to that later.
4) Integrate some necessary options in main.cf (also often in /etc/postfix):
# Only deliver one message to Mlmmj at a time
mlmmj_destination_recipient_limit = 1
# Consider the part after '+' but before '@' to be an address extension
# i.e. addresses have the form user+extension@domain.tld
recipient_delimiter = +
# A map to forward mail to a dummy domain
virtual_alias_maps = hash:/var/spool/mlmmj/virtual
# Allow virtual alias maps to specify only the user part of the address
# and have the +extension part preserved when forwarding, so that
# list-name+subscribe, list-name+confsub012345678, etc. will all work
propagate_unmatched_extensions = virtual
# A map to forward mail for the dummy domain to the Mlmmj transport
transport_maps = hash:/var/spool/mlmmj/transport
Of course, you may need to merge these options with existing ones (e.g.
you probably have existing virtual_alias_maps if you run a multi-domain
server).
It is probably unnecessary to change propagate_unmatched_extensions because
it defaults to something including 'virtual'. You can check this with
something like 'postconf | grep propagate'.
5) (For each list) Create a mailing list (e.g. by using mlmmj-make-ml). The
list directory should be like /var/spool/mlmmj/list-dir for a flat
structure, or /var/spool/mlmmj/domain.tld/list-name for a hierarchical
structure (the -s option to mlmmj-make-ml may be useful to get the list
created where you want it). Ensure the list directory and everything in it
is owned by the mlmmj user (except you may want control files to be owned
by your www server user in order to use web configuration interfaces; they
must be readable by the mlmmj user though).
6) (For each list) Add entries to the Postfix tables to accept mail for the
list and forward it to the Mlmmj transport:
/var/spool/mlmmj/virtual:
list-name@domain.tld domain.tld--list-name@localhost.mlmmj
/var/spool/mlmmj/transport:
# for a flat structure
domain.tld--list-name@localhost.mlmmj mlmmj:list-dir
# for a hierarchical structure
domain.tld--list-name@localhost.mlmmj mlmmj:domain.tld/list-name
Note that we have used a dummy domain 'localhost.mlmmj' to connect the
virtual alias with the Mlmmj transport. This could be anything as long as
it isn't a real domain. The user part of the address could also be
anything; as long as the address matches in both tables it should work.
Also note that the text after 'mlmmj:' becomes $nexthop which was mentioned
earlier, so it is used to specify the list directory when executing
mlmmj-receive.
7) Refresh your postfix tables and reload your configuration so it takes
effect.
postmap /var/spool/mlmmj/virtual
postmap /var/spool/mlmmj/transport
postfix reload
Enjoy your new lists!
[1] Actually, the standard local(8) delivery agent will execute external
programs (such as Mlmmj) as the 'receiving user'. However, unless you
direct your mail to Mlmmj using a .forward file (see local(8)) or an
:include: file (see aliases(5)), or your aliases file is not owned by root,
there is no 'receiving user'. Without a 'receiving user', Postfix uses the
user from the configuration option 'default_privs', which defaults to
'nobody'.
[2] Making 'nobody' own your lists is insecure because other programs and
daemons rely on 'nobody' not owning any files or having access to anything;
they use 'nobody' as a way of denying access and keeping all your files and
system secure. Most notably, some NFS implementations use 'nobody' when
somebody connects but fails to authenticate. Your mailing lists should not
be accessible in such situations, but they may be if they are owned by
'nobody'.
[3] Changing 'default_privs' to an 'mlmmj' user may open other security holes,
and may not be appropriate if Postfix is used for other external programs
besides Mlmmj.
[4] Using .forward files is not practical, as it requires a user to be created
for every mailing list.
[5] Using :include: files would require delivery to commands to be enabled in
:include: files, which is not recommended for security reasons. It is also
messy for virtual domains in the same way as an alias table owned by an
'mlmmj' user is[6].
[6] Adding an alias table owned by an 'mlmmj' user works, and doesn't pose any
great security risk. However, it is messy for virtual domains as you need
to forward mail from the virtual domain to your non-virtual domain and then
to Mlmmj. This results in each list having an additional address, which is
not desirable. That extra intermediate address is also included in mail
headers, which is not desirable (though it could be filtered out by Mlmmj).
Setting up an Mlmmj transport is about the same amount of work and doesn't
have these drawbacks. However, If you are not using virtual domains, this
is a good and simple option; but it will not be explained in detail here.
[7] To use non-virtual alises, at step 4, you'll need to incorporate:
alias_maps = hash:/var/spool/mlmmj/aliases
propagate_unmatched_extensions = alias
You probably will need to adjust propagate_unmatched_extensions in this
case, probably by adding 'alias' to the existing value rather than using
'alias' alone.
If you want to use 'newaliases' to update the alias table, you should also
incorporate:
alias_database = hash:/var/spool/mlmmj/aliases
At step 6, entries in /var/spool/mlmmj/aliases should look something like:
list-name: list-name@localhost.mlmmj
At step 7, you'll need:
postalias /var/spool/mlmmj/aliases
or (if you included alias_database above)
newaliases
And of course you can omit the virtual stuff if you're not using it.
Note that this has not been tested, but we believe it should work.
[8] The flags for the transport are pretty critical. In particular if the 'R'
option is not used mlmmj-receive fails to receive the mail correctly. The
options mean:
D - Prepend a 'Delivered-To: recipient' header (not used)
O - Prepend an 'X-Original-To: recipient' header
R - Prepend a 'Return-Path:'. header
h - fold $nexthop to lowercase
u - fold $recipient to lowercase
mlmmj/README.qmail.md 0000664 0000000 0000000 00000004514 15023031135 0014550 0 ustar 00root root 0000000 0000000 This mini-HOWTO is a step-by-step guide for using mlmmj with qmail MTA
(http://www.qmail.org/), and it has been successfully tested also with vpopmail
virtual domains (http://www.inter7.com/vpopmail/).
Prerequisites:
- qmail (and vpopmail) correctly installed
- mlmmj correctly installed
Conventions:
- ${BINDIR}: directory with mlmmj binary files (/usr/local/bin/)
- ${LISTDIR}: directory with list configuration files
(/var/spool/mlmmj/listname)
- ${DQFILE}: dot-qmail file (see below)
Configuration:
- the first thing you've to do is to create the list, using the
mlmmj-make-ml script (follow the classic procedure to do this step)
- enter the control directory for the list (${LISTDIR}/control/), and execute
the following command:
# cd ${LISTDIR}/control/; echo '-' > delimiter
- chown and chmod the file according to the mlmmj configuration
- create dot-qmail files for the list to handle direct requests and extensions:
# echo -e "|${BINDIR}/mlmmj-receive -L ${LISTDIR}" > ${DQFILE}
- chown and chmod the files according to the qmail (and vpopmail) configuration
WARNING: REMEMBER that the delimiter is -, so do not use + when composing mail
addresses for extensions!!!
WARNING: DO NOT USE 'preline' command in dot-qmail files, it will result in
mlmmj to not work properly!!!
----
Example:
- Configuring mlmmj to handle ml@programmazione.it mailing list using qmail as
MTA and vpopmail for virtual domain support:
# mlmmj-make-ml -c vpopmail:vchkpw -L ml
Creating Directorys below /var/spool/mlmmj. Use '-s spooldir' to change
The Domain for the List? [] : programmazione.it
The emailaddress of the list owner? [postmaster] : postmaster@programmazione.it
The path to texts for the list? [/usr/local/share/mlmmj/text.skel] :
chown -R vpopmail:vchkpw /var/spool/mlmmj/ml? [y/n]: y
# cd /var/spool/mlmmj/ml/control/
# echo '-' > delimiter
# chown vpopmail:vchkpw delimiter
# cd /home/vpopmail/domains/programmazione.it/
# echo -e "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/ml/" > .qmail-ml
# cp -a .qmail-ml .qmail-ml-default
# cat *-default
# chown vpopmail:vchkpw .qmail-ml .qmail-ml-default
# chmod 600 .qmail-ml .qmail-ml-default
----
Fabio Busatto
mlmmj/README.sendmail.md 0000664 0000000 0000000 00000007454 15023031135 0015247 0 ustar 00root root 0000000 0000000 Using sendmail + VERP
=====================
The following configuration enables VERP (http://cr.yp.to/proto/verp.txt) which
is useful for mailing list managers that are able to take advantage of that
feature.
This configuration is currently used for using the mlmmj manager
(http://mlmmj.mmj.dk) with VERP enabled + sendmail.
The hack consists in hooking VERP rewriting in a replacement ruleset for the
existing EnvFromSMTP one (called VerpEnvFromSMTP). This is going to work *only*
if we are splitting messages with multiple recipients in separate queue files
since the macro we are using for the rewriting ($u) is not set when multiple
rcpt are present.
The first step consists in forcing envelope splitting, this is done using the
QUEUE\_GROUP feature, here we are definining r=1 (max 1 rcpt per message) for the
default queue group:
QUEUE_GROUP(`mqueue', `P=/var/spool/mqueue, F=f, I=1m, R=2, r=1')
Since we are going to split a lot it's advisable to use the FAST\_SPLIT option,
additionally we need to enforce return-path inclusion in the local mailer:
define(`confFAST_SPLIT', `100')dnl
define(`LOCAL_SHELL_FLAGS', `eu9P')dnl
Then we define a regex map for matching the addresses that we are going to
rewrite, in our example we'll rewrite addresses like
with
where user@foo.net is the recipient address of the message. So we need to apply
our verp ruleset *only* to those addresses. Additionally we are also adding the
Delivered-To header:
LOCAL_CONFIG
Kmatch_verp regex -m -a@VERP (listname\+bounces\-[0-9]+<@domain\.net\.?>)
H?l?Delivered-To: $u
Here's the ruleset, the first half of the ruleset is the existing EnvFromSMTP
ruleset present in default sendmail.cf, the seconf half is the VERP stuff:
SVerpEnvFromSMTP
R$+ $: $>PseudoToReal $1 sender/recipient common
R$* :; <@> $@ list:; special case
R$* $: $>MasqSMTP $1 qualify unqual'ed names
R$+ $: $>MasqEnv $1 do masquerading
R $* $: $(match_verp $1 $) match the address
R $* + $* < @ $* . > $* @VERP $: $1 + $2 - $&u < @ $3 . > $4 VERP rewrite it using $u macro and add VERP string for failsafe
R $* - < @ $* . > $* VERP $: $1 < @ $2 . > $3 if $u wasn't defined rewrite the address back
R $* - < $+ @ $+ > < @ $* . > $* VERP $: $(dequote $1 "-" $2 "=" $3 $) < @ $4 . > $5 replace the "@" in rcpt address with "="
R $* - $+ @ $+ < @ $* . > $* VERP $: $(dequote $1 "-" $2 "=" $3 $) < @ $4 . > $5 replace the "@" in rcpt address with "="
Finally we need to rewrite the mailer definition for the used mailer (typically
esmtp) specifying VerpEnvFromSMTP as the sender rewrite ruleset:
MAILER_DEFINITIONS
Mesmtp, P=[IPC], F=mDFMuXa, S=VerpEnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
NOTE: for mailing list servers it's also a good idea keeping existing
Delivered-To headers, sendmail needs the following patch for doing this
--- sendmail/conf.c.orig 2004-07-14 21:54:23.000000000 +0000
+++ sendmail/conf.c 2004-12-06 15:22:05.000000000 +0000
@@ -117,6 +117,7 @@
{ "content-length", H_ACHECK, NULL },
{ "subject", H_ENCODABLE, NULL },
{ "x-authentication-warning", H_FORCE, NULL },
+ { "delivered-to", H_FORCE, NULL },
{ NULL, 0, NULL }
};
Andrea Barisani
mlmmj/TODO 0000664 0000000 0000000 00000000544 15023031135 0012656 0 ustar 00root root 0000000 0000000 Code cleanup:
o Make RECIPDELIM configurable (compile and/or runtime)
o Add some more logging to mlmmj-maintd--actually we have to rethink logging a
bit. We want to log everything to syslog/mlmmj.
Functionality items:
o control/preexec and control/postexec.
Nice to do:
o Add memory debugging features ("At exit you had the following allocated:")
mlmmj/TUNABLES.md 0000664 0000000 0000000 00000022066 15023031135 0013730 0 ustar 00root root 0000000 0000000
TUNABLES for lists managed with mlmmj
=====================================
The following files can be used for changing the behaviour of a list. The
filename is supposed to be below listdir/control. In the case it's a "boolean",
the contents of a file does not matter, the mere presence of it, will set the
variable to "true". If it's a "normal" file, the first line will be used as
value, leaving line 2 and forward ready for commentary etc. If it's possible
to specify several entries (one pr. line), it's marked "list". If the file's
entire content is used as value, it's marked "text".
* listaddress (list)
This file contains all addresses which mlmmj sees as listaddresses (see
tocc below). The first one is the one used as the primary one, when mlmmj
sends out mail.
* closedlist (boolean)
Is the list is open or closed. If it's closed subscription and
unsubscription via mail is disabled.
* closedlistsub (boolean)
Closed for subscription. Unsubscription is possible.
* moderated (boolean)
If this file is present, the emailaddresses in the file
listdir/control/moderators will act as moderators for the list.
* submod (list)
If this file is present, subscription will be moderated by owner(s).
If there are emailaddresses in this file, then these will be used
instead of owner.
* tocc (boolean)
If this file is present, the list address does not have to be in the To:
or Cc: header of the email to the list.
* subonlypost (boolean)
When this file is present, only people who are subscribed to the list,
are allowed to post to it. The check is made against the "From:" header.
* modonlypost (boolean)
When this file is present, only people listed in listdir/control/moderators
are allowed to post to it. The check is made against the "From:" header.
* modnonsubposts (boolean)
When this file is present, all postings from people who are not allowed
to post to the list will be moderated instead of denied.
* modreqlife (normal)
This specifies how long in seconds a mail awaits moderation before it's
discarded. Defaults to 604800 seconds, which is 7 days.
* prefix (normal)
The prefix for the Subject: line of mails to the list. This will alter the
Subject: line, and add a prefix if it's not present elsewhere.
* replyto (boolean)
When this file is present, the From: line of mails will be added as a
Reply-To: header. This allows the mail to be delivered safely when DMARC
protected emails are received from the list.
* owner (list)
The emailaddresses in this file (1 pr. line) will get mails to
listname+owner@listdomain.tld
* customheaders (list)
These headers are added to every mail coming through. This is the place you
want to add Reply-To: header in case you want such.
* delheaders (list)
In this file is specified *ONE* headertoken to match pr. line. If the file
consists of:
Received:
Message-ID:
Then all occurences of these headers in incoming list mail will be deleted.
"From " and "Return-Path:" are deleted no matter what.
* access (list)
If this file exists, all headers of a post to the list is matched against
the rules. The first rule to match wins. See README.access for syntax and
examples.
* addtohdr (boolean)
When this file is present, a To: header including the recipients
emailaddress will be added to outgoing mail. Recommended usage is to remove
existing To: headers with delheaders (see above) first.
* relayhost (normal)
The host specified (IP address or hostname, both works) in this file will
be used for relaying the mail sent to the list. Defaults to 127.0.0.1.
* notifysub (boolean)
If this file is present, the owner(s) will get a mail with the address of
someone sub/unsubscribing to a mailinglist.
* notifymod (boolean)
If this file is present, the poster (based on the envelope from) will
get a mail when their post is being moderated.
* digestinterval (normal)
This file specifies how many seconds will pass before the next digest is
sent. Defaults to 604800 seconds, which is 7 days.
* digestmaxmails (normal)
This file specifies how many mails can accumulate before digest sending is
triggered. Defaults to 50 mails, meaning that if 50 mails arrive to the list
before digestinterval have passed, the digest is delivered.
* bouncelife (normal)
This specifies how long in seconds an address can bounce before it's
unsubscribed. Defaults to 432000 seconds, which is 5 days.
* noarchive (boolean)
If this file exists, the mail won't be saved in the archive but simply
deleted.
* nosubconfirm (boolean)
If this file exists, no mail confirmation is needed to subscribe to the
list. This should in principle never ever be used, but there are times
on local lists etc. where this is useful. HANDLE WITH CARE!
* noget (boolean)
If this file exists, then retrieving old posts with +get-N is disabled.
* subonlyget (boolean)
If this file exists, then retrieving old posts with +get-N is only
possible for subscribers. The above mentioned 'noget' have precedence.
* verp (normal)
Control how Mlmmj does VERP (variable envelope return path). If this tunable
does not exist, Mlmmj will send a message to the SMTP server for each
recipient, with an appropriate envelope return path, i.e. it will handle
VERP itself. If the tunable does exist, Mlmmj will instead divide the
recipients into groups (the maximum number of recipients in a group can be
controlled by the maxverprecips tunable) and send one message to the SMTP
server per group. The content of this tunable allows VERP to be handled by
the SMTP server. If the tunable contains "postfix", Mlmmj will make Postfix
use VERP by adding XVERP=-= to the MAIL FROM: line. If it contains something
else, that text will be appended to the MAIL FROM: line. If it contains
nothing, VERP will effectively be disabled, as neither Mlmmj nor the SMTP
server will do it.
* maxverprecips (normal)
How many recipients per mail delivered to the SMTP server. Defaults to 100.
* notoccdenymails (boolean)
* noaccessdenymails (boolean)
* nosubonlydenymails (boolean)
* nomodonlydenymails (boolean)
These switches turns off whether mlmmj sends out notification about postings
being denied due to the listaddress not being in To: or Cc: (see 'tocc'),
when it was rejected due to an access rule (see 'access') or whether it's a
subscribers/moderators only posting list (see 'subonlypost/modonlypost').
* nosubmodmails (boolean)
This switch turns off whether mlmmj sends out notification about
subscription being moderated to the person requesting subscription
(see 'submod').
* smtpport (normal)
In this file a port other than port 25 for connecting to the relayhost
can be specified.
* delimiter (normal)
This specifies what to use as recipient delimiter for the list.
Default is "+".
* nodigesttext (boolean)
If this file exists, digest mails won't have a text part with a thread
summary.
* nodigestsub (boolean)
If this file exists, subscription to the digest version of the mailinglist
will be denied. (Useful if you don't want to allow digests and notify users
about it).
* nonomailsub (boolean)
If this file exists, subscription to the nomail version of the mailinglist
will be denied. (Useful if you don't want to allow nomail and notify users
about it).
* maxmailsize (normal)
With this option the maximal allowed size of incoming mails can be specified.
* nomaxmailsizedenymails (boolean)
If this is set, no reject notifications caused by violation of maxmailsize
will be sent.
* nolistsubsemail (boolean)
If this is set, the LISTNAME+list@ functionality for requesting an
email with the subscribers for owner is disabled.
* staticbounceaddr (normal)
If this is set to something@example.org, the bounce address (Return-Path:)
will be fixed to something+listname-bounces-and-so-on@example.org
in case you need to disable automatic bounce handling.
* ifmodsendonlymodmoderate (boolean)
If this file is present, then mlmmj in case of moderation checks the
envelope from, to see if the sender is a moderator, and in that case
only send the moderation mails to that address. In practice this means that
a moderator sending mail to the list won't bother all the other moderators
with his mail.
* footer (text)
The content of this file is appended to mail sent to the list.
* notmetoo (boolean)
If this file is present, mlmmj attempts to exclude the sender of a post
from the distribution list for that post so people don't receive copies
of their own posts.
* smtphelo (normal)
When this file is present, it contains the hostname to send in the SMTP
EHLO or HELO command. Otherwise the machine hostname is used.
* send (list)
The file contains a list of email address for which the mail will be sent
unconditionally. It will not be moderated, nor subject to subonlypost, nor
modnonsubposts.
mlmmj/UPGRADE 0000664 0000000 0000000 00000003630 15023031135 0013177 0 ustar 00root root 0000000 0000000
This applies to everyone using Mlmmj < 1.2.18.0:
------------------------------------------------
Updating the list texts is optional but highly recommended, as they have been
vastly improved for this version.
Users of the php-admin interface need to modify configuration files to define
$confdir.
Be aware of the following new features you may wish to turn on or use:
- Richer list texts (including a new naming scheme, conditionals, automatic
wrapping and true UTF-8 support). See README.listtexts for more details.
- Notifying posters when their posts are being moderated (notifymod tunable).
- Not-me-too feature to avoid having the poster receiving their own messages
(notmetoo tunable).
- Ability to explicitly reject posts (exposed in new list texts).
- Ability to explicitly obstruct subscriptions (exposed in new list texts).
- Unsubscribe from all versions of a list at once (changed behaviour of
+unsubscribe[-{digest|nomail}]; they now all remove the subscriber from all
versions of the list).
- Ability to switch between different versions of a list by using
+subscribe[-{digest|nomail|both}] ('both' means normal and digest, and is a
'hidden feature' not mentioned in the supplied list texts).
- Subscription ability in php-admin.
This applies to everyone using mlmmj < 1.1.0:
---------------------------------------------
Don't forget to upgrade the listtexts. Listtext handling was
completely rewritten and the subject is now translateable as well.
Don't forget to create the new directories needed for digest and
nomail version of the list. listdir/subscribers.d and listdir/nomailsubs.d
This applies to everyone using mlmmj < 0.8.3:
---------------------------------------------
Don't forget to upgrade the listtexts!
This applies to everyone using mlmmj > 0.7.2:
---------------------------------------------
Don't forget to add the emailaddress of the list owner
in listdir/control/owner
mlmmj/configure.ac 0000664 0000000 0000000 00000007374 15023031135 0014464 0 ustar 00root root 0000000 0000000 # Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([mlmmj],[1.6.0],[bapt@nours.eu])
VERSION=$PACKAGE_VERSION
AC_SUBST(VERSION)
AC_CONFIG_SRCDIR([src/mlmmj-receive.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.13 dist-xz foreign subdir-objects])
# Enable silent rules by default
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
# Checks for libraries.
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(iconv,iconv_open)
AC_CHECK_HEADERS([syslog.h ])
AC_CHECK_HEADER([iconv.h])
savex=$exec_prefix
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
tmp=$datadir/$PACKAGE/text.skel
while textlibdir=`eval echo "$tmp"`; test "x$textlibdir" != "x$tmp"; do tmp=$textlibdir; done
exec_prefix=$savex
AC_SUBST(textlibdir)
AC_ARG_ENABLE([coverage],
AS_HELP_STRING([--enable-coverage],
[build with coverage flags activated (default is no)]))
AS_IF([test x"$enable_coverage" = xyes], [
COVERAGE_CFLAGS="-O0 -ggdb -fprofile-arcs -ftest-coverage -fprofile-generate"
COVERAGE_LDFLAGS="-fprofile-generate"
])
AC_ARG_ENABLE([asan],
AS_HELP_STRING([--enable-asan],
[build with libasan (default is no)]))
AS_IF([test x"$enable_asan" = xyes], [
ASAN_CFLAGS="-O0 -ggdb -fsanitize=address"
ASAN_LDFLAGS="-fsanitize=address"
])
AC_ARG_ENABLE([ubsan],
AS_HELP_STRING([--enable-ubsan],
[build with libubsan (default is no)]))
AS_IF([test x"$enable_ubsan" = xyes], [
UBSAN_CFLAGS="-O0 -ggdb -fsanitize=undefined"
UBSAN_LDFLAGS="-fsanitize=undefined"
])
AC_ARG_ENABLE([receive-strip],
AS_HELP_STRING([--enable-receive-strip],
[build mlmmj-receive-strip (default is no)]))
AM_CONDITIONAL(WANT_RECEIVESTRIP, test x"$enable_receive_strip" = xyes)
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--disable-tests],
[build tests (default is yes)]),
[:], [enable_tests=yes]
)
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([syslog])
AC_CHECK_FUNCS([arc4random_uniform copy_file_range])
AS_IF([test x"$enable_tests" = xyes], [
PKG_CHECK_MODULES([ATF], [atf-c])
AC_PATH_PROG([ATFSH], [atf-sh])
AC_PATH_PROG([KYUA], [kyua])
AS_IF([test "x$KYUA" == "x"], [
AC_MSG_ERROR([A 'kyua' binary is required when the tests are enabled. Set the PATH or use the KYUA environment variable to specify its location.])
])
AS_IF([test "x$ATFSH" == "x"], [
AC_MSG_ERROR([An 'atf-sh' binary is required when the tests are enabled. Set the PATH or use the ATFSH environment variable to specify its location.])
])
])
AM_CONDITIONAL([WANT_TESTS], [test x"$enable_tests" = xyes])
AM_CPPFLAGS="-I\$(top_srcdir)/include -DDEFAULTTEXTDIR='\"\$(textlibdir)\"'"
AC_SUBST(AM_CPPFLAGS)
AM_CFLAGS="-g -Wall -std=gnu99 -D_GNU_SOURCE=1 -Wextra -pedantic -Wsign-compare $COVERAGE_CFLAGS $ASAN_CFLAGS $UBSAN_CFLAGS"
AC_SUBST(AM_CFLAGS)
AM_LDFLAGS="$COVERAGE_LDFLAGS $ASAN_LDFLAGS $UBSAN_LDFLAGS"
AC_SUBST(AM_LDFLAGS)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([kyua.conf])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([src/mlmmj-make-ml])
AC_CONFIG_FILES([listtexts/Makefile])
AC_CONFIG_FILES([contrib/Makefile])
AC_CONFIG_FILES([contrib/receivestrip/Makefile])
AC_CONFIG_FILES([tests/test_env.sh])
AC_CONFIG_FILES([tests/functional-tests],[chmod +x tests/functional-tests])
AC_CONFIG_FILES([tests/mlmmj-bounce],[chmod +x tests/mlmmj-bounce])
AC_CONFIG_FILES([tests/mlmmj-list],[chmod +x tests/mlmmj-list])
AC_CONFIG_FILES([tests/mlmmj-maintd],[chmod +x tests/mlmmj-maintd])
AC_CONFIG_FILES([tests/mlmmj-process],[chmod +x tests/mlmmj-process])
AC_CONFIG_FILES([tests/mlmmj-receive],[chmod +x tests/mlmmj-receive])
AC_CONFIG_FILES([tests/mlmmj-send],[chmod +x tests/mlmmj-send])
AC_CONFIG_FILES([tests/mlmmj-sub],[chmod +x tests/mlmmj-sub])
AC_OUTPUT
mlmmj/contrib/ 0000775 0000000 0000000 00000000000 15023031135 0013623 5 ustar 00root root 0000000 0000000 mlmmj/contrib/Makefile.am 0000664 0000000 0000000 00000000161 15023031135 0015655 0 ustar 00root root 0000000 0000000 ## Process this file with automake to produce Makefile.in
EXTRA_DIST = web amime-receive
SUBDIRS = receivestrip
mlmmj/contrib/amime-receive/ 0000775 0000000 0000000 00000000000 15023031135 0016333 5 ustar 00root root 0000000 0000000 mlmmj/contrib/amime-receive/mlmmj-amime-receive 0000775 0000000 0000000 00000004211 15023031135 0022101 0 ustar 00root root 0000000 0000000 #!/bin/bash
#
# mlmmj-amime-receive
#
# Take mail from stdin, pipe it through altermime and then to mlmmj-receive
# needed to add footers in a MIME-aware way
#
# requires altermime, see http://www.pldaniels.com/altermime/
#
# just replace mlmmj-receive with mlmmj-amime-receive, e.g. in /etc/aliases:
# myml: "|/usr/bin/mlmmj-amime-receive -L /var/spool/mlmmj/myml/"
#
# put the footer-text for the different MIME-types into
# control/amime-footer-text
# control/amime-footer-html
# control/amime-footer-base64
#
# Copyright 2008 by Gerd v. Egidy,
#
# Licensed under MIT License, see LICENSE file coming with mlmmj
#
MLMMJRECEIVE=/usr/bin/mlmmj-receive
ALTERMIME=/usr/bin/altermime
# check executables
if ! [ -x $MLMMJRECEIVE ]; then
echo "can't find $MLMMJRECEIVE executable, aborting"
exit 1
fi
if ! [ -x $ALTERMIME ]; then
echo "can't find $ALTERMIME executable, aborting"
exit 1
fi
# read parameters
I=1
PARAM_L=0
while [ $I -le $# ] && [ $PARAM_L == 0 ]; do
if [ "${!I}" == "-L" ]; then
PARAM_L=1
fi
I=$[$I+1]
done
if [ $PARAM_L == 1 ] && [ $I -le $# ]; then
MLPATH="${!I}"
else
echo "parameter -L /path/to/listdir missing, aborting"
exit 1
fi
if ! [ -d "${MLPATH}" ]; then
echo "${MLPATH} is not existing or no directory, aborting"
exit 1
fi
CONTROLD="${MLPATH}/control"
if ! [ -d "${CONTROLD}" ]; then
echo "${CONTROLD} is not existing or no directory, aborting"
exit 1
fi
# look for footer-files and build parameters
if ! [ -f "${CONTROLD}/amime-footer-text" ]; then
echo "${CONTROLD}/amime-footer-text is not existing or no regular file, aborting"
exit 1
fi
PARAM="--disclaimer=${CONTROLD}/amime-footer-text"
if [ -f "${CONTROLD}/amime-footer-html" ]; then
PARAM="${PARAM} --disclaimer-html=${CONTROLD}/amime-footer-html --htmltoo --force-for-bad-html"
fi
if [ -f "${CONTROLD}/amime-footer-base64" ]; then
PARAM="${PARAM} --disclaimer-b64=${CONTROLD}/amime-footer-base64"
fi
PARAM="${PARAM} --altersigned --log-syslog"
# go to a dir where altermime can write it's tmp-files safely
cd $MLPATH
# pipe the calls
$ALTERMIME --input=- ${PARAM} | $MLMMJRECEIVE "$@"
mlmmj/contrib/receivestrip/ 0000775 0000000 0000000 00000000000 15023031135 0016327 5 ustar 00root root 0000000 0000000 mlmmj/contrib/receivestrip/Makefile.am 0000664 0000000 0000000 00000000305 15023031135 0020361 0 ustar 00root root 0000000 0000000 #
if WANT_RECEIVESTRIP
bin_PROGRAMS = mlmmj-receive-strip
endif
mlmmj_receive_strip_SOURCES = mlmmj-receive-strip.c $(MLMMJ_SOURCES)
mlmmj_receive_strip_LDADD = $(top_builddir)/src/libmlmmj.a
mlmmj/contrib/receivestrip/README 0000664 0000000 0000000 00000002353 15023031135 0017212 0 ustar 00root root 0000000 0000000 mlmmj-receive-strip is a replacement for mlmmj-receive
It opens the files control/mimedeny and control/mimestrip to get a list of mimetypes
for parts of multipart/mime messages that should be denied or stripped
The parts then get stripped directly when the mail is received.
mlmmj-receive-strip also appends an extra header
X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted mime parts
Usage:
Compile the program in this directory with make and use "make install" to install it.
Afterwards replace mlmmj-receive with mlmmj-receive-strip in /etc/aliases for the mailinglist
you want to enable stripping and run newaliases
Then create the files mimedeny mimestrip in the control directory of your mailinglist.
If control/mimestrip for example contains:
text/html
application/octet-stream
html texts and binarys will be stripped from the mail.
When you also want to deny mails with certain mimeparts add the mimetypes to the mimedeny file
and add the following lines to the control/access file:
deny ^X-ThisMailContainsUnwantedMimeParts: Y
allow
You will most likely want to remove the X-ThisMailContainsUnwantedMimeParts
header by adding the following line to the control/delheaders file:
X-ThisMailContainsUnwantedMimeParts:
mlmmj/contrib/receivestrip/mlmmj-receive-strip.c 0000664 0000000 0000000 00000024523 15023031135 0022374 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2007 Sascha Sommer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/* a version of mlmmj-receive that parses the mail on the fly and strips unwanted
mime parts
opens the files control/mimedeny and control/mimestrip for a list of mime
types for body parts that should be denied or stripped.
It adds an extra header X-ThisMailContainsUnwantedMimeParts: Y for mails that
contain disallowed mimeparts and X-ThisMailContainsUnwantedMimeParts: N otherwise
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "mlmmj.h"
#include "mygetline.h"
#include "gethdrline.h"
#include "strgen.h"
#include "chomp.h"
#include "ctrlvalue.h"
#include "ctrlvalues.h"
#include "utils.h"
#include "do_all_the_voodoo_here.h"
#include "log_error.h"
#include "wrappers.h"
#include "xmalloc.h"
#include "utils.h"
#define UNWANTED_MIME_HDR "X-ThisMailContainsUnwantedMimeParts: N\n"
/* read all mail headers and save them in a strlist
* check what to do with parts that contain the given mime_type
*return values
* 0: ok
* 1: strip
* sets deny to 1 if the entire mail should be denied
*/
#define MIME_OK 0
#define MIME_STRIP 1
static int read_hdrs(int fd, strlist *allhdrs, strlist* delmime, strlist* denymime,int* deny,char** boundary) {
int result = MIME_OK;
char* mime_type = NULL;
char *tmp;
/* read headers */
while(1) {
char* line = mygetline(fd);
if(!line) /* end of file and also end of headers */
break;
/* end of headers */
if(line[0] == '\n'){
free(line);
break;
}
if(!tll_length(*allhdrs) || ((line[0] != '\t') && (line[0] != ' '))) /* first header line or no more unfolding */
tll_push_back(*allhdrs, line);
else{
xasprintf(&tmp, "%s%s", tll_back(*allhdrs), line);
free(tll_pop_back(*allhdrs));
tll_push_back(*allhdrs, tmp);
}
free(line);
}
parse_content_type(allhdrs,&mime_type,boundary);
if(mime_type) {
/* check if this part should be stripped */
if(delmime && findit(mime_type, delmime))
result = MIME_STRIP;
/* check if the mail should be denied */
if(denymime && findit(mime_type, denymime))
*deny = 1;
free(mime_type);
}
return result;
}
/* writes the mail headers if unwantedmime_hdrpos is not NULL an UNWANTED_MIME_HDR
* is inserted and its position saved in unwantedmime_hdrpos
* returns 0 on success
*/
static int write_hdrs(int outfd, strlist* hdrs,off_t* unwantedmime_hdrpos) {
tll_foreach(*hdrs, hdr) {
if(dprintf(outfd, "%s", hdr->item) < 0){
log_error(LOG_ARGS, "Error when dumping headers");
return -1;
}
}
/* if this is not the header of an embedded part add the header that will
indicate if the mail contains unwanted mime parts */
if(unwantedmime_hdrpos) {
if(dprintf(outfd, "%s", UNWANTED_MIME_HDR) < 0){
log_error(LOG_ARGS, "Error writting unwanted mime header");
return -1;
}
/* get the current position so that we can update the header later */
*unwantedmime_hdrpos = lseek(outfd,0,SEEK_CUR);
if(*unwantedmime_hdrpos < 2){
log_error(LOG_ARGS, "Error getting file position");
return -1;
}
*unwantedmime_hdrpos -= 2;
}
/* write a single line feed to terminate the header part */
if(dprintf(outfd, "\n") < 0) {
log_error(LOG_ARGS,"Error writting end of hdrs.");
return -1;
}
return 0;
}
/* set the unwanted mime_hdr to Y */
static int update_unwantedmime_hdr(int outfd,off_t unwantedmime_hdrpos) {
/* seek to the header position */
if(lseek(outfd,unwantedmime_hdrpos,SEEK_SET) < 0) {
log_error(LOG_ARGS,"Error seeking to the unwantedmime_hdr");
return -1;
}
/* update the header */
if(dprintf(outfd, "Y\n") < 0){
log_error(LOG_ARGS, "Error writting extra header");
return -1;
}
/* seek back to the end of the mail */
if(lseek(outfd,0,SEEK_END) < 0) {
log_error(LOG_ARGS,"Error seeking to the mail end");
return -1;
}
return 0;
}
static int parse_body(int infd,int outfd, strlist* delmime, strlist* denymime,
int* deny,char* boundary){
int strip = 0;
char* line;
while((line = mygetline(infd))) {
if(boundary && !strncmp(line,boundary,strlen(boundary))){
strip = 0;
/* check if the boundary is the beginning of a new part */
if(strncmp(line + strlen(boundary),"--",2)){
strlist hdrs = tll_init();
char* new_boundary = NULL;
/* check if this part should be stripped */
if(read_hdrs(infd, &hdrs,delmime,denymime,deny,&new_boundary) == MIME_STRIP)
strip = 1;
else {
/* write boundary */
if(dprintf(outfd, "%s", line) < 0){
log_error(LOG_ARGS, "Error writting boundary");
return -1;
}
/* write hdr */
if(write_hdrs(outfd, &hdrs, NULL) < 0){
log_error(LOG_ARGS, "Error writting hdrs");
return -1;
}
/* parse embedded part if a new boundary was found */
if(new_boundary && parse_body(infd,outfd,delmime,denymime,deny,new_boundary) != 0) {
log_error(LOG_ARGS, "Could not parse embedded part");
return -1;
}
}
tll_free_and_free(hdrs, free);
if(new_boundary)
free(new_boundary);
}else{
/* write end of part */
if(dprintf(outfd, "%s", line) < 0){
log_error(LOG_ARGS, "Error writting hdrs");
return -1;
}
/* and leave */
free(line);
break;
}
}else {
if(!strip) { /* write the current line */
if(dprintf(outfd, "%s", line) < 0){
log_error(LOG_ARGS, "Error when dumping line");
return -1;
}
}
}
free(line);
}
return 0;
}
/* read a mail stripping unwanted parts */
static int dump_mail(int infd, int outfd,char* listdir) {
strlist hdrs = tll_init();
strlist *delmime;
strlist *denymime;
char* boundary=NULL;
int deny = 0;
int result, ctrlfd;
off_t unwantedmime_hdr_pos = 0;
char *dir;
xasprintf(&dir, "%s/control", listdir);
ctrlfd = open(dir, O_RDONLY|O_CLOEXEC);
/* get list control values */
delmime = ctrlvalues(ctrlfd, "mimestrip");
denymime = ctrlvalues(ctrlfd, "mimedeny");
/* read mail header */
result = read_hdrs(infd, &hdrs,delmime,denymime,&deny,&boundary);
/* write mail header */
if(write_hdrs(outfd,&hdrs,&unwantedmime_hdr_pos) < 0) {
log_error(LOG_ARGS, "Could not write mail headers");
return -1;
}
/* free mail header */
tll_free_and_free(hdrs, free);
if(result == MIME_OK && !deny) {
/* try to parse the mail */
if(parse_body(infd,outfd,delmime,denymime,&deny,boundary) != 0) {
log_error(LOG_ARGS, "Could not parse mail");
return -1;
}
free(boundary);
}else
deny = 1;
/* dump rest of mail */
if(dumpfd2fd(infd, outfd) != 0) {
log_error(LOG_ARGS, "Could not receive mail");
return -1;
}
/* update header */
if(deny) {
if(update_unwantedmime_hdr(outfd,unwantedmime_hdr_pos) != 0) {
log_error(LOG_ARGS, "Could not update header");
return -1;
}
}
/* free mime types */
if(delmime) {
tll_free_and_free(*delmime, free);
free(delmime);
}
if(denymime) {
tll_free_and_free(*denymime, free);
free(denymime);
}
return 0;
}
static void print_help(const char *prg)
{
printf("Usage: %s -L /path/to/listdir [-h] [-V] [-P] [-F]\n"
" -h: This help\n"
" -F: Don't fork in the background\n"
" -L: Full path to list directory\n"
" -P: Don't execute mlmmj-process\n"
" -V: Print version\n", prg);
exit(EXIT_SUCCESS);
}
int main(int argc, char **argv)
{
char *infilename = NULL, *listdir = NULL;
char *randomstr = NULL;
char *mlmmjprocess, *bindir;
int fd, opt, noprocess = 0, nofork = 0;
int incfd, listfd;
CHECKFULLPATH(argv[0]);
log_set_name(argv[0]);
bindir = mydirname(argv[0]);
xasprintf(&mlmmjprocess, "%s/mlmmj-process", bindir);
free(bindir);
while ((opt = getopt(argc, argv, "hPVL:s:e:F")) != -1) {
switch(opt) {
case 'h':
print_help(argv[0]);
break;
case 'L':
listdir = optarg;
break;
case 's':
setenv("SENDER", optarg, 1);
break;
case 'e':
setenv("EXTENSION", optarg, 1);
break;
case 'P':
noprocess = 1;
break;
case 'F':
nofork = 1;
break;
case 'V':
print_version(argv[0]);
exit(0);
}
}
if(listdir == NULL) {
errx(EXIT_FAILURE, "You have to specify -L\n"
"%s -h for help", argv[0]);
}
listfd = open_listdir(listdir, true);
incfd = openat(listfd, "incoming", O_DIRECTORY|O_CLOEXEC);
if (incfd == -1)
err(EXIT_FAILURE, "Cannot open(%s/incoming)", listdir);
do {
free(randomstr);
randomstr = random_str();
fd = openat(incfd, randomstr, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
} while(fd < 0 && errno == EEXIST);
xasprintf(&infilename, "%s/incoming/%s", listdir, randomstr);
free(randomstr);
if(fd < 0) {
log_error(LOG_ARGS, "could not create mail file in "
"%s/incoming directory", listdir);
free(infilename);
exit(EXIT_FAILURE);
}
if(dump_mail(fileno(stdin), fd, listdir) != 0) {
log_error(LOG_ARGS, "Could not receive mail");
exit(EXIT_FAILURE);
}
#if 0
log_oper(listdir, OPLOGFNAME, "mlmmj-receive got %s", infilename);
#endif
fsync(fd);
close(fd);
if(noprocess) {
free(infilename);
exit(EXIT_SUCCESS);
}
/*
* Now we fork so we can exit with success since it could potentially
* take a long time for mlmmj-send to finish delivering the mails and
* returning, making it susceptible to getting a SIGKILL from the
* mailserver invoking mlmmj-receive.
*/
if (!nofork)
daemon(1, 0);
exec_or_die(mlmmjprocess, "-L", listdir, "-m", infilename, NULL);
}
mlmmj/contrib/web/ 0000775 0000000 0000000 00000000000 15023031135 0014400 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/perl-admin/ 0000775 0000000 0000000 00000000000 15023031135 0016430 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/perl-admin/README 0000664 0000000 0000000 00000005015 15023031135 0017311 0 ustar 00root root 0000000 0000000 mlmmj-1.0.0 August 20th 2004
To use this web-interface you have to:
0) Make sure you have the CGI::FastTemplate perl module installed. If not, then
install it. It has no dependencies to other perl modules.
1) Copy the files from the perl-admin directory of the mlmmj distribution to a
suitable location and point your webroot to the htdocs directory. If you
don't want the webinterface in the root of your website it is recommended to
make an alias in your web server configuration in order to keep the conf
directory at the same level as the htdocs directory and still outside
webscope.
2) You need to enable cgi in your apache configuration like this
Options ExecCGI
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
3) Change the permissions of the listdir/control directories of any list you
want to control using the web-interface, so the web server can write in it:
# chown -R wwwrun /var/spool/mlmmj/mlmmj-test/control/
4) If the web server does not run as the same user the mailserver writes as
you need to create a group (eg. mlmmj) and add both users to it. The
subscribers.d directory then needs to be writable by that group:
# chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/subscribers.d
# chmod -R g+w /var/spool/mlmmj/mlmmj-test/subscribers.d
# chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/digesters.d
# chmod -R g+w /var/spool/mlmmj/mlmmj-test/digesters.d
# chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/nomailsubs.d
# chmod -R g+w /var/spool/mlmmj/mlmmj-test/nomailsubs.d
# chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/text
# chmod -R g+w /var/spool/mlmmj/mlmmj-test/text
To enable access control on Apache you have to:
5) Rename dot.htaccess to .htaccess and edit the path inside the file to point
to a htpasswd file somewhere outside the webscope.
If you don't have one already, you can create one like this
htpasswd -c /home/mlmmj/htpasswd USER
It will then ask you for a password for the given username.
6) That is it, you are ready to use the interface.
Further customization:
You can set two environment variables in your apache config to control the
configuration of the mlmmj webinterface. Remember to have mod_env loaded if
you do this.
SetEnv CONFIG_PATH /home/mlmmj/conf/config.pl
SetEnv TUNABLES_PATH /home/mlmmj/conf/tunables.pl
This allows you to run several instances of the webinterface with e.g. different
topdirs, translated to another language or with another layout.
mlmmj/contrib/web/perl-admin/conf/ 0000775 0000000 0000000 00000000000 15023031135 0017355 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/perl-admin/conf/config.pl 0000775 0000000 0000000 00000000106 15023031135 0021157 0 ustar 00root root 0000000 0000000 $topdir = "/var/spool/mlmmj";
$templatedir = "/home/mlmmj/templates";
mlmmj/contrib/web/perl-admin/conf/tunables.pl 0000664 0000000 0000000 00000023454 15023031135 0021537 0 ustar 00root root 0000000 0000000 mlmmj_list("listaddress",
"List address",
"This option contains all addresses which mlmmj sees as listaddresses (see ".
"tocc below). The first one is the one used as the primary one, when mlmmj ".
"sends out mail.");
mlmmj_boolean("closedlist",
"Closed list",
"If the list is open or closed. If it's closed subscription ".
"and unsubscription via mail is disabled.");
mlmmj_boolean("closedlistsub",
"Closed for subscription",
"Closed for subscription. Unsubscription is possible.");
mlmmj_boolean("nosubconfirm",
"No subscribe confirmation",
"If this option is set, the user is not required to confirm when subscribing or unsubscribing.");
mlmmj_boolean("moderated",
"Moderated",
"If this option is set, the emailaddresses in the file listdir/control/moderators will act as moderators for the list.");
mlmmj_list("moderators",
"Moderators",
"If the list is moderated, this is the list of moderators.");
mlmmj_list("submod",
"Subscription moderators",
"This is the list of moderators that will approve subscriptions.");
mlmmj_boolean("tocc",
"To: Cc:",
"If this option is set, the list address does not have to be in the To: or Cc: header of the email to the list.");
mlmmj_boolean("addtohdr",
"Add To: header",
"If this option is set, a To: header including the recipients emailaddress will be added to outgoing mail. ".
"Recommended usage is to remove existing To: headers with delheaders (see below) first.");
mlmmj_boolean("subonlypost",
"Subscribers only post",
"If this option is set, only people who are subscribed to the list, are allowed to post to it. ".
"The check is made against the \"From:\" header.");
mlmmj_boolean("modonlypost",
"Moderators only post",
"When this file is present, only people listed in listdir/control/moderators ".
"are allowed to post to it. The check is made against the "From:" header.");
mlmmj_boolean("modnonsubposts",
"Moderate non-allowed posts",
"If this option is set, postings from people who are not allowed to post ".
"to the list will be moderated instead of denied.");
mlmmj_string("modreqlife",
"Moderation request lifetime",
"This specifies how long in seconds a mail awaits moderation before it's ".
"discarded. Defaults to 604800 seconds, which is 7 days.");
mlmmj_string("prefix",
"Prefix",
"The prefix for the Subject: line of mails to the list. This will alter the Subject: line, ".
"and add a prefix if it's not present elsewhere.");
mlmmj_list("owner",
"Owner",
"The emailaddresses in this list will get mails to ".encode_entities($list)."+owner");
mlmmj_list("customheaders",
"Custom headers",
"These headers are added to every mail coming through. This is ".
"the place you want to add Reply-To: header in case you want ".
"such. ".
"If a header should not occur twice in the mail it should be listed in the 'Delete headers' box too.");
mlmmj_list("delheaders",
"Delete headers",
"In this file is specified *ONE* headertoken to match pr. line. ".
"If the file consists of: Received: Message-ID: Then all occurences of these headers in incoming list mail will be deleted. ".
"\"From \" and \"Return-Path:\" are deleted no matter what.");
mlmmj_list("access",
"Access",
"If this option is set, all headers of a post to the list is matched against the rules. The first rule to match wins. ".
"See README.access for syntax and examples. NOTE: If this field is empty access control is *disabled*, ".
"unlike having an empty control/access file.");
mlmmj_string("memorymailsize",
"Memory mail size",
"Here is specified in bytes how big a mail can be and still be prepared for sending in memory. ".
"It's greatly reducing the amount of write system calls to prepare it in memory before sending it, ".
"but can also lead to denial of service attacks. Default is 16k (16384 bytes).");
mlmmj_string("relayhost",
"Relay host",
"The host specified (IP address or domainname, both works) in this file will be used for relaying the mail sent to the list. ".
"Defaults to 127.0.0.1.");
mlmmj_string("smtpport",
"SMTP port",
"In this file a port other than port 25 for connecting to the relayhost can be specified.");
mlmmj_string("delimiter",
"Delimiter",
"This specifies what to use as recipient delimiter for the list.".
"Default is \"+\".");
mlmmj_boolean("notifysub",
"Notify subscribers",
"If this option is set, the owner(s) will get a mail with the address of someone sub/unsubscribing to a mailinglist.");
mlmmj_boolean("notifymod",
"Notify moderation",
"If this option is set, the poster (based on the envelope from) will ".
"get a mail when their post is being moderation.");
mlmmj_string("digestinterval",
"Digest interval",
"This option specifies how many seconds will pass before the ".
"next digest is sent. Defaults to 604800 seconds, which is 7 ".
"days.");
mlmmj_string("digestmaxmails",
"Max. digest mails",
"This option specifies how many mails can accumulate before ".
"digest sending is triggered. Defaults to 50 mails, meaning ".
"that if 50 mails arrive to the list before digestinterval have ".
"passed, the digest is delivered.");
mlmmj_string("bouncelife",
"Bouncing lifetime",
"This specifies how long in seconds an address can bounce before it's ".
"unsubscribed. Defaults to 432000 seconds, which is 5 days.");
mlmmj_boolean("noarchive",
"No archive",
"If this option is set, the mails won't be saved in the ".
"archive but simply deleted");
mlmmj_boolean("noget",
"No get",
"If this option is set, listname+get-INDEX is turned off.");
mlmmj_boolean("subonlyget",
"Subscribers only get",
"If this option is set, retrieving old posts with +get-N is only possible for subscribers.");
mlmmj_string("verp",
"VERP",
"Enable VERP support. Anything added in this variable will be appended the ".
"MAIL FROM: line. If \"postfix\" is put in the file, it'll make postfix use ".
"VERP by adding XVERP=-= to the MAIL FROM: line.");
mlmmj_string("maxverprecips",
"Maximum VERP recipients",
"How many recipients pr. mail delivered to the smtp server. Defaults to 100.");
mlmmj_boolean("notoccdenymails",
"No To: Cc: deny mails",
"This switch turns off whether mlmmj sends out notification about postings ".
"being denied due to the listaddress not being in To: or Cc: (see 'tocc').");
mlmmj_boolean("noaccessdenymails",
"No access deny mails",
"This switch turns off whether mlmmj sends out notification about postings ".
"being rejected due to an access rule (see 'access').");
mlmmj_boolean("nosubonlydenymails",
"No subscribers only deny mails",
"This switch turns off whether mlmmj sends out notification about postings ".
"being rejected due to a subscribers only posting list (see 'subonlypost').");
mlmmj_boolean("nomodonlydenymails",
"No moderators only deny mails",
"This switch turns off whether mlmmj sends out notification about postings ".
"being rejected due to a moderators only posting list (see 'modonlypost').");
mlmmj_boolean("nosubmodmails",
"No subscription moderated mails",
"This switch turns off whether mlmmj sends out notification about ".
"subscription being moderated to the person requesting subscription".
"(see 'submod').");
mlmmj_boolean("nodigesttext",
"No digest text summary",
"This switch turns off whether digest mails will have a text part with a thread ".
"summary.");
mlmmj_boolean("nodigestsub",
"No digest subscribers",
"If this option is set, subscription to the digest version of the mailinglist ".
"will be denied. (Useful if you don't want to allow digests and notify users ".
"about it).");
mlmmj_boolean("nonomailsub",
"No nomail subscribers",
"If this option is set, subscription to the nomail version of the mailinglist ".
"will be denied. (Useful if you don't want to allow nomail and notify users ".
"about it).");
mlmmj_string("maxmailsize",
"Max. mail size",
"With this option the maximal allowed size of incoming mails can be specified.");
mlmmj_boolean("nomaxmailsizedenymails",
"No max. mail size deny mails",
"If this is set, no reject notifications caused by violation of maxmailsize ".
"will be sent.");
mlmmj_boolean("nolistsubsemail",
"No list subscribers email",
"If this is set, the LISTNAME+list\@ functionality for requesting an ".
"email with the subscribers for owner is disabled.");
mlmmj_string("staticbounceaddr",
"Static bounce address",
"If this is set to something\@example.org, the bounce address (Return-Path:) ".
"will be fixed to something+listname-bounces-and-so-on\@example.org ".
"in case you need to disable automatic bounce handling.");
mlmmj_boolean("ifmodsendonlymodmoderate",
"If moderator send only moderator moderate",
"If this is set, then mlmmj in case of moderation checks the ".
"envelope from, to see if the sender is a moderator, and in that case ".
"only send the moderation mails to that address. In practice this means that ".
"a moderator sending mail to the list won't bother all the other moderators ".
"with his mail.");
mlmmj_list("footer",
"Footer",
"The content of this option is appended to mail sent to the list.");
mlmmj_boolean("notmetoo",
"Not me too",
"If this is set, mlmmj attempts to exclude the sender of a post ".
"from the distribution list for that post so people don't receive copies ".
"of their own posts.");
mlmmj_string("smtphelo",
"SMTP Helo Name",
"When this file is present, it contains the hostname to send in the SMTP ".
"EHLO or HELO command. Otherwise the machine hostname is used.");
mlmmj/contrib/web/perl-admin/htdocs/ 0000775 0000000 0000000 00000000000 15023031135 0017714 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/perl-admin/htdocs/dot.htaccess 0000664 0000000 0000000 00000000143 15023031135 0022217 0 ustar 00root root 0000000 0000000 Require valid-user
AuthType Basic
AuthName "mlmmj web-interface"
AuthUserFile /home/mlmmj/htpasswd
mlmmj/contrib/web/perl-admin/htdocs/edit.cgi 0000775 0000000 0000000 00000006567 15023031135 0021346 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2004 Morten K. Poulsen
# Copyright (C) 2004 Christian Laursen
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
use strict;
use CGI;
use CGI::FastTemplate;
use HTML::Entities;
use vars qw($topdir $templatedir $list);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $tpl = new CGI::FastTemplate($templatedir);
my $q = new CGI;
$list = $q->param("list");
die "no list specified" unless $list;
die "non-existent list" unless -d("$topdir/$list");
$tpl->define(main => "edit.html",
boolean => "edit_boolean.html",
string => "edit_string.html",
list => "edit_list.html");
$tpl->assign(LIST => encode_entities($list));
my $tunables_file = "../conf/tunables.pl";
if (exists $ENV{TUNABLES_PATH}) {
$tunables_file = $ENV{TUNABLES_PATH};
}
do $tunables_file;
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
sub mlmmj_boolean {
my ($name, $nicename, $text) = @_;
my $checked = -f "$topdir/$list/control/$name";
$tpl->assign(NAME => encode_entities($name));
$tpl->assign(NICENAME => encode_entities($nicename));
$tpl->assign(TEXT => encode_entities($text));
$tpl->assign(CHECKED => $checked ? ' checked' : '');
$tpl->parse(ROWS => ".boolean");
}
sub mlmmj_string {
my ($name, $nicename, $text) = @_;
my $file = "$topdir/$list/control/$name";
my $value;
if (! -f $file) {
$value = "";
} else {
open(F, $file) or die("can't open $file");
$value = ;
close(F);
chomp($value);
}
$tpl->assign(NAME => encode_entities($name));
$tpl->assign(NICENAME => encode_entities($nicename));
$tpl->assign(TEXT => encode_entities($text));
$tpl->assign(VALUE => encode_entities($value));
$tpl->parse(ROWS => ".string");
}
sub mlmmj_list {
my ($name, $nicename, $text) = @_;
my $file = "$topdir/$list/control/$name";
my $value;
if (! -f $file) {
$value = "";
} else {
open(F, $file) or die("can't open $file");
while () {
$value .= $_;
}
close(F);
chomp($value);
}
$tpl->assign(NAME => encode_entities($name));
$tpl->assign(NICENAME => encode_entities($nicename));
$tpl->assign(TEXT => encode_entities($text));
$tpl->assign(VALUE => encode_entities($value));
$tpl->parse(ROWS => ".list");
}
mlmmj/contrib/web/perl-admin/htdocs/edit_text.cgi 0000775 0000000 0000000 00000004600 15023031135 0022374 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2007 Franky Van Liedekerke
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
use strict;
use CGI;
use CGI::FastTemplate;
use HTML::Entities;
use vars qw($topdir $templatedir $list);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $tpl = new CGI::FastTemplate($templatedir);
my $q = new CGI;
$list = $q->param("list");
die "no list specified" unless $list;
die "non-existent list" unless -d("$topdir/$list");
$tpl->define(main => "edit_text.html",
list => "edit_textstring.html");
$tpl->assign(LIST => encode_entities($list));
my $textdir = "$topdir/$list/text";
my @files;
opendir(DIR, $textdir ) || die "can't opendir $textdir: $!";
@files = grep { !/^\./ && -f "$textdir/$_" } readdir(DIR);
closedir DIR;
for my $textfile (sort @files) {
mlmmj_text($textfile);
}
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
sub mlmmj_text {
my ($name) = @_;
my $file = "$textdir/$name";
my $value;
if (! -f $file) {
$value = "";
} else {
open(F, $file) or die("can't open $file");
while () {
$value .= $_;
}
close(F);
chomp($value);
}
$tpl->assign(NAME => encode_entities($name));
$tpl->assign(VALUE => encode_entities($value));
$tpl->parse(ROWS => ".list");
}
mlmmj/contrib/web/perl-admin/htdocs/index.cgi 0000775 0000000 0000000 00000003560 15023031135 0021516 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2004 Morten K. Poulsen
# Copyright (C) 2004 Christian Laursen
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
use strict;
use URI::Escape;
use HTML::Entities;
use CGI::FastTemplate;
use vars qw($topdir $templatedir);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $tpl = new CGI::FastTemplate($templatedir);
$tpl->define(main => "index.html",
row => "index_row.html");
my $lists = "";
opendir(DIR, $topdir) or die "Couldn't open $topdir for reading: $!";
while (my $list = readdir(DIR)) {
next if $list =~ /^\./;
$tpl->assign(LIST => encode_entities($list));
$tpl->assign(ULIST => uri_escape($list));
$tpl->parse(LISTS => '.row');
}
closedir(DIR);
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
mlmmj/contrib/web/perl-admin/htdocs/save.cgi 0000775 0000000 0000000 00000005366 15023031135 0021353 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2004 Morten K. Poulsen
# Copyright (C) 2004, 2005 Christian Laursen
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# We might want some kind of validation of the values we are about to save,
# but that would require save.cgi to know about all kind of options that mlmmj
# accepts. I am not sure we want that. -- mortenp 20040709
use strict;
use CGI;
use CGI::FastTemplate;
use HTML::Entities;
use vars qw($topdir $templatedir $list);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $tpl = new CGI::FastTemplate($templatedir);
my $q = new CGI;
$list = $q->param("list");
die "no list specified" unless $list;
die "non-existent list" unless -d("$topdir/$list");
$tpl->define(main => "save.html");
$tpl->assign(LIST => encode_entities($list));
my $tunables_file = "../conf/tunables.pl";
if (exists $ENV{TUNABLES_PATH}) {
$tunables_file = $ENV{TUNABLES_PATH};
}
do $tunables_file;
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
sub mlmmj_boolean {
my ($name, $nicename, $text) = @_;
my $file = "$topdir/$list/control/$name";
my $value = $q->param($name);
if ($value) {
open (FILE, ">$file") or die "Couldn't open $file for writing: $!";
close FILE;
} else {
unlink $file;
}
}
sub mlmmj_string {
mlmmj_list(@_);
}
sub mlmmj_list {
my ($name, $nicename, $text) = @_;
my $file = "$topdir/$list/control/$name";
my $value = $q->param($name);
if (defined $value && $value !~ /^\s*$/) {
$value .= "\n" if $value !~ /\n$/;
$value =~ s/\s*\r?\n/\n/g;
open (FILE, ">$file") or die "Couldn't open $file for writing: $!";
print FILE $value;
close FILE;
} else {
unlink $file;
}
}
mlmmj/contrib/web/perl-admin/htdocs/save_text.cgi 0000775 0000000 0000000 00000004534 15023031135 0022413 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2007 Franky Van Liedekerke
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# We might want some kind of validation of the values we are about to save,
# but that would require save.cgi to know about all kind of options that mlmmj
# accepts. I am not sure we want that. -- mortenp 20040709
use strict;
use CGI;
use CGI::FastTemplate;
use HTML::Entities;
use vars qw($topdir $templatedir $list);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $tpl = new CGI::FastTemplate($templatedir);
my $q = new CGI;
$list = $q->param("list");
die "no list specified" unless $list;
die "non-existent list" unless -d("$topdir/$list");
$tpl->define(main => "save_text.html");
$tpl->assign(LIST => encode_entities($list));
my $textdir = "$topdir/$list/text";
my @files;
opendir(DIR, $textdir ) || die "can't opendir $textdir: $!";
@files = grep { !/^\./ && -f "$textdir/$_" } readdir(DIR);
closedir DIR;
for my $textfile (sort @files) {
mlmmj_text($textfile);
}
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
sub mlmmj_text {
my ($name, $nicename, $text) = @_;
my $file = "$textdir/$name";
my $value = $q->param($name);
open (FILE, ">$file") or die "Couldn't open $file for writing: $!";
print FILE $value;
close FILE;
}
mlmmj/contrib/web/perl-admin/htdocs/subscribers.cgi 0000775 0000000 0000000 00000017432 15023031135 0022740 0 ustar 00root root 0000000 0000000 #!/usr/bin/perl -w
# Copyright (C) 2004, 2005, 2006, 2007 Christian Laursen
# Copyright (C) 2007 Franky Van Liedekerke
#
# $Id$
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
use strict;
use URI::Escape;
use HTML::Entities;
use CGI;
use CGI::FastTemplate;
use Digest::MD5;
use vars qw($topdir $templatedir $list);
if (exists $ENV{CONFIG_PATH}) {
require $ENV{CONFIG_PATH};
} else {
require "../conf/config.pl";
}
my $mlmmjsub = "/usr/local/bin/mlmmj-sub";
my $mlmmjunsub = "/usr/local/bin/mlmmj-unsub";
my $tpl = new CGI::FastTemplate($templatedir);
my $q = new CGI;
$list = $q->param("list");
my $update = $q->param("update");
my $search = $q->param("search");
my $email = $q->param("email");
my $file = $q->param("file");
my $removeall = $q->param("removeall");
# Everything is submitted from the same form so a little hackery is needed
# to pick the right action to perform. When doing subscribe and search we
# don't depend on the submit buttons since hitting enter in either of the
# text fields will pick the "Subscribe" button.
#
# If an email has been entered for subscription, clear the search field.
if (defined $email && $email !~ /^$/) {
$search = undef;
} else {
$email = undef;
}
die "no list specified" unless $list;
die "non-existent list" unless -d("$topdir/$list");
$tpl->define(main => "subscribers.html",
row => "subscribers_row.html");
my $action = '';
my $subscribers;
my $subcount;
if (defined $removeall) {
my $removeall_check = $q->param("removeall_check");
if ($removeall_check) {
unlink <$topdir/$list/subscribers.d/*>;
unlink <$topdir/$list/nomailsubs.d/*>;
unlink <$topdir/$list/digesters.d/*>;
$action = "All subscribers have been removed.";
} else {
$action = "Safety check not clicked, nothing done.";
}
} elsif (defined $file) {
my $subscriber = $q->param("subscriber");
my $digester = $q->param("digester");
my $nomailsub = $q->param("nomailsub");
my $upload_handle = $q->upload("file");
binmode $upload_handle;
while (<$upload_handle>) {
s/\r?\n$//;
my $email=$_;
if ($email =~ /^[a-z0-9\.\-_\@]+$/i) {
if ($subscriber) {
system "$mlmmjsub -L $topdir/$list -a $email -U -s";
}
if ($digester) {
system "$mlmmjsub -L $topdir/$list -a $email -Ud -s";
}
if ($nomailsub) {
system "$mlmmjsub -L $topdir/$list -a $email -Un -s";
}
if ($? == 0) {
$action .= "$email has been subscribed. \n";
} else {
$action .= "error subscribing $email (code $?) \n";
}
} else {
$action .= '"'.encode_entities($email).'" is not a valid email address. ';
}
}
} elsif (defined $email) {
my $subscriber = $q->param("subscriber");
my $digester = $q->param("digester");
my $nomailsub = $q->param("nomailsub");
if ($email =~ /^[a-z0-9\.\-_\@]+$/i) {
if ($subscriber) {
system "$mlmmjsub -L $topdir/$list -a $email -U -s";
}
if ($digester) {
system "$mlmmjsub -L $topdir/$list -a $email -Ud -s";
}
if ($nomailsub) {
system "$mlmmjsub -L $topdir/$list -a $email -Un -s";
}
if ($? == 0) {
$action = "$email has been added";
} else {
$action = "error adding $email (code $?)";
}
} else {
$action = '"'.encode_entities($email).'" is not a valid email address.';
}
} elsif (defined $update) {
my $maxid = $q->param("maxid");
$subscribers = get_subscribers();
for (my $i = 0; $i < $maxid; ++$i) {
my $email = $q->param("email$i");
if (defined $email) {
if ($email =~ /^[a-z0-9\.\-_\@]+$/i) {
my $updated = 0;
my @actions = ();
push @actions, {oldstatus => exists $subscribers->{$email}->{subscriber},
newstatus => defined $q->param("subscriber$i"),
action => ''};
push @actions, {oldstatus => exists $subscribers->{$email}->{digester},
newstatus => defined $q->param("digester$i"),
action => '-d'};
push @actions, {oldstatus => exists $subscribers->{$email}->{nomailsub},
newstatus => defined $q->param("nomailsub$i"),
action => '-n'};
for my $action (@actions) {
if ($action->{oldstatus} && !$action->{newstatus}) {
system "$mlmmjunsub -L $topdir/$list -a $email $action->{action}";
$updated = 1;
} elsif (!$action->{oldstatus} && $action->{newstatus}) {
system "$mlmmjsub -L $topdir/$list -a $email $action->{action}";
$updated = 1;
}
}
if ($updated) {
$action .= "Subscription for $email has been updated. \n";
}
} else {
$action .= '"'.encode_entities($email).'" is not a valid email address.'." \n";
}
}
}
}
$tpl->assign(ACTION => $action);
$subscribers = get_subscribers();
my $paginator = '';
my $page = $q->param('page');
$page = 0 unless defined $page && $page =~ /^\d+$/;
if (keys %$subscribers > 50) {
$paginator = 'Pages: ';
my $pages = (keys %$subscribers) / 50;
$page = 0 unless ($page >= 0 && $page < $pages);
my $searchstr = (defined $search && $search ne '') ? '&search='.uri_escape($search) : '';
for (my $i = 0; $ i < $pages; ++$i) {
if ($page == $i) {
$paginator .= ($i + 1)." ";
} else {
$paginator .= "".($i + 1)." ";
}
}
}
my $i = 0;
my @addresses = sort {lc $a cmp lc $b} keys %$subscribers;
if ($paginator ne '') {
@addresses = @addresses[$page * 50 .. ($page + 1) * 50 - 1];
pop @addresses until defined $addresses[@addresses - 1];
}
for my $address (@addresses) {
$tpl->assign(EMAIL => $address,
ID => $i++,
SCHECKED => $subscribers->{$address}->{subscriber} ? 'checked' : '',
DCHECKED => $subscribers->{$address}->{digester} ? 'checked' : '',
NCHECKED => $subscribers->{$address}->{nomailsub} ? 'checked' : '');
$tpl->parse(ROWS => '.row');
}
if (keys %$subscribers == 0) {
$tpl->assign(ROWS => '');
}
$tpl->assign(LIST => encode_entities($list),
MAXID => scalar(@addresses),
SEARCH => defined $search ? $search : '',
PAGINATOR => $paginator,
PAGE => $page,
SUBCOUNT => $subcount);
print "Content-type: text/html\n\n";
$tpl->parse(CONTENT => "main");
$tpl->print;
sub get_subscribers {
my %subscribers = ();
my @subscribers = `/usr/local/bin/mlmmj-list -L $topdir/$list`;
my @digesters = `/usr/local/bin/mlmmj-list -L $topdir/$list -d`;
my @nomailsubs = `/usr/local/bin/mlmmj-list -L $topdir/$list -n`;
chomp @subscribers;
chomp @digesters;
chomp @nomailsubs;
if (defined $search) {
$search = lc $search;
@subscribers = grep {index(lc $_, $search) != -1} @subscribers;
@digesters = grep {index(lc $_, $search) != -1} @digesters;
@nomailsubs = grep {index(lc $_, $search) != -1} @nomailsubs;
}
for my $address (@subscribers) {
$subscribers{$address}->{subscriber} = 1;
}
for my $address (@digesters) {
$subscribers{$address}->{digester} = 1;
}
for my $address (@nomailsubs) {
$subscribers{$address}->{nomailsub} = 1;
}
$subcount = scalar(keys %subscribers);
return \%subscribers;
}
mlmmj/contrib/web/perl-admin/templates/ 0000775 0000000 0000000 00000000000 15023031135 0020426 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/perl-admin/templates/edit.html 0000664 0000000 0000000 00000000712 15023031135 0022241 0 ustar 00root root 0000000 0000000 mlmmj config
".htmlentities($mlmmj_list)." \n";
if ($print_config) {
$lists .= "Config - ";
$lists .= "Text files";
}
if ($print_config && $print_sub)
$lists .= " - ";
if ($print_sub)
$lists .= "Subscribers\n";
if ($print_config)
$lists .= " - Log";
$lists .= "
\n";
}
}
}
$tpl->assign(array("LISTS" => $lists));
$tpl->parse("MAIN","main");
$tpl->FastPrint("MAIN");
?>
mlmmj/contrib/web/php-admin/htdocs/logs.php 0000664 0000000 0000000 00000010553 15023031135 0021222 0 ustar 00root root 0000000 0000000
* Copyright (C) 2004 Christoph Thiel
*
* mlmmj/php-perl:
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2004 Christian Laursen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
require(dirname(dirname(__FILE__))."/conf/config.php");
require(dirname(__FILE__)."/class.rFastTemplate.php");
function mask($str, $first, $last) {
$len = strlen($str);
$toShow = $first + $last;
return substr($str, 0, $len <= $toShow ? 0 : $first).str_repeat("*", $len - ($len <= $toShow ? 0 : $toShow)).substr($str, $len - $last, $len <= $toShow ? 0 : $last);
}
function mask_email($email) {
$mail_parts = explode("@", $email);
$domain_parts = explode('.', $mail_parts[1]);
$mail_parts[0] = mask($mail_parts[0], 2, 1); // show first 2 letters and last 1 letter
$domain_parts[0] = mask($domain_parts[0], 2, 1); // same here
$mail_parts[1] = implode('.', $domain_parts);
return implode("@", $mail_parts);
}
function anonymize_line($text) {
$words = explode(" ", $text);
foreach ($words as $key => $word) {
if (strstr($word, '@')) {
$words[$key] = mask_email($word);
}
}
return implode(" ", $words);
}
function read_filetail($file, $lines) {
//global $fsize;
$handle = fopen($file, "r");
$linecounter = $lines;
$pos = -2;
$beginning = false;
$text = array();
while ($linecounter > 0) {
$t = " ";
while ($t != "\n") {
if(fseek($handle, $pos, SEEK_END) == -1) {
$beginning = true;
break;
}
$t = fgetc($handle);
$pos --;
}
$linecounter --;
if ($beginning) {
rewind($handle);
}
$text[$lines-$linecounter-1] = fgets($handle);
if ($beginning) break;
}
fclose ($handle);
//return array_reverse(array_map('anonymize_line',$text));
return array_reverse($text);
}
if(empty($_GET['list']))
die("no list specified");
$list = $_GET['list'];
if (dirname(realpath($topdir."/".$list)) != realpath($topdir))
die("list outside topdir");
if(!is_dir($topdir."/".$list))
die("non-existent list");
$userfile = "$topdir/$list/control/admin_users";
if (is_file($userfile)) {
// read users into array
$admin_users = array_map('trim',file($userfile));
// remove empty values from array
$admin_users = array_filter($admin_users);
if (!isset($_SERVER['PHP_AUTH_USER']) || !in_array($_SERVER['PHP_AUTH_USER'],$admin_users)) {
header("WWW-Authenticate: " .
"Basic realm=\"Mlmmj Protected Area\"");
header("HTTP/1.0 401 Unauthorized");
//Show failure text, which browsers usually
//show only after several failed attempts
print("This page is protected by HTTP " .
"Authentication. \n");
exit;
}
}
$logfile = $topdir."/".$list."/mlmmj.operation.log";
if (is_file($logfile)) {
$content = read_filetail($logfile,50);
print "Output (last 50 lines) of operations logfile:
\n";
print nl2br(htmlentities(join('',$content)));
} else {
print "Operations logfile doesn't exist (yet) \n";
}
print " Index";
?>
mlmmj/contrib/web/php-admin/htdocs/save.php 0000664 0000000 0000000 00000010473 15023031135 0021215 0 ustar 00root root 0000000 0000000
* Copyright (C) 2004 Christoph Thiel
*
* mlmmj/php-perl:
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2004 Christian Laursen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
require(dirname(dirname(__FILE__))."/conf/config.php");
require(dirname(__FILE__)."/class.rFastTemplate.php");
function mlmmj_boolean($name, $nicename, $text)
{
global $tpl, $topdir, $list;
$file = $topdir."/".$list."/control/".$name;
if(isset($_POST[$name]) && !empty($_POST[$name]))
{
if(!touch($file))
die("Couldn't open ".$file." for writing");
// don't error on chmod, if the owner of the file is different it won't work
@chmod($file, 0664);
}
else {
if (file_exists($file)) {
if (!unlink($file))
die("Couldn't unlink ".$file);
}
}
}
function mlmmj_string ($name, $nicename, $text)
{
mlmmj_list($name, $nicename, $text);
}
function mlmmj_list($name, $nicename, $text)
{
global $tpl, $topdir, $list;
$file = $topdir."/".$list."/control/".$name;
if(isset($_POST[$name]) && !empty($_POST[$name]) && !preg_match('/^\s*$/',$_POST[$name]))
{
// remove all \r
$_POST[$name]=preg_replace('/\r/',"",$_POST[$name]);
// no trailing \n?, then we add one
if (!preg_match('/\n$/',$_POST[$name]))
$_POST[$name].="\n";
// we don't like whitespace before a \n
$_POST[$name]=preg_replace('/\s*\n/',"\n",$_POST[$name]);
if (!$fp = fopen($file, "w"))
die("Couldn't open ".$file." for writing");
// write the result in a file
fwrite($fp, $_POST[$name]);
fclose($fp);
// don't error on chmod, if the owner of the file is different it won't work
@chmod($file, 0664);
}
else {
if (file_exists($file)) {
if (!unlink($file))
die("Couldn't unlink ".$file);
}
}
}
// Perl's encode_entities (to be able to use tunables.pl)
function encode_entities($str) { return htmlentities($str); }
$tpl = new rFastTemplate($templatedir);
if(empty($_POST['list']))
die("no list specified");
$list = $_POST['list'];
if (dirname(realpath($topdir."/".$list)) != realpath($topdir))
die("list outside topdir");
if(!is_dir($topdir."/".$list))
die("non-existent list");
$userfile = "$topdir/$list/control/admin_users";
$admin_user = "";
if(is_file($userfile)) {
// read users into array
$admin_users = array_map('trim',file($userfile));
// remove empty values from array
$admin_users = array_filter($admin_users);
if (!isset($_SERVER['PHP_AUTH_USER']) || !in_array($_SERVER['PHP_AUTH_USER'],$admin_users)) {
header("WWW-Authenticate: " .
"Basic realm=\"Mlmmj Protected Area\"");
header("HTTP/1.0 401 Unauthorized");
//Show failure text, which browsers usually
//show only after several failed attempts
print("This page is protected by HTTP " .
"Authentication. \n");
exit;
}
}
$tpl->define(array("main" => "save.html"));
$tpl->assign(array("LIST" => htmlentities($list)));
$tunables = file_get_contents($confdir.'/tunables.pl');
eval($tunables);
$tpl->parse("MAIN","main");
$tpl->FastPrint("MAIN");
?>
mlmmj/contrib/web/php-admin/htdocs/subscribers.php 0000664 0000000 0000000 00000011616 15023031135 0022605 0 ustar 00root root 0000000 0000000
* Copyright (C) 2004 Christoph Thiel
*
* mlmmj/php-perl:
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2004 Christian Laursen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
require(dirname(dirname(__FILE__))."/conf/config.php");
require(dirname(__FILE__)."/class.rFastTemplate.php");
$tpl = new rFastTemplate($templatedir);
# get the list parameter and check that list exists
if(empty($_GET['list']))
die("no list specified");
$list = $_GET['list'];
if (dirname(realpath($topdir."/".$list)) != realpath($topdir))
die("list outside topdir");
if(!is_dir($topdir."/".$list))
die("non-existent list");
$userfile = "$topdir/$list/control/subsadmin_users";
if (!is_file($userfile)) {
$userfile = "$topdir/$list/control/admin_users";
}
$admin_user = "";
if (is_file($userfile)) {
// read users into array
$admin_users = array_map('trim',file($userfile));
// remove empty values from array
$admin_users = array_filter($admin_users);
if (!isset($_SERVER['PHP_AUTH_USER']) || !in_array($_SERVER['PHP_AUTH_USER'],$admin_users)) {
header("WWW-Authenticate: " .
"Basic realm=\"Mlmmj Protected Area\"");
header("HTTP/1.0 401 Unauthorized");
//Show failure text, which browsers usually
//show only after several failed attempts
print("This page is protected by HTTP " .
"Authentication. \n");
exit;
}
}
$message = "";
# subscribe some people if tosubscribe is set
if (isset($_POST["tosubscribe"])) {
foreach (preg_split('/\r\n|\n|\r/', $_POST["tosubscribe"]) as $line) {
$email = trim($line);
if ($email != "") {
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
$cmd = "/usr/bin/mlmmj-sub -f -q -s -L ".escapeshellarg("$topdir/$list")." -a ".escapeshellarg($email)." 2>&1";
unset($out);
exec($cmd, $out, $ret);
if ($ret !== 0) {
$message.= "* Subscribe error for $email\ncommand: $cmd\nreturn code: $ret\noutput: ".implode("\n", $out)."\n";
}
} else {
$message.= "* Email address not valid: $email\n";
}
}
}
# delete some people if delete is set
} else if (isset($_POST["delete"])) {
$email = $_POST["email"];
if (! filter_var($email, FILTER_VALIDATE_EMAIL)) die("Email address not valid");
$cmd = "/usr/bin/mlmmj-unsub -q -s -L ".escapeshellarg("$topdir/$list")." -a ".escapeshellarg($email)." 2>&1";
unset($out);
exec($cmd, $out, $ret);
if ($ret !== 0) {
$message.= "* Unsubscribe error.\ncommand: $cmd\nreturn code: $ret\noutput: ".implode("\n", $out)."\n";
}
}
$subscribers="";
# get subscribers from mlmmj
$cmd = "/usr/bin/mlmmj-list -L ".escapeshellarg("$topdir/$list")." |sort";
unset($out);
exec($cmd, $out, $ret);
if ($ret !== 0) {
$message.= "* Error: Could not get subscribers list.\n";
} else {
foreach ($out as $email) {
$email = trim($email);
$form = "";
$subscribers.= "
".htmlspecialchars($email)."
$form
\n";
}
if (empty($subscribers)) {
$subscribers = "
This list is empty or the permissions are not set correctly to get the subscribers.
\n";
}
}
# set template vars
$tpl->define(array("main" => "subscribers.html"));
$tpl->assign(array("LIST" => htmlspecialchars($list)));
$tpl->assign(array("MESSAGE" => "
".htmlspecialchars($message)."
"));
$tpl->assign(array("SUBS" => $subscribers));
$tpl->parse("MAIN","main");
$tpl->FastPrint("MAIN");
?>
mlmmj/contrib/web/php-admin/htdocs/texts.php 0000664 0000000 0000000 00000007101 15023031135 0021420 0 ustar 00root root 0000000 0000000
* Copyright (C) 2004 Christoph Thiel
*
* mlmmj/php-perl:
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2004 Christian Laursen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
require(dirname(dirname(__FILE__))."/conf/config.php");
require(dirname(__FILE__)."/class.rFastTemplate.php");
if(empty($_GET['list']))
die("no list specified");
$list = $_GET['list'];
if (dirname(realpath($topdir."/".$list)) != realpath($topdir))
die("list outside topdir");
if(!is_dir($topdir."/".$list))
die("non-existent list");
$userfile = "$topdir/$list/control/admin_users";
if (is_file($userfile)) {
// read users into array
$admin_users = array_map('trim',file($userfile));
// remove empty values from array
$admin_users = array_filter($admin_users);
if (!isset($_SERVER['PHP_AUTH_USER']) || !in_array($_SERVER['PHP_AUTH_USER'],$admin_users)) {
header("WWW-Authenticate: " .
"Basic realm=\"Mlmmj Protected Area\"");
header("HTTP/1.0 401 Unauthorized");
//Show failure text, which browsers usually
//show only after several failed attempts
print("This page is protected by HTTP " .
"Authentication. \n");
exit;
}
}
$files = glob($topdir."/".$list."/text/*");
if (isset($_POST['save_texts'])) {
foreach ($files as $mlmmj_file) {
$name = basename($mlmmj_file);
// values need to be in linux line endings
$value = str_replace(array("\r\n", "\r", "\n"), "\n", $_POST[$name]);
file_put_contents($topdir."/".$list."/text/".$name, $value);
}
print "###### \n";
print "###### Files updated \n";
print "###### \n";
}
print "For info on the template directives used, see here \n";
print "";
print " Index";
?>
mlmmj/contrib/web/php-admin/templates/ 0000775 0000000 0000000 00000000000 15023031135 0020253 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/php-admin/templates/edit.html 0000664 0000000 0000000 00000000452 15023031135 0022067 0 ustar 00root root 0000000 0000000 mlmmj config
mlmmj/contrib/web/php-moderation/ 0000775 0000000 0000000 00000000000 15023031135 0017326 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/php-moderation/README 0000664 0000000 0000000 00000004513 15023031135 0020211 0 ustar 00root root 0000000 0000000 MLMMJ PHP Moderation Web Interface by Thomas Goirand
* dependencies *
This app needs:
- php with gettext() support (for translations). Nearly all (if not all)
Unix distributions have php with gettext support.
- The Mail_mime PEAR package (php-mail-mime in Debian)
* setup *
- Run "./build-translations.sh" to generate the gettext binaries out of the
sources
- Edit the 5 variables on top of mlmmj-moderation.php to set the
moderation folder, list name, domain, delimiter and the address used to
send the moderation validation messages. You will need gettext installed
on your system...
- Eventually rename mlmmj-moderation.php and edit mlmmj.css to your taste
- Edit and rename the dot.htaccess files to .htaccess to protect the
moderation folder from others
- make it so this app have read/write access to the moderation folder.
Write access is needed because the app does some unlink() calls to
delete the messages.
- If using debian, you might need to dpkg-reconfigure locales and add
fr_FR.UTF-8, if you want to see my French translation (there might be
some other distributions needing the same kind of thing, I don't know...).
* known issues *
- Because this web app is sending an email to validate messages to be
moderated, once you have hit "validate", validated messages will still
(most of the times) show in the interface, as the folder is (most of the
times) read before MLMMJ has time to send the moderated messages and
remove them from the moderation folder.
A workaround would be to NOT display messages that are moderated on the
URL bar, but it's not a good way to go, as if the server is very busy,
the next refresh of the page (the one after the validation) can still
show some messages already validated. We see here that the method to
send emails doesn't seem to be very good... Would it be possible for me
to rename the moderated messages???
- Because it's the first version, I have not yet used POST, but some GET
in order to see things on the URL bar. So, of course, we are here
hitting the limitation of the URL size (if there are really a lot of
messages to moderate). This can be changed later simply by adding
method="POST" in the form, as I use $_REQUEST (and not the stupid $_POST
/ $_GET that everybody uses...). I might do this on the next version,
but for now, it's more easy for debug purposes to keep it this way.
mlmmj/contrib/web/php-moderation/build-translations.sh 0000775 0000000 0000000 00000001533 15023031135 0023505 0 ustar 00root root 0000000 0000000 #!/bin/bash
#
# Build script for generating the MLMMJ moderation web interface locales
#
set -e
LOCALE_TRANS=fr_FR
WEB_SCRIPT_FILES=mlmmj-moderation.php
if [ ! -d translations ]; then
echo "Wrong working directory." >&2
exit 1
fi
echo "===> Managing internationalizations and localizations"
echo "=> Extracting strings from sources"
xgettext $WEB_SCRIPT_FILES -o translations/templates.pot
echo "=> Merging in every language .po file:"
for i in $LOCALE_TRANS; do
echo -n "$i "
msgmerge -s -U "translations/$i.po" translations/templates.pot
done
echo "=> Creating l10n folders"
for i in $LOCALE_TRANS; do
mkdir -p "translations/locale/$i/LC_MESSAGES"
done
echo "=> Creating binary formats of language files:"
for i in $LOCALE_TRANS; do
echo -n $i" "
msgfmt -c -v -o "translations/locale/$i/LC_MESSAGES/messages.mo" \
"translations/$i.po"
done
mlmmj/contrib/web/php-moderation/dot.htaccess 0000664 0000000 0000000 00000000143 15023031135 0021631 0 ustar 00root root 0000000 0000000 Require valid-user
AuthType Basic
AuthName "mlmmj web-interface"
AuthUserFile /home/mlmmj/htpasswd
mlmmj/contrib/web/php-moderation/mlmmj-moderation.php 0000664 0000000 0000000 00000024241 15023031135 0023315 0 ustar 00root root 0000000 0000000
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
// These are the configuration variables for your list
$mod_dir = "/some/path/to/your/listname/moderation";
$list_name = "listname";
$list_domain = "example.com";
$delimiter = "+";
$from_addr = "user@example.com";
// Manage accepted language and cookies
$txt_default_lang = "en";
session_register("lang");
if(isset($_SESSION["lang"]) && !is_string($_SESSION["lang"])){
unset($lang);
}
if(isset($_SESSION["lang"])){
$lang = $_SESSION["lang"];
}
// TODO: Add some web stuffs to change the language manually on the web interface...
// ...HERE...
//
// $lang = "fr_FR";
// The following code keeps the lang in sessions, so it can be changed manually above with lang=XX
// and if there's nothing in session yet, then it will parse the language set in the browser
if(isset($lang)){
$_SESSION["lang"] = $lang;
}
if (!isset($lang)){
if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && $_SERVER["HTTP_ACCEPT_LANGUAGE"]) {
$all_languages = strtok($_SERVER["HTTP_ACCEPT_LANGUAGE"],";");
$langaccept = explode(",", $all_languages);
for ($i = 0; $i < sizeof($langaccept); $i++) {
$tmplang = trim($langaccept[$i]);
$tmplang2 = substr($tmplang,0,2);
if (!isset($lang) && isset($txt_langname[$tmplang]) && $txt_langname[$tmplang]) {
$lang = $tmplang;
}elseif (!isset($lang) && isset($txt_langname[$tmplang2])) {
$lang = $tmplang2;
}
}
}
if (!isset($lang)) {
$lang = $txt_default_lang;
}
$_SESSION["lang"] = $lang;
}
header("Content-type: text/html; charset=UTF-8");
switch($lang){
case "fr_FR":
case "fr":
$gettext_lang = "fr_FR.UTF-8";
break;
default:
$gettext_lang = "en_US.UTF-8";
break;
}
if(FALSE === putenv("LC_ALL=$gettext_lang")){
echo "Failed to putenv LC_ALL=$gettext_lang ";
}
if(FALSE === putenv("LANG=$gettext_lang")){
echo "Failed to putenv LANG=$gettext_lang ";
}
if(FALSE === setlocale(LC_ALL, $gettext_lang)){
echo "Failed to setlocale(LC_ALL,$gettext_lang) ";
}
$pathname = bindtextdomain("messages", dirname(__FILE__) ."/translations/locale");
$message_domain = textdomain("messages");
// This comes from the Mail_Mime PEAR package, under Debian, you need
// the php-mail-mime package to have this script work.
require_once 'Mail/mimeDecode.php';
// Email header parsing
function decodeEmail($input){
$params['include_bodies'] = true;
$params['decode_bodies'] = true;
$params['decode_headers'] = true;
$decoder = new Mail_mimeDecode($input);
$structure = $decoder->decode($params);
return $structure;
}
// Reading of all the messages from the moderation folder
function getMessageList(){
global $mod_dir;
$all_msg = array();
// Read all files from the directory.
if (is_dir($mod_dir)) {
if ($dh = opendir($mod_dir)) {
while (($file = readdir($dh)) !== false) {
if( !ereg("^([0-9a-f]+)\$",$file) ) continue;
$full_path = $mod_dir . "/" . $file;
if(filetype($full_path) == "file"){
if(FALSE === ($input = file_get_contents($full_path))){
echo ""._("Warning: could not read")." $full_path ";
}else{
$struct = decodeEmail($input);
$my_msg = array();
$my_msg["headers"] = $struct->headers;
$my_msg["body"] = $struct->body;
$my_msg["filename"] = $file;
$all_msg[] = $my_msg;
}
}
}
closedir($dh);
}
}
return $all_msg;
}
// Printing of the list of messages to be displayed (the big table)
function printAllMessages($all_msg){
$n = sizeof($all_msg);
$out = "
\n";
$th = " class=\"tableTitle\" ";
$out .= "
"._("Date")."
"._("Subject")."
"._("From")."
\n";
$out .= "
\n";
$out .= _("For the selection:")." ";
$out .= "";
$out .= "";
return $out;
}
// Deletion and validation of messages
if( isset($_REQUEST["validate"]) || isset($_REQUEST["delete"])){
if( !isset($_REQUEST["msg_id"]) ){
echo ""._("No message selected!")." ";
}else{
$n = sizeof($_REQUEST["msg_id"]);
for($i=0;$i<$n;$i++){
if( !ereg("^([0-9a-f]+)\$",$_REQUEST["msg_id"][$i]) ){
echo "".("Moderation ID format is wrong: will ignore this one!")."";
continue;
}
$fullpath = $mod_dir . "/" . $_REQUEST["msg_id"][$i];
if(!file_exists($fullpath)){
echo ""._("Moderation ID not found in the moderation folder!")."";
continue;
}
// TODO: Check if message is there!
if( isset($_REQUEST["validate"]) ){
// echo "Validating message ".$_REQUEST["msg_id"][$i]." ";
$to_addr = $list_name . $delimiter . "moderate-" . $_REQUEST["msg_id"][$i] . "@" . $list_domain;
$headers = "From: ".$from_addr;
mail($to_addr,"MLMMJ Web interface moderation","MLMMJ Web interface moderation",$headers);
}else{
// echo "Deleting message ".$_REQUEST["msg_id"][$i]." ";
unlink($mod_dir . "/" . $_REQUEST["msg_id"][$i]);
if( file_exists($mod_dir . "/" . $_REQUEST["msg_id"][$i] . ".orig") ){
unlink($mod_dir . "/" . $_REQUEST["msg_id"][$i] . ".orig");
}
}
}
}
}
// A bit of javascript to do the checkboxes inversion.
echo "
MLMMJ "._("moderation web interface")."
"._("Refresh page")."";
if( isset($_REQUEST["action"]) && $_REQUEST["action"] == "show_message"){
if( !ereg("^([0-9a-f]+)\$",$_REQUEST["msgid"]) ){
echo ""._("Message ID format is wrong: can't display!")."";
}else{
$full_path = $mod_dir . "/" . $_REQUEST["msgid"];
if( !file_exists($full_path) ){
echo "".("Message does not exists!")."";
}else{
if(FALSE === ($input = file_get_contents($full_path))){
echo ""._("Error: could not read")." $full_path ";
}else{
$struct = decodeEmail($input);
echo ""._("Back to messages list")."
" . nl2br(htmlspecialchars($struct->body));
}
}
}
}else{
$all_msg = getMessageList();
echo printAllMessages($all_msg);
}
echo '
';
?>
mlmmj/contrib/web/php-moderation/mlmmj.css 0000664 0000000 0000000 00000001766 15023031135 0021166 0 ustar 00root root 0000000 0000000 .alternatecolorline2 {
background-color: #E3f9ff;
font-size: 10px;
}
.alternatecolorline {
background-color: #bcd0d6;
font-size: 10px;
}
.tableTitle {
text-align: center;
color: #547074;
font-size: 12px;
background-color: #dbe9ed;
}
.errorMessages {
color: #FF0000;
font-size: 14px;
font-weight: bold;
}
a:link{color:#105278;text-decoration: none;}
a:visited{color:#105278;text-decoration: none;}
a:hover{color:#000000;text-decoration: underline;}
a:active{color:#000000;text-decoration: none;}
html{height:100%; margin:4;}
body{height:100%;margin:4; font: 12px Arial, Helvetica, sans-serif; color: #000000;}
/* Forms fields definitions */
input,select,textarea {
font-family: arial;
font-size: 12px;
color: #000000;
background-color: #F6F6F2;
border-color: #ECEEE5 #F6F6F2 #F6F6F2 #ECEEE5;
}
h3 {
text-align: center;
font-size: 20px;
}
.footer{width:98%; text-align:center; position:absolute; bottom:0; padding:1%; }
mlmmj/contrib/web/php-moderation/translations/ 0000775 0000000 0000000 00000000000 15023031135 0022047 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/php-moderation/translations/dot.htaccess 0000664 0000000 0000000 00000000037 15023031135 0024354 0 ustar 00root root 0000000 0000000 Order Deny,Allow
Deny from all
mlmmj/contrib/web/php-moderation/translations/fr_FR.po 0000664 0000000 0000000 00000004653 15023031135 0023415 0 ustar 00root root 0000000 0000000 # MLMMJ moderation web interface templates.
# Copyright (C) 2009 Thomas GOIRAND
# This file is distributed under the same license as MLMMJ package.
# Thomas Goirand , 2009.
#
msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-03-05 07:25+0800\n"
"PO-Revision-Date: 2009-03-05 07:29+0800\n"
"Last-Translator: Thomas Goirand \n"
"Language-Team: Thomas Goirand \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: mlmmj-moderation.php:259
msgid "Back to messages list"
msgstr "Retour a la liste des messages"
#: mlmmj-moderation.php:144
msgid "Date"
msgstr "Date"
#: mlmmj-moderation.php:261
msgid "Date:"
msgstr "Date :"
#: mlmmj-moderation.php:177
msgid "Delete"
msgstr "Effacer"
#: mlmmj-moderation.php:256
msgid "Error: could not read"
msgstr "Erreur: impossible de lire"
#: mlmmj-moderation.php:175
msgid "For the selection:"
msgstr "Pour la sélection :"
#: mlmmj-moderation.php:144
msgid "From"
msgstr "De"
#: mlmmj-moderation.php:260
msgid "From:"
msgstr "De:"
#: mlmmj-moderation.php:144
msgid "Inverse selection"
msgstr "Inverser la selection"
#: mlmmj-moderation.php:249
msgid "Message ID format is wrong: can't display!"
msgstr "Le format de l'ID du message est faux: affichage impossible !"
#: mlmmj-moderation.php:264
msgid "Message body:"
msgstr "Corp du message :"
#: mlmmj-moderation.php:194
msgid "Moderation ID not found in the moderation folder!"
msgstr "ID de modération non trouve dans le dossier de modération!"
#: mlmmj-moderation.php:157
msgid "No date"
msgstr "Pas de date"
#: mlmmj-moderation.php:169
msgid "No from in headers"
msgstr "Pas de from dans les entêtes"
#: mlmmj-moderation.php:184
msgid "No message selected!"
msgstr "Pas de message sélectionné !"
#: mlmmj-moderation.php:161
msgid "No subject"
msgstr "Pas de sujet"
#: mlmmj-moderation.php:245
msgid "Refresh page"
msgstr "Rafraichir la page"
#: mlmmj-moderation.php:144
msgid "Subject"
msgstr "Sujet"
#: mlmmj-moderation.php:263
msgid "Subject:"
msgstr "Sujet :"
#: mlmmj-moderation.php:262
msgid "To:"
msgstr "Pour :"
#: mlmmj-moderation.php:176
msgid "Validate"
msgstr "Valider"
#: mlmmj-moderation.php:122
msgid "Warning: could not read"
msgstr "Alerte : impossible de lire"
#: mlmmj-moderation.php:244
msgid "moderation web interface"
msgstr "interface web de moderation"
mlmmj/contrib/web/php-user/ 0000775 0000000 0000000 00000000000 15023031135 0016143 5 ustar 00root root 0000000 0000000 mlmmj/contrib/web/php-user/README 0000664 0000000 0000000 00000002155 15023031135 0017026 0 ustar 00root root 0000000 0000000 README webinterface Jun 27th 2004
Ehh, what's that?
The mlmmj-webinterface was created to give people the opportunity to
{sub,unsub}scribe to a mailinglists via a webinterface (without having to
write an initial {sub,unsub}scribe-mail).
What are the requirements?
You only need a webserver with PHP >= 3.0.8 support.
How can I install/use the webinterface?
- Upload mlmmj.php to your webserver.
- Have a look at example.html and copy one or both forms
into your website.
- Adjust the options to satisfy your needs:
The mailinglist your want to {sub,unsub}scribe to:
Do you want to subscribe or unsubscribe?
Where do you want to redirect your user after a failure?
What should be the success redirect?
That's it - have a lot of fun!
Christoph Thiel
mlmmj/contrib/web/php-user/example.html 0000664 0000000 0000000 00000002035 15023031135 0020464 0 ustar 00root root 0000000 0000000
mlmmj-webinterface
subscribe
unsubscribe
mlmmj/contrib/web/php-user/mlmmj.php 0000664 0000000 0000000 00000007253 15023031135 0017777 0 ustar 00root root 0000000 0000000
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
// error_reporting(E_ALL);
class mlmmj
{
var $email;
var $mailinglist;
var $job;
var $redirect_success;
var $redirect_failure;
var $delimiter;
var $errors;
function is_email($string="")
{
if (eregi("^[a-z0-9\._-]+".chr(64)."+[a-z0-9\._-]+\.+[a-z]{2,4}$", $string))
{
return TRUE;
}
else
{
return FALSE;
}
}
function error($string="")
{
$this->errors = TRUE;
// die($string);
}
function mlmmj()
{
// set mandatory vars...
$this->errors = FALSE;
$this->delimiter = "+";
if (!isset($_POST["email"]) &&
!isset($_POST["mailinglist"]) &&
!isset($_POST["job"]) &&
!isset($_POST["redirect_success"]) &&
!isset($_POST["redirect_failure"]))
{
$this->errors = TRUE;
if(isset($_POST["redirect_failure"]))
{
header("Location: ".$_POST["redirect_failure"]);
exit;
}
else
die("An error occurred. Please check contrib/web/php-user/README for details.");
}
else
{
if($this->is_email($_POST["email"]))
$this->email = $_POST["email"];
else
$this->error("ERROR: email is not a valid email address.");
if($this->is_email($_POST["mailinglist"]))
$this->mailinglist = $_POST["mailinglist"];
else
$this->error("ERROR: mailinglist is not a valid email address.");
$this->job = $_POST["job"];
if(!(($this->job == "subscribe") OR ($this->job == "unsubscribe")))
{
$this->error("ERROR: job unknown.");
}
$this->redirect_failure = $_POST["redirect_failure"];
$this->redirect_success = $_POST["redirect_success"];
}
// now we should try to go ahead and {sub,unsub}scribe... ;)
if(!$this->errors)
{
// @ ^= char(64)
$to = str_replace(chr(64),$this->delimiter.$this->job.chr(64),$this->mailinglist);
$subject = $this->job." to ".$this->mailinglist;
$body = $this->job;
$addheader = "";
$addheader .= "Received: from ". $_SERVER["REMOTE_ADDR"]
." by ". $_SERVER["SERVER_NAME"]. " with HTTP;\r\n\t".date("r")."\n";
$addheader .= "X-Originating-IP: ".$_SERVER["REMOTE_ADDR"]."\n";
$addheader .= "X-Mailer: mlmmj-webinterface powered by PHP/". phpversion() ."\n";
$addheader .= "From: ".$this->email."\n";
$addheader .= "Cc: ".$this->email."\n";
if(!mail($to, $subject, $body, $addheader))
$this->error($this->job." failed.");
}
if($this->errors)
{
header("Location: ".$this->redirect_failure);
exit;
}
else
{
header("Location: ".$this->redirect_success);
exit;
}
}
}
$mailinglist = new mlmmj;
?>
mlmmj/include/ 0000775 0000000 0000000 00000000000 15023031135 0013606 5 ustar 00root root 0000000 0000000 mlmmj/include/checkwait_smtpreply.h 0000664 0000000 0000000 00000002733 15023031135 0020045 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef CHECK_REPLY_H
#define CHECK_REPLY_H
#define MLMMJ_CONNECT 1
#define MLMMJ_EHLO 2
#define MLMMJ_HELO 3
#define MLMMJ_FROM 4
#define MLMMJ_RCPTTO 5
#define MLMMJ_DATA 6
#define MLMMJ_DOT 7
#define MLMMJ_QUIT 8
#define MLMMJ_RSET 9
#include "mlmmj.h"
char *checkwait_smtpreply(int sockfd, int replytype);
#endif /* CHECK_REPLY_H */
mlmmj/include/chomp.h 0000664 0000000 0000000 00000002352 15023031135 0015067 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MLMMJ_CHOMP__H
#define MLMMJ_CHOMP__H
char *chomp(char *str);
#endif /* MLMMJ_CHOMP__H */
mlmmj/include/ctrlvalue.h 0000664 0000000 0000000 00000004470 15023031135 0015765 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef CTRLVALUE_H
#define CTRLVALUE_H
#include
#include
#include
char *ctrlvalue(int ctrlfd, const char *ctrlstr);
char *ctrlcontent(int ctrlfd, const char *ctrlstr);
char *textcontent(int listfd, const char *ctrlstr);
intmax_t ctrlim(int ctrlfd, const char *ctrlstr, intmax_t min,
intmax_t max, intmax_t fallback);
uintmax_t ctrluim(int ctrlfd, const char *ctrlstr, uintmax_t min,
uintmax_t max, uintmax_t fallback);
static inline int
ctrlint(int ctrlfd, const char *ctrlstr, int fallback)
{
return (ctrlim(ctrlfd, ctrlstr, INT_MIN, INT_MAX, fallback));
}
static inline size_t
ctrlsizet(int ctrlfd, const char *ctrlstr, uintmax_t fallback)
{
return (ctrluim(ctrlfd, ctrlstr, 0, SIZE_MAX, fallback));
}
static inline unsigned short
ctrlushort(int ctrlfd, const char *ctrlstr, unsigned short fallback)
{
return (ctrluim(ctrlfd, ctrlstr, 0, USHRT_MAX, fallback));
}
time_t ctrltimet(int dfd, const char *ctrlstr, time_t fallback);
static inline long
ctrllong(int ctrlfd, const char *ctrlstr, unsigned short fallback)
{
return (ctrlim(ctrlfd, ctrlstr, LONG_MIN, LONG_MAX, fallback));
}
#endif /* CTRLVALUE_H */
mlmmj/include/ctrlvalues.h 0000664 0000000 0000000 00000002603 15023031135 0016144 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include "mlmmj.h"
#include
strlist *ctrlvalues(int ctrlfd, const char *ctrlstr);
bool ctrlvalues_contains(int ctrlfd, const char *ctrlstr, const char *pattern, bool sensitivity);
mlmmj/include/do_all_the_voodoo_here.h 0000664 0000000 0000000 00000003232 15023031135 0020441 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023-2025 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include "mlmmj.h" /* For struct mailhdr and struct strlist */
bool findit(const char *line, const strlist *headers);
void getinfo(const char *line, struct mailhdr *readhdrs);
int do_all_the_voodoo_here(int infd, int outfd, int hdrfd, int footfd,
const strlist *delhdrs, struct mailhdr *readhdrs,
strlist *allhdrs, const char *subjectprefix, int replyto);
void scan_headers(FILE *f, struct mailhdr *readhdrs, strlist *allhdrs,
strlist *allunfoldeds);
mlmmj/include/find_email_adr.h 0000664 0000000 0000000 00000002534 15023031135 0016700 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef FIND_EMAIL_ADR_H
#define FIND_EMAIL_ADR_H
#include
strlist *find_email_adr(const char *str, strlist *retval);
#endif /* FIND_EMAIL_ADR_H */
mlmmj/include/getaddrsfromfile.h 0000664 0000000 0000000 00000002444 15023031135 0017304 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2005 Mads Martin Joergensen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include
#include "mlmmj.h"
int getaddrsfromfile(strlist *slist, FILE *f, size_t max);
mlmmj/include/gethdrline.h 0000664 0000000 0000000 00000002355 15023031135 0016111 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
char *gethdrline(FILE *f,char **unfolded);
mlmmj/include/getlistdelim.h 0000664 0000000 0000000 00000002344 15023031135 0016450 0 ustar 00root root 0000000 0000000 /* Copyright 2005 Joel Aelwyn
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef GETLISTDELIM_H
#define GETLISTDELIM_H
char *getlistdelim(int ctrlfd);
#endif /* GETLISTDELIM_H */
mlmmj/include/incindexfile.h 0000664 0000000 0000000 00000002360 15023031135 0016421 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef INCINDEXFILE_H
#define INCINDEXFILE_H
int incindexfile(int listfd);
#endif /* INCINDEXFILE_H */
mlmmj/include/init_sockfd.h 0000664 0000000 0000000 00000002432 15023031135 0016254 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef INIT_SOCKFD_H
#define INIT_SOCKFD_H
void init_sockfd(int *sockfd, const char *relayhost, unsigned short port);
#endif /* INIT_SOCKFD_H */
mlmmj/include/listcontrol.h 0000664 0000000 0000000 00000004002 15023031135 0016327 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef LISTCONTROL_H
#define LISTCONTROL_H
#include "mlmmj.h"
enum ctrl_e {
CTRL_SUBSCRIBE_DIGEST,
CTRL_SUBSCRIBE_NOMAIL,
CTRL_SUBSCRIBE_BOTH,
CTRL_SUBSCRIBE,
CTRL_CONFSUB_DIGEST,
CTRL_CONFSUB_NOMAIL,
CTRL_CONFSUB_BOTH,
CTRL_CONFSUB,
CTRL_UNSUBSCRIBE_DIGEST,
CTRL_UNSUBSCRIBE_NOMAIL,
CTRL_UNSUBSCRIBE,
CTRL_CONFUNSUB_DIGEST,
CTRL_CONFUNSUB_NOMAIL,
CTRL_CONFUNSUB,
CTRL_BOUNCES,
CTRL_RELEASE,
CTRL_REJECT,
CTRL_PERMIT,
CTRL_OBSTRUCT,
CTRL_MODERATE,
CTRL_HELP,
CTRL_FAQ,
CTRL_GET,
CTRL_LIST,
};
struct ctrl_command {
char *command;
bool accepts_parameter;
bool valid_when_closed_list;
bool valid_when_closed_sub;
enum ctrl_e type;
};
struct ctrl_command *get_ctrl_command(const char *controlstr, char **param);
int listcontrol(strlist *fromemails, struct ml *ml,
const char *controlstr, const char *mlmmjsend,
const char *mailname);
#endif /* LISTCONTROL_H */
mlmmj/include/log_error.h 0000664 0000000 0000000 00000003046 15023031135 0015754 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2004 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef LOG_ERROR_H
#define LOG_ERROR_H
#include
#include
#define LOG_ARGS __FILE__, __LINE__, strerror(errno)
void log_set_name(const char *name);
void log_set_namef(const char *fmt, ...);
void log_activate_stderr(void);
void log_free_name(void);
void log_error(const char *file, int line, const char *errstr,
const char *fmt, ...);
void log_err(const char *fmt, ...);
#endif /* LOG_ERROR_H */
mlmmj/include/log_oper.h 0000664 0000000 0000000 00000002472 15023031135 0015572 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2005 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef LOG_OPER_H
#define LOG_OPER_H
int log_oper(int listfd, const char *basename, const char *fmt, ...);
#endif /* LOG_OPER_H */
mlmmj/include/mail-functions.h 0000664 0000000 0000000 00000003366 15023031135 0016717 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2023 Mads Martin Joergensen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#define WRITE_BUFSIZE 1024
#include
int write_helo(int sockfd, const char *hostname);
int write_ehlo(int sockfd, const char *hostname);
int write_mail_from(int sockfd, const char *from_addr, const char *extra);
int write_rcpt_to(int sockfd, const char *rcpt_addr);
int write_custom_line(int sockfd, const char *line);
void write_mailbody(int sockfd, FILE *fp, const char *tohdr);
int write_replyto(int sockfd, const char *replyaddr);
int write_dot(int sockfd);
int write_quit(int sockfd);
int write_data(int sockfd);
int write_rset(int sockfd);
mlmmj/include/mlmmj-process.h 0000664 0000000 0000000 00000002525 15023031135 0016553 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
char *get_recipextra_from_env(int ctrlfd);
bool addrmatch(const char *listaddr, const char *addr, const char *listdelim, char **recipextra);
mlmmj/include/mlmmj-receive.h 0000664 0000000 0000000 00000002373 15023031135 0016520 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MMJML_RECEIVE_H
#define MMJML_RECEIVE_H
void free_str_array(char **to_free);
#endif /* MMJML_RECEIVE_H */
mlmmj/include/mlmmj-send.h 0000664 0000000 0000000 00000003142 15023031135 0016022 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MMJML_SEND_H
#define MMJML_SEND_H
#include
#include
#include "send_mail.h"
#include "mlmmj.h"
int send_mail_many_fd(int sockfd, struct mail *mail, struct ml *ml, int subfd,
const char *archivefilename);
int send_mail_many_list(int sockfd, struct mail *mail, struct ml *ml, strlist *addrs,
const char *archivefilename);
int send_mail_verp(int sockfd, strlist *addrs, struct mail *mail, const char *extra);
#endif /* MMJML_SEND_H */
mlmmj/include/mlmmj-sub.h 0000664 0000000 0000000 00000002333 15023031135 0015663 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MLMMJ_SUBSCRIBE_H
#define MLMMJ_SUBSCRIBE_H
#endif /* MLMMJ_SUBSCRIBE_H */
mlmmj/include/mlmmj.h 0000664 0000000 0000000 00000013044 15023031135 0015075 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003, 2004 Mads Martin Joergensen
* Copyright (C) 2022-2024 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MLMMJ_GENERIC_INCLUDES
#define MLMMJ_GENERIC_INCLUDES
#include "config.h"
#include
#include
#include
#ifndef __unused
#define __unused __attribute__((__unused__))
#endif
#ifndef NELEM
#define NELEM(array) (sizeof(array) / sizeof((array)[0]))
#endif
#ifndef __dead2
#define __dead2 __attribute__((__noreturn__))
#endif
#define RELAYHOST "127.0.0.1"
#define READ_BUFSIZE 2048
#define DEFAULT_RECIPDELIM "+" /* Default recipient delimiter */
#define MODREQLIFE 604800 /* How long time will moderation requests be kept?
* 604800s is 7 days */
#define DISCARDEDLIFE 604800 /* How long time will discarded mails be kept?
* 604800s is 7 days */
#define CONFIRMLIFE 604800 /* How long time will (un)sub confirmations be kept?
* 604800s is 7 days */
#define BOUNCELIFE 432000 /* How long time can addresses bounce before
unsubscription happens? 432000s is 5 days
Tweakable with control/bouncelife */
#define WAITPROBE 43200 /* How long do we wait for a bounce of the probe
mail before concluding the address is no longer
bouncing? 43200 is 12 hours */
#define MAINTD_SLEEP 7200 /* How long between maintenance runs when
mlmmj-maintd runs daemonized? 7200s is 2 hours */
#define MAINTD_LOGFILE "mlmmj-maintd.lastrun.log"
#define DIGESTINTERVAL 604800 /* How long do we collect mails for digests
* 604800s is 7 days */
#define DIGESTMAXMAILS 50 /* How many mails can accumulate before we send the
* digest */
#define DIGESTMIMETYPE "digest" /* Which sub-type of multipart to use when
* sending digest mails */
#define OPLOGFNAME "mlmmj.operation.log" /* logfile to log operations */
#define OPLOGSIZE 524288
#define gen_addr(addr, _ml, _cmd) \
xasprintf(&addr, "%s%s%s@%s", (_ml)->name, (_ml)->delim, _cmd, (_ml)->fqdn)
#define gen_addr_cookie(addr, _ml, _cmd, _cookie) \
xasprintf(&addr, "%s%s%s%s@%s", (_ml)->name, (_ml)->delim, _cmd, _cookie, (_ml)->fqdn);
struct ml {
const char *dir;
char *delim;
char *name;
const char *fqdn;
char *addr;
int fd;
int ctrlfd;
};
typedef tll(char *) strlist;
typedef enum bounce {
BOUNCE_OK,
BOUNCE_FAIL,
BOUNCE_DONE
} bounce_t;
#define MAXVERPRECIPS 100
struct mailhdr {
const char *token;
int valuecount;
char **values;
};
/* Has to go here, since it's used in many places */
enum subtype {
SUB_NORMAL = 0,
SUB_DIGEST,
SUB_NOMAIL,
SUB_FILE, /* For single files (moderator, owner etc.) */
SUB_ALL, /* For listing or unsubscribing all kinds of subscribers */
SUB_BOTH, /* For normal+digest subscription */
SUB_NONE /* For when an address is not subscribed at all */
};
extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
enum subreason {
SUB_REQUEST = 0,
SUB_CONFIRM,
SUB_PERMIT,
SUB_ADMIN,
SUB_BOUNCING,
SUB_SWITCH
};
extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
void print_version(const char *prg);
bool parse_lastdigest(char *line, long *lastindex, time_t *lasttime,
long *lastissue, const char **errstr);
time_t extract_bouncetime(char *line, const char **errstr);
int open_subscriber_directory(int listfd, enum subtype typesub, const char **dir);
bool unsubscribe(int listfd, const char *address, enum subtype typesub);
bounce_t bouncemail(int listfd, const char *theaddress, const char *identifier);
void save_lastbouncedmsg(int listfd, const char *address, const char *mailname);
char *dsnparseaddr(const char *mailname);
int open_listdir(const char *listdir, bool usercheck);
void ml_init(struct ml *ml);
bool ml_open(struct ml *ml, bool checkuser);
void ml_close(struct ml *ml);
bool send_probe(struct ml *ml, const char *addr);
void parse_content_type(strlist *, char **mime_type, char **boundary);
char *find_in_list(strlist *, const char *pattern);
typedef enum {
ACT_ALLOW = 0,
ACT_SEND,
ACT_DENY,
ACT_MODERATE,
ACT_DISCARD,
} actions_t;
actions_t do_access(strlist *rules, strlist *headers, const char *from, char **msg, char **qualifier);
#define MY_ASSERT(expression) if (!(expression)) { \
errno = 0; \
log_error(LOG_ARGS, "assertion failed"); \
exit(EXIT_FAILURE); \
}
#define CHECKFULLPATH(name) if(strchr(name, '/') == NULL) { \
errx(EXIT_FAILURE, "All mlmmj binaries have to " \
"be invoked with full path,\n" \
"e.g. /usr/local/bin/%s", name); \
};
#endif /* MLMMJ_GENERIC_INCLUDES */
mlmmj/include/mygetline.h 0000664 0000000 0000000 00000002405 15023031135 0015755 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003, 2004 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef MYGETLINE_H
#define MYGETLINE_H
#define BUFSIZE 256
char *mygetline(int fd);
#endif /* #ifndef MYGETLINE_H */
mlmmj/include/prepstdreply.h 0000664 0000000 0000000 00000006165 15023031135 0016524 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2011 Ben Schmidt
* Copyright (C) 2023-2025 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef PREPSTDREPLY_H
#define PREPSTDREPLY_H
#include
#include "mlmmj.h"
struct text;
typedef struct text text;
typedef void (*rewind_function)(void *state);
typedef const char *(*get_function)(void *state);
struct memory_lines_state;
typedef struct memory_lines_state memory_lines_state;
struct file_lines_state;
typedef struct file_lines_state file_lines_state;
memory_lines_state *init_memory_lines(const char *lines);
void rewind_memory_lines(void *state);
const char *get_memory_line(void *state);
void finish_memory_lines(memory_lines_state *s);
file_lines_state *init_file_lines(const char *filename, char truncate);
file_lines_state *init_file_lines_fd(int fd, char truncate);
file_lines_state *init_file_lines_data(int fd, char truncate, void *data);
void rewind_file_lines(void *state);
const char *get_file_line(void *state);
const char *get_msgid_line(void *state);
void finish_file_lines(file_lines_state *s);
char *substitute(const char *line, int listfd, int ctrlfd, text *txt);
text *open_text_fd(int fd);
text *open_text_file(int listfd, const char *filename);
text *open_text(int listfd, const char *purpose, const char *action,
const char *reason, const char *type, const char *compat);
void register_unformatted(text *txt, const char *token, const char *subst);
void register_originalmail(text *txt, const char *mailname);
void register_formatted(text *txt, const char *token,
rewind_function rew, get_function get, void * state);
char *get_processed_text_line(text *txt, bool headers, struct ml *ml);
bool prepstdreply_to(text *txt, struct ml *ml,
const char *from, const char *to, const char *replyto, int tofd, const char *messageid);
char *prepstdreply(text *txt, struct ml *ml,
const char *from, const char *to, const char *replyto);
void close_text(text *txt);
void register_default_unformatted(text *txt, struct ml *ml);
#endif /* PREPSTDREPLY_H */
mlmmj/include/remailfile.h 0000664 0000000 0000000 00000002404 15023031135 0016070 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2004 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef REMAILFILE_H
#define REMAILFILE_H
int remailfile(const char *mailfilename, int deletewhensent);
#endif /* REMAILFILE_H */
mlmmj/include/send_digest.h 0000664 0000000 0000000 00000002466 15023031135 0016257 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
int send_digest(struct ml *ml, int lastindex, int index,
int issue, const char *addr, const char *mlmmjsend);
mlmmj/include/send_help.h 0000664 0000000 0000000 00000002563 15023031135 0015726 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
void send_help(struct ml *ml, const char *queuefilename, const char *emailaddr) __dead2;
void send_help_noexit(struct ml *ml, const char *queuefilename, const char *emailaddr);
mlmmj/include/send_list.h 0000664 0000000 0000000 00000003035 15023031135 0015744 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2005 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include "mlmmj.h"
void send_list(struct ml *ml, const char *emailaddr) __dead2;
struct subs_list_state;
struct subs_list_state *init_subs_list(int fd, const char *dirname);
void rewind_subs_list(void *state);
const char *get_sub(void *state);
void finish_subs_list(struct subs_list_state *s);
void print_subs(int fd, struct subs_list_state *s);
mlmmj/include/send_mail.h 0000664 0000000 0000000 00000004027 15023031135 0015715 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004, 2003, 2004 Mads Martin Joergensen
* Copyright (C) 2022-2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include
#include
#include
#include "mlmmj.h"
struct mail {
const char *from;
const char *to;
const char *replyto;
FILE *fp;
bool addtohdr;
};
int newsmtp(struct ml *ml, const char *relayhost);
int initsmtp(int *sockfd, const char *relayhost, unsigned short port, const char *heloname);
int endsmtp(int *sockfd);
int send_mail(int sockfd, struct mail *mail, int listfd, int ctrlfd, bool bounce);
int do_bouncemail(int listfd, int ctrlfd, const char *from);
bool send_single_mail(struct mail *mail, struct ml *ml, bool bounce);
void save_queue(const char *queuefilename, struct mail *mail);
bool requeuemail(int listfd, int index, strlist *addrs, const char *addr);
char *get_bounce_from_adr(const char *recipient, struct ml *ml, int index);
int get_index_from_filename(const char *filename);
mlmmj/include/statctrl.h 0000664 0000000 0000000 00000002406 15023031135 0015621 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2004 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef STATCTRL_H
#define STATCTRL_H
#include
bool statctrl(int ctrlfd, const char *ctrlstr);
#endif /* STATCTRL_H */
mlmmj/include/strgen.h 0000664 0000000 0000000 00000003311 15023031135 0015257 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2023 Mads Martin Joergensen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef STRGEN_H
#define STRGEN_H
#include
char *random_str(void);
char *random_plus_addr(const char *addr);
char *genlistname(const char *listaddr);
const char *genlistfqdn(const char *listaddr);
char *hostnamestr(void);
char *mydirname(const char *path);
const char *mybasename(const char *path);
char *genmsgid(const char *fqdn);
char *gendatestr(void);
char *decode_qp(const char *qpstr, bool qformat);
bool splitlistaddr(const char *listaddr, char **listname, const char **listfqdn);
#endif /* STRGEN_H */
mlmmj/include/subscriberfuncs.h 0000664 0000000 0000000 00000004765 15023031135 0017175 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2003 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include
struct subscription {
bool send_welcome_email;
const char *modstr;
enum subreason reasonsub;
enum subtype typesub;
bool gensubscribed;
bool subconfirm;
bool force;
bool quiet;
const char *mlmmjsend;
};
bool find_subscriber(int fd, const char *address);
int is_subbed_in(int fd, const char *subddirname, const char *address);
enum subtype is_subbed(int listfd, const char *address, bool both);
char *get_subcookie_content(int listfd, bool unsub, const char *param);
void notify_sub(struct ml *ml, const char *subaddr, enum subtype typesub,
enum subreason reasonsub, bool sub);
void generate_subscription(struct ml *ml, const char *subaddr, enum subtype typesub, bool sub);
void generate_subconfirm(struct ml *ml, const char *subaddr, enum subtype typesub,
enum subreason reasonsub, bool sub);
void send_confirmation_mail(struct ml *ml, const char *subaddr, enum subtype typesub, enum subreason reasonsub, bool sub);
bool do_unsubscribe(struct ml *ml, const char *addr, enum subtype typesub, enum subreason reasonsub, bool inform_not_subscribed, bool confirm_unsubscription, bool quiet, bool send_goodbye_mail);
void mod_get_addr_and_type(struct ml *ml, const char *modstr, char **addrptr, enum subtype *subtypeptr);
bool do_subscribe(struct ml *ml, struct subscription *sub, const char *addr);
mlmmj/include/tllist.h 0000664 0000000 0000000 00000030161 15023031135 0015273 0 ustar 00root root 0000000 0000000 #pragma once
#include
#include
#include
#define TLL_PASTE2( a, b) a##b
#define TLL_PASTE( a, b) TLL_PASTE2( a, b)
/* Utility macro to generate a list element struct with a unique struct tag */
#define TLL_UNIQUE_INNER_STRUCT(TYPE, ID) \
struct TLL_PASTE(__tllist_ , ID) { \
TYPE item; \
struct TLL_PASTE(__tllist_, ID) *prev; \
struct TLL_PASTE(__tllist_, ID) *next; \
} *head, *tail;
/*
* Defines a new typed-list type, or directly instantiate a typed-list variable
*
* Example a, declare a variable (list of integers):
* tll(int) my_list;
*
* Example b, declare a type, and then use the type:
* tll(int, my_list_type);
* struct my_list_type my_list;
*/
#define tll(TYPE) \
struct { \
TLL_UNIQUE_INNER_STRUCT(TYPE, __COUNTER__) \
size_t length; \
}
/* Initializer: tll(int) my_list = tll_init(); */
#define tll_init() {.head = NULL, .tail = NULL, .length = 0}
/* Length/size of list: printf("size: %zu\n", tll_length(my_list)); */
#define tll_length(list) (list).length
/* Adds a new item to the back of the list */
#define tll_push_back(list, new_item) \
do { \
tll_insert_after(list, (list).tail, new_item); \
if ((list).head == NULL) \
(list).head = (list).tail; \
} while (0)
/* Adds a new item to the front of the list */
#define tll_push_front(list, new_item) \
do { \
tll_insert_before(list, (list).head, new_item); \
if ((list).tail == NULL) \
(list).tail = (list).head; \
} while (0)
/*
* Iterates the list. is an iterator pointer. You can access the
* list item with ->item:
*
* tll(int) my_list = vinit();
* tll_push_back(my_list, 5);
*
* tll_foreach(my_list i) {
* printf("%d\n", i->item);
* }
*/
#define tll_foreach(list, it) \
for (__typeof__(*(list).head) *it = (list).head, \
*it_next = it != NULL ? it->next : NULL; \
it != NULL; \
it = it_next, \
it_next = it_next != NULL ? it_next->next : NULL)
/* Same as tll_foreach(), but iterates backwards */
#define tll_rforeach(list, it) \
for (__typeof__(*(list).tail) *it = (list).tail, \
*it_prev = it != NULL ? it->prev : NULL; \
it != NULL; \
it = it_prev, \
it_prev = it_prev != NULL ? it_prev->prev : NULL)
/*
* Inserts a new item after , which is an iterator. I.e. you can
* only call this from inside a tll_foreach() or tll_rforeach() loop.
*/
#define tll_insert_after(list, it, new_item) \
do { \
__typeof__((list).head) __e = malloc(sizeof(*__e)); \
__e->item = (new_item); \
__e->prev = (it); \
__e->next = (it) != NULL ? (it)->next : NULL; \
if ((it) != NULL) { \
if ((it)->next != NULL) \
(it)->next->prev = __e; \
(it)->next = __e; \
} \
if ((it) == (list).tail) \
(list).tail = __e; \
(list).length++; \
} while (0)
/*
* Inserts a new item before , which is an iterator. I.e. you can
* only call this from inside a tll_foreach() or tll_rforeach() loop.
*/
#define tll_insert_before(list, it, new_item) \
do { \
__typeof__((list).head) __e = malloc(sizeof(*__e)); \
__e->item = (new_item); \
__e->prev = (it) != NULL ? (it)->prev : NULL; \
__e->next = (it); \
if ((it) != NULL) { \
if ((it)->prev != NULL) \
(it)->prev->next = __e; \
(it)->prev = __e; \
} \
if ((it) == (list).head) \
(list).head = __e; \
(list).length++; \
} while (0)
/*
* Removes an entry from the list. is an iterator. I.e. you can
* only call this from inside a tll_foreach() or tll_rforeach() loop.
*/
#define tll_remove(list, it) \
do { \
assert((list).length > 0); \
__typeof__((list).head) __prev = it->prev; \
__typeof__((list).head) __next = it->next; \
if (__prev != NULL) \
__prev->next = __next; \
else \
(list).head = __next; \
if (__next != NULL) \
__next->prev = __prev; \
else \
(list).tail = __prev; \
free(it); \
(list).length--; \
} while (0)
/* Same as tll_remove(), but calls free_callback(it->item) */
#define tll_remove_and_free(list, it, free_callback) \
do { \
free_callback((it)->item); \
tll_remove((list), (it)); \
} while (0)
#define tll_front(list) (list).head->item
#define tll_back(list) (list).tail->item
/*
* Removes the first element from the list, and returns it (note:
* returns the *actual* item, not an iterator.
*/
#define tll_pop_front(list) __extension__ \
({ \
__typeof__((list).head) it = (list).head; \
__typeof__((list).head->item) __ret = it->item; \
tll_remove((list), it); \
__ret; \
})
/* Same as tll_pop_front(), but returns/removes the *last* element */
#define tll_pop_back(list) __extension__ \
({ \
__typeof__((list).tail) it = (list).tail; \
__typeof__((list).tail->item) __ret = it->item; \
tll_remove((list), it); \
__ret; \
})
/* Frees the list. This call is *not* needed if the list is already empty. */
#define tll_free(list) \
do { \
tll_foreach(list, __it) \
free(__it); \
(list).length = 0; \
(list).head = (list).tail = NULL; \
} while (0)
/* Same as tll_free(), but also calls free_callback(item) for every item */
#define tll_free_and_free(list, free_callback) \
do { \
tll_foreach(list, __it) { \
free_callback(__it->item); \
free(__it); \
} \
(list).length = 0; \
(list).head = (list).tail = NULL; \
} while (0)
#define tll_sort(list, cmp) \
do { \
__typeof((list).head) __p; \
__typeof((list).head) __q; \
__typeof((list).head) __e; \
__typeof((list).head) __t; \
int __insize, __nmerges, __p_size, __q_size; \
if ((list).head == NULL) \
break; \
__insize = 1; \
while (1) { \
__p = (list).head; \
(list).head = NULL; \
__t = NULL; \
__nmerges = 0; \
while (__p != NULL) { \
__nmerges++; \
__q = __p; \
__p_size = 0; \
for (int _i = 0; _i < __insize; _i++) { \
__p_size++; \
__q = __q->next; \
if (__q == NULL) \
break; \
} \
__q_size = __insize; \
while (__p_size > 0 || (__q_size > 0 && __q != NULL)) { \
if (__p_size == 0) { \
__e = __q; \
__q = __q->next; \
__q_size--; \
} else if (__q_size == 0 || __q == NULL) { \
__e = __p; \
__p = __p->next; \
__p_size--; \
} else if (cmp(__p->item, __q->item) <= 0) { \
__e = __p; \
__p = __p->next; \
__p_size--; \
} else { \
__e = __q; \
__q = __q->next; \
__q_size--; \
} \
if (__t != NULL) { \
__t->next = __e; \
} else { \
(list).head = __e; \
} \
__e->prev = __t; \
__t = __e; \
} \
__p = __q; \
} \
(list).tail = __t; \
__t->next = NULL; \
__insize *= 2; \
if (__nmerges <= 1) \
break; \
} \
} while (0)
mlmmj/include/unistr.h 0000664 0000000 0000000 00000003463 15023031135 0015311 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2005 Morten K. Poulsen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef UNISTR_H
#define UNISTR_H
typedef unsigned int unistr_char;
typedef struct _unistr {
size_t len;
size_t alloc_len;
unistr_char *chars;
} unistr;
unistr *unistr_new(void);
void unistr_free(unistr *str);
void unistr_append_char(unistr *str, unistr_char uc);
void unistr_append_usascii(unistr *str, const char *binary, size_t bin_len);
void unistr_append_utf8(unistr *str, const char *binary, size_t bin_len);
void unistr_append_iso88591(unistr *str, const char *binary, size_t bin_len);
char *unistr_to_utf8(const unistr *str);
char *unistr_header_to_utf8(const char *str);
char *unistr_utf8_to_header(const char *str);
char *unistr_escaped_to_utf8(const char *str);
#endif
mlmmj/include/utils.h 0000664 0000000 0000000 00000003344 15023031135 0015123 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#pragma once
#include
#include
#include
#include
#include
#include "mlmmj.h"
char *lowercase(const char *);
intmax_t strtoim(const char *np, intmax_t minval, intmax_t maxval,
const char **errpp);
uintmax_t strtouim(const char *, uintmax_t, uintmax_t, const char **);
void exec_or_die(const char *arg, ...);
int exec_and_wait(const char *arg, ...);
time_t strtotimet(const char *np, const char **errpp);
bool lock(int fd, bool write);
bool find_email(strlist *list, strlist *matches, const char *delim, char **recipextra);
char *readlf(int fd, bool oneline);
mlmmj/include/wrappers.h 0000664 0000000 0000000 00000002666 15023031135 0015634 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef WRAPPERS_H
#define WRAPPERS_H
#include
ssize_t readn(int fd, void *vptr, size_t n);
int random_int(void);
int dumpfd2fd(int infd, int outfd);
int copy_file(int infd, int outfd, size_t bufsiz);
int process_headers_fd(int infd, int outfd,const char *from);
#endif /* WRAPPERS_H */
mlmmj/include/xmalloc.h 0000664 0000000 0000000 00000001626 15023031135 0015423 0 ustar 00root root 0000000 0000000 #pragma once
#include
#include
#include
#include
static inline void *xmalloc(size_t size)
{
void *ptr = malloc(size);
if (ptr == NULL)
abort();
return (ptr);
}
static inline void *xcalloc(size_t n, size_t size)
{
void *ptr = calloc(n, size);
if (ptr == NULL)
abort();
return (ptr);
}
static inline void *xrealloc(void *ptr, size_t size)
{
ptr = realloc(ptr, size);
if (ptr == NULL)
abort();
return (ptr);
}
static inline char *xstrdup(const char *str)
{
char *s = strdup(str);
if (s == NULL)
abort();
return (s);
}
static inline char *xstrndup(const char *str, size_t n)
{
char *s = strndup(str, n);
if (s == NULL)
abort();
return (s);
}
static inline int xasprintf(char **ret, const char *fmt, ...)
{
va_list ap;
int i;
va_start(ap, fmt);
i = vasprintf(ret, fmt, ap);
va_end(ap);
if (i < 0 || *ret == NULL)
abort();
return (i);
}
mlmmj/include/xstring.h 0000664 0000000 0000000 00000002045 15023031135 0015456 0 ustar 00root root 0000000 0000000 #ifndef __XSTRING_H_
#define __XSTRING_H_
#include
#include
#include
struct xstring {
char* buf;
size_t size;
FILE* fp;
};
typedef struct xstring xstring;
static inline xstring *
xstring_new(void)
{
xstring *str;
str = calloc(1, sizeof(*str));
if (str == NULL)
abort();
str->fp = open_memstream(&str->buf, &str->size);
if (str->fp == NULL)
abort();
return (str);
}
static inline void
xstring_reset(xstring *str)
{
if (str->buf)
memset(str->buf, 0, str->size);
rewind(str->fp);
}
static inline void
xstring_free(xstring *str)
{
if (str == NULL)
return;
fclose(str->fp);
free(str->buf);
free(str);
}
#define xstring_renew(s) \
do { \
if (s) { \
xstring_reset(s); \
} else { \
s = xstring_new(); \
} \
} while(0)
static inline char *
xstring_get(xstring *str)
{
if (str == NULL)
return (NULL);
fclose(str->fp);
char *ret = str->buf;
free(str);
return (ret);
}
#endif
mlmmj/kyua.conf.in 0000664 0000000 0000000 00000000163 15023031135 0014410 0 ustar 00root root 0000000 0000000 syntax(2)
test_suites.mlmmj.top_srcdir = "@abs_top_srcdir@"
test_suites.mlmmj.top_builddir = "@abs_top_builddir@"
mlmmj/listtexts/ 0000775 0000000 0000000 00000000000 15023031135 0014226 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/Makefile.am 0000664 0000000 0000000 00000000144 15023031135 0016261 0 ustar 00root root 0000000 0000000 ## Process this file with automake to produce Makefile.in
nobase_dist_textlib_DATA = $(srcdir)/*/*
mlmmj/listtexts/ast/ 0000775 0000000 0000000 00000000000 15023031135 0015015 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/ast/confirm 0000664 0000000 0000000 00000003242 15023031135 0016376 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Confirmar suscripción a $list$@$domain$%endif%
%ifaction unsub%Subject: Confirmar des-suscripción de $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Un alministrador
%endif%
%ifreason request%
Dalguién (esperamos que tu)
%endif%
pidió que la to direición de corréu <$subaddr$> s'amestara
%iftype normal%
a la llista. Esto quier dicir que cuando s'unvie un mensaxe a la llista,
recibirás una copia del mesmu.
%endif%
%iftype digest%
a la llista, pa recibir resumes. Esto quier dicir que recibirás
múltiples mensaxes nun únicu mensaxe de corréu, a intervalos regulares,
o cuando s'acumulen munchos mensaxes.
%endif%
%iftype nomail%
a la llista, ensin entrega de corréu. Esto quier dicir que nun recibirás
dengún mensaxe de la llista, pero tas consideráu miembru. Esto
significa, por exemplu, que podrás escribir a una llista na que sólo los
suscriptores puen facelo, mientres sigues la llista per un archivu web o
otra direición de corréu suscrita.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Un alministrador
%endif%
%ifreason request%
Dalguién (esperamos que tu)
%endif%
pidió que la direición de corréu <$subaddr$> se desanicie de la llista.
%endif%
%wrap%Pa confirmar que quies facelo, unvia un mensaxe a <$confirmaddr$> lo que
de vezu pue facese simplemente respondiendo a esti mensaxe. L'asuntu y
cuerpu del mensaxe puen ser cualesquier cosa.
Tres facelo, tendríes de recibir una contestación pa informate de que la
operación foi correuta.
Si nun quies facer esto, simplemente salta esti mensaxe.
mlmmj/listtexts/ast/deny 0000664 0000000 0000000 00000004336 15023031135 0015705 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Nun se pudo suscribir $list$@$domain$%endif%
%ifaction unsub%Subject: Nun se pudo des-suscribir $list$@$domain$%endif%
%ifaction release reject%Subject: Nun se pudo moderar $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Nun se pudo supervisar $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Nun se pudo facer la suscripción a la llista
%ifreason disabled%
porque la versión
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% ensin corréu %endif%
de la llista ta desactivada.
%endif%
%ifreason closed%
porque nun se permite que la xente se suscriba a esta llista per corréu.
%endif%
%ifreason subbed%
porque yá tas suscritu.
%endif%
%ifreason expired%
porque pasó muncho tiempu ensin qu'un supervisor te permita la entrada.
%endif%
%ifreason obstruct%
porque un supervisor te torgó la entrada.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Nun se pudo des-suscribite de la llista
%ifreason unsubbed%
porque nun tas suscritu.
%^%%wrap%Si tas recibiendo mensaxes, seique teas suscritu con otra
direición de corréu distinta. Pa saber con qué direición tas subscritu,
mira nel mensaxe que te da la bienvenida a la llista, o mira na testera
"Return-Path" d'un mensaxe del corréu que recibes de la llista.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Nun pudisti desaniciar el mensaxe conseñáu de la llista
%endif%
%ifaction reject%
Nun pudisti refugar el mensaxe conseñáu
%endif%
%ifreason notfound%
porque nun se pudo alcontrar. Seique otru moderator yá lu desanició o lu
refugó, o espiró.
%endif%
%ifreason moderators%
porque nun yes moderador de la llista.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Nun pudisti permitir la solicitú de suscripción conseñada
%endif%
%ifaction obstruct%
Nun pudisti torgar la solicitú de suscripción conseñada
%endif%
%ifreason notfound%
porque nun se pudo alcontrar. Seique otru moderator yá lu permitiera o
lu torgara, o espiró.
%endif%
%ifreason gatekeepers%
porque nun yes supervisor de la llista.
%endif%
%endif%
mlmmj/listtexts/ast/deny-post 0000664 0000000 0000000 00000003561 15023031135 0016667 0 ustar 00root root 0000000 0000000 Subject: Mensaxe a $list$@$domain$ denegáu: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%El mensaxe de <$posteraddr$> con asuntu "$subject$" nun se pudo
entregar a la llista
%ifreason maxmailsize%
porque pasó del tamañu máximu permitíu de mensaxe de $maxmailsize$ bytes.
%endif%
%ifreason tocc%
porque la direición de la llista nun ta nes testeres Pa: o CC:.
%endif%
%ifreason access%
por una regla d'accesu configurada pol alministrador de la llista.
%endif%
%ifreason expired%
porque pasó muncho tiempu ensin que dengún moderador lu lliberara.
%endif%
%ifreason reject%
porque un moderador refugólu.
%endif%
%ifreason subonlypost%
porque nun yes suscriptor de la llista.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Si quies suscribite, tendrás de comunicate con un alministrador
de la llista. Pa facelo pues unviar un corréu al propietariu a
<$list+$owner@$domain$>.
%endif%
%^%%wrap%Si pienses que yá tas suscritu, ye probable que te suscribieras
con una direición de corréu distinta. Pa saber la direición cola que tas
suscritu, mira nel mensaxe de bienvenida a la llista, o mira na testera
"Return-Path" d'un mensaxe de corréu que recibas de la llista.
%endif%
%ifreason maxmailsize%
%^%(El principiu del mensaxe denegáu ta más abaxo.)
%else%
%^%(El mensaxe denegáu ta más abaxo.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/ast/digest 0000664 0000000 0000000 00000000225 15023031135 0016216 0 ustar 00root root 0000000 0000000 Subject: Resume de $list$@$domain$ volume $digestissue$ ($digestinterval$)
Asuntos (mensaxes del $digestfirst$ al $digestlast$):
- %digestthreads%
mlmmj/listtexts/ast/faq 0000664 0000000 0000000 00000000163 15023031135 0015507 0 ustar 00root root 0000000 0000000 Subject: Entrugues y rempuestes frecuentes de $list$@$domain$
Sentímoslo, entá nun hai denguna FAQ disponible.
mlmmj/listtexts/ast/finish 0000664 0000000 0000000 00000002435 15023031135 0016224 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Despedida de $list$@$domain$%endif%
%ifaction release reject%Subject: Moderáu $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Guardáu $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Unviáu a $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Gracies por confirmar que dexes de tar suscritu.
%endif%
%ifreason admin%
Un alministrador te desanició de la llista.
%else%
Agora tas desaniciáu de la llista.
%endif%
%endif%
%ifaction release%
%^%%wrap%Lliberasti correutamente'l mensaxe de <$posteraddr$> con asuntu
"$subject$" a la llista.
%endif%
%ifaction reject%
%^%%wrap%Refugasti correutamente'l mensaxe de <$posteraddr$> con asuntu
"$subject$".
%endif%
%ifaction permit%
%^%%wrap%Permitisti correutamente que <$subaddr$> se xuna a la llista.
%endif%
%ifaction obstruct%
%^%%wrap%Torgasti correutamente que <$subaddr$> se xuniera a la llista.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Gracies por confirmar
%endif%
%ifreason release%
Un moderador lliberó
%endif%
%ifreason request%
Gracies por
%endif%
el to mensaxe con asuntu "$subject$". Agora ta distribuyendose a la
llista.
%endif%
mlmmj/listtexts/ast/finish-sub 0000664 0000000 0000000 00000002315 15023031135 0017010 0 ustar 00root root 0000000 0000000 Subject: Bienveníu a $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Gracies por solicitar xunite a nós.
%endif%
%ifreason confirm%
Gracies por confirmar la to suscripción.
%endif%
%ifreason permit%
Un supervisor te permitió xunite a nós.
%endif%
%ifreason switch%
La to suscripción camudóse a la versión
%else%
%ifreason admin%
Un alministrador te subscribió a la versión
%else%
Agora tas amestáu a la versión
%endif%
%endif%
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% ensin corréu %endif%
de la llista.
%wrap%La direición de corréu cola que tas suscritu ye <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Si nel futuru quies des-suscribite, tendrás de ponete'n contautu
con un alministrador de la llista. Pa facelo pues mandar un corréu a
<$list+$owner@$domain$>.
%else%
%^%%wrap%Si nel futuru quies des-suscribite, manda un mensaxe a
<$list+$unsubscribe@$domain$> usando esta direición de corréu. L'asuntu y
cuerpu del mensaxe pue ser cualesquier cosa. Darréu recibirás una
confirmación o más instrucciones.
%endif%
%wrap%Pa más información y ayuda tocante a esta llista, unvia un mensaxe a
<$list+$help@$domain$>.
mlmmj/listtexts/ast/gatekeep-sub 0000664 0000000 0000000 00000001072 15023031135 0017314 0 ustar 00root root 0000000 0000000 Subject: Solicitú de suscripción a $list$@$domain$: $subaddr$
%text prologue%
%wrap%Hebo una solicitú de <$subaddr$> pa xunise a la versión
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% ensin corréu %endif%
de la llista.
%wrap%Pa permitilo, unvia un mensaxe a <$permitaddr$> lo que de vezu pue
facese con sólo contestar a esti mensaxe.
%wrap%Si nun quies facer esto, o bien pues unviar un mensaxe a
<$obstructaddr$> o simplemente escaezte d'esti mensaxe.
Los siguientes supervisores recibieron esti corréu:
- %gatekeepers%
mlmmj/listtexts/ast/help 0000664 0000000 0000000 00000005615 15023031135 0015677 0 ustar 00root root 0000000 0000000 Subject: Información de $list$@$domain$
%text prologue%
Equí hai dalguna información tocante a la llista.
Pues subscribite a les siguientes versiones:
- %wrap%La versión normal: Cada vegada que s'unvia un mensaxe a la llista,
los suscriptores reciben una copia del mesmu.
%ifcontrol closedlist closedlistsub%
Pa subscribite comunicate con un alministrador de la llista.
%else%
Pa subscribite manda un corréu a <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%La versión resumida: Los suscriptores reciben dellos mensaxes
nun únicu corréu, a intervalos regulares, o cuando s'acumulen mensaxes
abondo.
%ifcontrol closedlist closedlistsub%
Pa subscribite comunicate con un alministrador de la llista.
%else%
Pa subscribite manda un corréu a <$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%La versión ensin corréu: Los suscriptores nun reciben dengunu
de los mensaxes de la llista. Poro, esto significa que puen espublizar
nuna llista onde namái los suscriptores puen facelo, mentanto siguen la
llista per un archivu web o per otra direición de corréu suscrita.
%ifcontrol closedlist closedlistsub%
Pa subscribite comunicate con un alministrador de la llista.
%else%
Pa subscribite manda un corréu a <$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%La llista tien supervisores que revisarán les solicitúes de
suscripción enantes de permitir nuevos miembros.
%endif%
%ifcontrol closedlist%
%^%%wrap%Pa des-subscribite comunicate con un alministrador de la llista.
%else%
%^%%wrap%Pa des-subscribite manda un corréu a
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Los mensaxes s'asoleyen mandando un corréu a <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Sicasí, namái los suscriptores puen escribir a la llista.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%La llista tien moderadores que revisarán los mensaxes enantes de
lliberalos a la llista.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%La llista tien moderadores que revisarán los mensaxes de los
non-suscriptores enantes de lliberalos a la llista.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%La llista tamién tien regles d'accesu que puen afeutar a quién
pue mandar mensaxes y qué mensaxes se moderen.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Toles persones
%else%
Los suscriptores
%endif%
puen rcuperar el mensaxe númberu N del archivu de la llista unviando un
mensaxe a <$list+$get-N@$domain$> (camuda N pol númberu del mensaxe
deseáu).
%endif%%endif%
%wrap%Pues recuperar el documentu d'entrugues frecuentes de la llista
unviando un mensaxe a <$list+$faq@$domain$>.
%wrap%Pa comunicate col propietariu de la llista, manda un mensaxe a
<$list+$owner@$domain$>.
mlmmj/listtexts/ast/list 0000664 0000000 0000000 00000000676 15023031135 0015724 0 ustar 00root root 0000000 0000000 Subject: Suscriptores a $list$@$domain$
%text prologue%
%wrap%Esta ye la llista de suscriptores
%iftype all%
(a toles versiones de la llista):
%else%
a la versión
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% ensin corréu %endif%
de la llista:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/ast/moderate-post 0000664 0000000 0000000 00000002744 15023031135 0017532 0 ustar 00root root 0000000 0000000 Subject: Por favor, modera $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Se recibió un mensaxe de <$posteraddr$> col asuntu "$subject$" unviáu
pa espublizar. Te pedimos que lu moderes
%ifreason modnonsubposts%
porque'l remitente nun ye suscriptor.
%endif%
%ifreason moderated%
porque esta ye una llista moderada.
%endif%
%ifreason access%
por una regla d'accesu.
%endif%
El mensaxe ta más abaxo.
%wrap%Pa lliberalu a la llista, unvia un mensaxe a <$releaseaddr$> pa lo que
de vezu val con simplemente responder a esti mensaxe.
%ifcontrol subonrelease%
%^%%wrap%Si quies, pues simultaneamante lliberar el mensaxe y suscribir al
remitente unviando un mensaxe a una de les siguientes direiciones:%nowrap%
%^%- %wrap%Versión normal: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Versión resumida: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Versión ensin corréu: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Si nun quies facer denguna d'estes coses, o manda un mensaxe a
<$rejectaddr$> o simplemente salta esti mensaxe.
Recibieron esti corréu los siguientes moderadores:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/ast/notify 0000664 0000000 0000000 00000002115 15023031135 0016247 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Suscritu a $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Des-suscritu de $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%La direición <$subaddr$> suscribiose a la versión
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% ensin corréu %endif%
de la llista
%ifreason request%
porque se recibió una solicitú pa xunise.
%endif%
%ifreason confirm%
porque se confirmó una solicitú pa xunise.
%endif%
%ifreason admin%
por mandatu d'un alministrador.
%endif%
%ifreason permit%
porque lo permitió un supervisor.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%La direición <$subaddr$> se des-suscribió de la llista
%ifreason request%
porque se recibió una solicitú pa desaniciar la suscripción.
%endif%
%ifreason confirm%
porque se confirmó una solicitú pa desaniciar la suscripción.
%endif%
%ifreason admin%
por mandatu d'un alministrador.
%endif%
%ifreason bouncing%
porque tien rebotes d'hai demasiao tiempu.
%endif%
%endif%
mlmmj/listtexts/ast/probe 0000664 0000000 0000000 00000000434 15023031135 0016050 0 ustar 00root root 0000000 0000000 Subject: Mensaxes rebotaos de $list$@$domain$
%text prologue%
Dellos mensaxes pa ti nun se pudieron entregar. Si tas viendo esti mensaxe
quier dicir que les coses vuelven a ser normales, y esto ye namái pa
informate.
Esta ye la llista de los mensaxes rebotaos:
- %bouncenumbers%
mlmmj/listtexts/ast/prologue 0000664 0000000 0000000 00000000132 15023031135 0016570 0 ustar 00root root 0000000 0000000 %wrap%Bones, esti ye'l programa Mlmmj xestionando la llista de corréu
<$list$@$domain$>.
mlmmj/listtexts/ast/subrelease 0000664 0000000 0000000 00000002007 15023031135 0017071 0 ustar 00root root 0000000 0000000 %^%%wrap%Sicasí, esta ye una llista abierta. Si quies, pues al mesmu tiempu
suscribite y lliberar el mensaxe unviando un corréu a <$listsubreleaseaddr$>
lo que de vezu pue facese simplemente respondiendo a esti mensaxe. L'asuntu
y cuerpu del mensaxe puen ser cualesquier cosa.
%ifncontrol nodigestsub%
%^%%wrap%O al mesmu tiempu pues suscribite a la versión resumida de la
llista y lliberar el mensaxe unviando un corréu a <$digestsubreleaseaddr$>
y recibirás múltiples mensaxes nun únicu corréu, a intervalos regulares, o
cuando s'acumule gran cantidá de mensaxes.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%O al mesmu tiempu pues suscribite a la versión ensin corréu de la
llista y lliberar el mensaxe unviando un corréu a <$nomailsubreleaseaddr$>
y nun recibirás los mensaxes de la llista. Esto significa que podríes nun
ver les rempuestes al to mensaxe, nun siendo que sigas la llista usando un
archivu web o teas suscritu con otra direición de corréu a otra versión de
la llista.
%endif%
mlmmj/listtexts/ast/wait-post 0000664 0000000 0000000 00000001657 15023031135 0016700 0 ustar 00root root 0000000 0000000 Subject: Esperando lliberación a $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%El mensaxe de <$posteraddr$> col asuntu "$subject$" s'unvió a la
llista. Sicasí, se pidió que los moderadores lu revisen enantes de lliberalu
a la llista
%ifreason moderated%
porque esta ye una llista moderada.
%endif%
%ifreason access%
por una regla d'accesu.
%endif%
%ifreason modnonsubposts%
porque nun yes suscriptor.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(El mensaxe ta más abaxo.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/ast/wait-sub 0000664 0000000 0000000 00000000331 15023031135 0016470 0 ustar 00root root 0000000 0000000 Subject: Esperando permisu pa xunite a $list$@$domain$
%text prologue%
%wrap%Recibióse la to solicitú pa xunite a la llista. Sicasí, ta pidiéndose
a los supervisores que la revisen enantes de permitite facelo.
mlmmj/listtexts/cs/ 0000775 0000000 0000000 00000000000 15023031135 0014633 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/cs/confirm 0000664 0000000 0000000 00000003150 15023031135 0016212 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Potvrzení přihlášení do $list$@$domain$%endif%
%ifaction unsub%Subject: Potvrzení odhlášení z $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Správce
%endif%
%ifreason request%
Někdo (doufáme, že vy)
%endif%
vyžádal přidání vaší emailové adresy <$subaddr$>
%iftype normal%
do konference. To znamená, že kdykoli, když někdo pošle zprávu do konference,
dostanete kopii této zprávy.
%endif%
%iftype digest%
do Digest verze konference. To znamená, že zprávy zaslané do konference
budete dostávat v jedné zprávě. Buďto po uplynutí pravidelné lhůty, nebo
až se naschromáždí dostatek zpráv.
%endif%
%iftype nomail%
do No-mail verze konference. To znamená, že nebudete dostávat žádné zprávy,
ale jste považován za člena konference. Takže pokud je někde přístupný archiv,
můžete jej procházet a hlavně můžete do konference zasílat zprávy (a být třeba
prihlášen ještě pod jinou adresou).
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Správce
%endif%
%ifreason request%
Někdo (doufáme, že vy)
%endif%
požádal o vyřazení adresy <$subaddr$> z konference.
%endif%
%wrap%Pro potvrzení odhlášení zašlete prosím zprávu na <$confirmaddr$>,
což většinou znamená jen odpovědět na tento email. Předmět a obsah
mailu nehrají roli, může to být cokoli.
Až tak učiníte, měl/a byste dostat zprávu potvrzující úspěch odhlášení.
Pokud si akci nepřejete, prostě tento email ignorujte.
mlmmj/listtexts/cs/deny 0000664 0000000 0000000 00000004565 15023031135 0015527 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Není možné přihlásit se do $list$@$domain$%endif%
%ifaction unsub%Subject: Není možné odhlásit se z $list$@$domain$%endif%
%ifaction release reject%Subject: Není možné moderovat $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Není možné spravovat $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Není možné přihlásit se do konference,
%ifreason disabled%
protože
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
verze zasílání je vypnutá.
%endif%
%ifreason closed%
protože je zakázáno přihlásit se prostřednictvím zaslání zprávy.
%endif%
%ifreason subbed%
protože adresa je již do konference přihlášená.
%endif%
%ifreason expired%
protože uplynulo příliš mnoho času a nikdo neschválil žádost.
%endif%
%ifreason obstruct%
protože žádost o přihlášení byla zamítnuta.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Není možné odhlásit se z konference,
%ifreason unsubbed%
protože adresa není přihlášena.
%^%%wrap%Pokud si myslíte (nebo víte), že jste členem konference, jste
pravděpodobně přihlášen/a s jinou emailovou adresou. Můžete ji zjistit
z uvítacího emailu při přihlášení do konference, který jste odbržel/a.
(Podívejte se na pole "Return-Path" v hlavičce uvítacího emailu.)
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Není možné uvolnit/rozeslat zprávu do konference,
%endif%
%ifaction reject%
Není možné zamítnout zprávu do konference,
%endif%
%ifreason notfound%
protože zprávu nejde nalézt. Možná ji rozeslal/zamítnul někdo jiný (jiný moderátor),
nebo již požadavek vypršel.
%endif%
%ifreason moderators%
protože nejste moderátorem konference.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Není možné schválit požadavek na přihlášení do konference,
%endif%
%ifaction obstruct%
Není možné zamítnout požadavek na přihlášení do konference,
%endif%
%ifreason notfound%
protože ho nejde nalézt. Možná ho rozeslal/zamítnul někdo jiný (jiný správce),
nebo již požadavek vypršel.
%endif%
%ifreason gatekeepers%
protože nejste správcem konference.
%endif%
%endif%
mlmmj/listtexts/cs/deny-post 0000664 0000000 0000000 00000003776 15023031135 0016515 0 ustar 00root root 0000000 0000000 Subject: Zaslat email do $list$@$domain$ není možné ($subject$)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Zprávu od <$posteraddr$> s předmětem "$subject$" není možné doručit.
%ifreason maxmailsize%
Zpráva je příliš velká, maximální velikost zprávy je $maxmailsize$ bajtů.
%endif%
%ifreason tocc%
Adresa konference nebyla nalezena v poli Komu: (To:) nebo Kopie: (Cc:).
%endif%
%ifreason access%
Zaslání bylo zamezeno přístupovými právy ke konferenci stanovenými správcem.
%endif%
%ifreason expired%
Zpráva měla být schválena moderátorem konference, ale žádný ji delší čas neschválil.
%endif%
%ifreason reject%
Zpráva byla zamítnuta moderátorem konference.
%endif%
%ifreason subonlypost%
Adresa, ze které byla zpráva zaslána, není v seznamu členů konference.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Pokud si přejete být členem konference kontaktujte správce.
Můžete použít emailovou adresu <$list+$owner@$domain$>.
%endif%
%^%%wrap%Pokud si myslíte (nebo víte), že jste členem konference, zaslal/a
jste zprávu z jiné emailové adresy, než se kterou jste přihlášen/a.
Můžete ji zjistit z uvítacího emailu do konference, který jste odbržel/a.
(Podívejte se na pole "Return-Path" v hlavičce uvítacího emailu.)
%endif%
%ifreason modonlypost%
protože nejste moderator konference.
%endif%
%ifreason maxmailsize%
%^%(Začátek zprávy je uveden níže.)
%else%
%^%(Zpráva je uvedena níže.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/cs/digest 0000664 0000000 0000000 00000000230 15023031135 0016030 0 ustar 00root root 0000000 0000000 Subject: Digest verze $list$@$domain$ vydání $digestissue$ ($digestinterval$)
Témata (zprávy od $digestfirst$ do $digestlast$):
- %digestthreads%
mlmmj/listtexts/cs/faq 0000664 0000000 0000000 00000000220 15023031135 0015317 0 ustar 00root root 0000000 0000000 Subject: Často kladené otázky a odpovědi (FAQ) pro konferenci $list$@$domain$
Omlouváme se, žádné další informace nejsou dostupné.
mlmmj/listtexts/cs/finish 0000664 0000000 0000000 00000002470 15023031135 0016041 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Nashledanou v $list$@$domain$%endif%
%ifaction release reject%Subject: Moderovaná konference $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Chráněná konference $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Zasláno do $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Děkujeme za potvrzení odhlášení.
%endif%
%ifreason admin%
Správce vás odhlásil z konference.
%else%
Byl jste odhlášen z konference.
%endif%
%endif%
%ifaction release%
%^%%wrap%Úspěšně jste zaslal zpravu od <$posteraddr$> s předmětem "$subject$" do konference.
%endif%
%ifaction reject%
%^%%wrap%Úspěšně jste zamítnul zprávu od <$posteraddr$> s předmětem "$subject$".
%endif%
%ifaction permit%
%^%%wrap%Úspěšně jste povolil přihlášení <$subaddr$> do konference.
%endif%
%ifaction obstruct%
%^%%wrap%Úspěšně jste zamítnul přihlášení <$subaddr$> do konference.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Děkujeme za potvrzení
%endif%
%ifreason release%
Moderátor umožnil zaslání
%endif%
%ifreason request%
Děkujeme za
%endif%
zpráva s předmětem "$subject$". Nyní je odesílána do konference.
%endif%
mlmmj/listtexts/cs/finish-sub 0000664 0000000 0000000 00000002225 15023031135 0016626 0 ustar 00root root 0000000 0000000 Subject: Vítejte v konferenci $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Potvrzujeme přihlášení do konference.
%endif%
%ifreason confirm%
Děkujeme za potvrzení přihlášení.
%endif%
%ifreason permit%
Správa konference povolila přihlášení do konference.
%endif%
%ifreason switch%
Vaše členství v konferenci bylo změněno na
%else%
%ifreason admin%
Správce vás přihlásil k
%else%
Jste nyní přihlášeni k
%endif%
%endif%
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
verzi odebírání konference.
%wrap%Emailová adresa, se kterou jste prihlášen/a je <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Pokud se chcete odhlásit musíte kontaktovat správce konference.
Můžete mu zaslat email na adresu <$list+$owner@$domain$>.
%else%
%^%%wrap%Pokud se budete chtít odhlásit, zašlete zprávu na adresu
<$list+$unsubscribe@$domain$>. Předmět a obsah zprávy může být libovolný.
Následně obdržíte zprávu s dalšími instrukcemi.
%endif%
%wrap%Pro získání dalších informací můžete zaslat zprávu na adresu <$list+$help@$domain$>.
mlmmj/listtexts/cs/gatekeep-sub 0000664 0000000 0000000 00000001114 15023031135 0017127 0 ustar 00root root 0000000 0000000 Subject: Požadavek na přihlášení $subaddr$ do $list$@$domain$
%text prologue%
%wrap%Požadavek od <$subaddr$> na přihlášení do
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
verze konference.
%wrap%K potvrzení požadavku zašlete zprávu na <$permitaddr$>,
což lze většinou udělat jen odpovědí na tento emailový požadavek.
%wrap%Pokud požadavek nechcete potvrdit, zašlete zprávu na <$obstructaddr$>,
nebo prostě jednoduše tento pozadavek ignorujte.
Následující osoby dostaly tento požadavek:
- %gatekeepers%
mlmmj/listtexts/cs/help 0000664 0000000 0000000 00000005366 15023031135 0015520 0 ustar 00root root 0000000 0000000 Subject: Informace pro $list$@$domain$
%text prologue%
Zde jsou informace o konferenci.
Je možné se přihlásit k následujícím verzím:
- %wrap%Normal: Pokaždé, když je zaslána zpráva do konference dostane každý její člen kopii.
%ifcontrol closedlist closedlistsub%
Přihlášení se děje kontaktováním správce.
%else%
Přihlášení je pomocí zaslání zprávy na <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Digest: Více zpráv je zasíláno v jedné zprávě v pravidelných intervalech, nebo když se zprávy nahromadí.
%ifcontrol closedlist closedlistsub%
Přihlášení se děje kontaktováním správce.
%else%
Přihlášení je pomocí zaslání zprávy na <$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%No-mail: Nejsou zasílány žádné zprávy z konference.
To znamená, že je možné zprávy zasílat do konference (zejména pokud je vyžadováno členství).
Zprávy je možné číst pomocí archivu konference (pokud existuje), nebo jsou zasílány na jinou adresu (adresy) přihlášené do konference.
%ifcontrol closedlist closedlistsub%
Přihlášení se děje kontaktováním správce.
%else%
Přihlášení je pomocí zaslání zprávy na <$list+$subscribe-nomail@$domain$>
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%Konference má správce, který schvaluje nové požadavky na přihlášení do konference.
%endif%
%ifcontrol closedlist%
%^%%wrap%Odhlášení je možné kontaktovaním správce.
%else%
%^%%wrap%Odhlášení je možné zasláním zprávy na <$list+$unsubscribe@$domain$>.
%endif%
%wrap%Adresa pro zasílání zpráv do konference je <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Do konference mohou zasílat zprávy jen její členové.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%Zprávy zaslané do konference podhléhají schválení moderátorem konference.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%Zpravy zaslane nečleny konference podléhají schválení moderátorem konference.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%Konference má nastavena přístupová pravidla pro zasílání a moderování zpráv.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Kdokoli
%else%
Členové
%endif%
mohou získat zprávu číslo N z archivu konference zasláním zprávy na adresu
<$list+$get-N@$domain$> (místo N zadejte požadované číslo zprávy)
%endif%%endif%
%wrap%Můžete si vyžádat seznam častých otázek a odpovědí (FAQ) zasláním zprávy
na adresu <$list+$faq@$domain$>.
%wrap%Majitele konference je možné kontaktovat na adrese <$list+$owner@$domain$>.
mlmmj/listtexts/cs/list 0000664 0000000 0000000 00000000721 15023031135 0015531 0 ustar 00root root 0000000 0000000 Subject: Přihlášení členové do $list$@$domain$
%text prologue%
%wrap%Toto je seznam členů konference
%iftype all%
(bez rozdílů členství normal/digest/no-mail):
%else%
k verzi
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
této konference:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/cs/moderate-post 0000664 0000000 0000000 00000003042 15023031135 0017340 0 ustar 00root root 0000000 0000000 Subject: Žádost o moderování $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Zpráva od <$posteraddr$> s předmětem "$subject$" byla zaslána a nastal požadavek na moderování,
%ifreason modnonsubposts%
protože odesílatel není členem konference.
%endif%
%ifreason moderated%
protože jde o moderovanou konferenci.
%endif%
%ifreason access%
protože nastalo omezení přístupovými právy.
%endif%
Zpráva je uvedena níže.
%wrap%K potvrzení a odeslání do konference zašlete zprávu na <$releaseaddr$>,
což lze většinou udělat jen odpovědí na tento emailový požadavek.
%ifcontrol subonrelease%
%^%%wrap%Pokud si přejete, je možné zároveň potvrdit zaslání zprávy
a přihlásit odesílatele zasláním na jednu z následujících adres:%nowrap%
%^%- %wrap%Normální verze: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Digest verze: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%No-mail verze: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Pokud nechcete zprávu odeslat, zašlete zprávu na <$rejectaddr$>,
nebo prostě jednoduše tento email ignorujte.
Následující moderátoři obrželi tento požadavek:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/cs/notify 0000664 0000000 0000000 00000002134 15023031135 0016066 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Přihlášení do $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Odhlášení z $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Adresa <$subaddr$> byla přihlášena do
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
verze konference
%ifreason request%
z důvodu přijetí požadavku na přihlášení.
%endif%
%ifreason confirm%
z důvodu potvrzení požadavku na přihlášení.
%endif%
%ifreason admin%
z důvodu zadaní požadavku správcem.
%endif%
%ifreason permit%
z důvodu povolení adminstrací listu.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Adresa <$subaddr$> byla odhlášena z konference
%ifreason request%
z důvodu přijetí požadavku na odhlášení.
%endif%
%ifreason confirm%
z důvodu potvrzení požadavku na odhlášení.
%endif%
%ifreason admin%
z důvodu zadání požadavku správcem.
%endif%
%ifreason bouncing%
z důvodu nemožnosti odesílání po příliš dlohou dobu (bouncing).
%endif%
%endif%
mlmmj/listtexts/cs/probe 0000664 0000000 0000000 00000000477 15023031135 0015675 0 ustar 00root root 0000000 0000000 Subject: Vracející se zprávy z $list$@$domain$
%text prologue%
Některé zprávy vám nemohly být doručeny. Pokud jste obdržel/a tuto zpravu
znamená to, že se vše vrátilo k normalnímu stavu a berte celou věc jen
jako informaci.
Zde je seznam nedoručených zpráv, které se vracely:
- %bouncenumbers%
mlmmj/listtexts/cs/prologue 0000664 0000000 0000000 00000000122 15023031135 0016405 0 ustar 00root root 0000000 0000000 %wrap%Dobrý den, zde je program Mlmmj spravující konferenci <$list$@$domain$>.
mlmmj/listtexts/cs/subrelease 0000664 0000000 0000000 00000002051 15023031135 0016706 0 ustar 00root root 0000000 0000000 %^%%wrap%Nicméně toto je otevřená konference. Pokud si přejete, můžete
se zároveň přihlásit a odeslat vaši zprávu zasláním zprávy na
<$listsubreleaseaddr$>. Což se dá většinou udělat tak, že dáte Odpovědět
na tuto zprávu. Předmět a obsah zprávy může být jakýkoli.
%ifncontrol nodigestsub%
%^%%wrap%Nebo se můžete zároveň přihlásit do Digest verze a odeslat
vaši zprávu zasláním zprávy na <$digestsubreleaseaddr$>.
Pak budete dostávat více zpráv z konference v jedné zprávě (emailu)
v nastavených intervalech, nebo až se více zpráv nahromadí.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Nebo se můžete zároveň přihlásit do No-Mail verze a odeslat
vaši zprávu zasláním zprávy na <$nomailsubreleaseaddr$>.
Pak nebudete dostávat žádné zprávy z konference (ale budete přihlášen).
To znamená, že ani neobdržíte žádné reakce a odpovědi na vaši zprávu,
pokud nebude sledovat webový archiv konference, nebo nebudete přihlášen
pod jinou emailovou adresu.
%endif%
mlmmj/listtexts/cs/wait-post 0000664 0000000 0000000 00000002117 15023031135 0016506 0 ustar 00root root 0000000 0000000 Subject: Čeká se na potvrzení $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Zpráva od <$posteraddr$> s předmětem "$subject$" byla zaslána do konference.
Moderátoři konference byli kontaktováni, aby tuto zprávu schválili před zasláním.
%ifreason moderated%
Důvodem je to, že tato konference je moderovaná.
%endif%
%ifreason access%
Důvodem je nastavení přístupových práv ke konferenci.
%endif%
%ifreason modnonsubposts%
Důvodem je, že nejste členem konference (nebo píšete zprávu z adresy, se kterou nejste v konferenci přihlášen).
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Zpráva je uvedena níže.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/cs/wait-sub 0000664 0000000 0000000 00000000346 15023031135 0016314 0 ustar 00root root 0000000 0000000 Subject: Čeká se na povolení na přihlášení do $list$@$domain$
%text prologue%
%wrap%Váš požadavek na přihlášení do konference byl přijat. Nyní se čeká
na potvrzení schválení požadavku správci konference.
mlmmj/listtexts/de/ 0000775 0000000 0000000 00000000000 15023031135 0014616 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/de/confirm 0000664 0000000 0000000 00000003453 15023031135 0016203 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Anmeldebestätigung für Liste $list$@$domain$%endif%
%ifaction unsub%Subject: Abmeldebestätigung für Liste $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Ein Listenadministrator
%endif%
%ifreason request%
Jemand (hoffentlich Sie selbst)
%endif%
hat darum gebeten, Ihre Mailadresse <$subaddr$>
%iftype normal%
der Liste hinzuzufügen. Das heißt, dass Sie eine Kopie jeder Mail
erhalten, die an die Liste geschickt wird.
%endif%
%iftype digest%
der Liste (im Digest-Modus) hinzuzufügen. Das heißt, dass Sie die an die
Liste gesandten Mails in regelmäßigen Abständen (oder nach Erreichen
einer bestimmten Nachrichtenmenge) zu einer Sammelmail zusammengefasst
erhalten.
%endif%
%iftype nomail%
der Liste (im No-Mail-Modus) hinzuzufügen. Das heißt, Sie erhalten zwar
keine Nachrichten von der Liste, werden jedoch als Teilnehmer geführt.
So dürfen Sie z.B. Nachrichten an die Liste senden und können die
Diskussionen in einem Webarchiv oder über eine zweite angemeldete
Mailadresse verfolgen
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Ein Listenadministrator
%endif%
%ifreason request%
Jemand (hoffentlich Sie selbst)
%endif%
hat eine Löschung der Mitgliedschaft Ihrer Mailadresse <$subaddr$> von der
Liste beantragt.
%endif%
%wrap%Um sicher zu stellen, dass Sie das wirklich wollen, senden Sie eine
Nachricht an <$confirmaddr$>, was gewöhnlich durch einfaches Antworten auf
diese Mail erfolgen kann. Betreff und Text Ihrer Antwort können beliebig
sein.
Nach dem Absenden Ihrer Antwortmail sollten Sie eine Antwortnachricht
erhalten, dass die Operation erfolgreich war.
Sollten Sie das nicht wollen, können Sie diese Mail einfach ignorieren.
mlmmj/listtexts/de/deny 0000664 0000000 0000000 00000005013 15023031135 0015477 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Liste $list$@$domain$ kann nicht abonniert werden%endif%
%ifaction unsub%Subject: Abonnement von $list$@$domain$ kann nicht abbestellt werden%endif%
%ifaction release reject%Subject: Kann $list$@$domain$ nicht moderieren%endif%
%ifaction permit obstruct%Subject: Kann $list$@$domain$ nicht zurückweisen%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Sie konnten der Liste nicht als Abonnent hinzugefügt werden,
%ifreason disabled%
weil die
%iftype normal% normale Version %endif%
%iftype digest% Digest-Version %endif%
%iftype nomail% No-Mail-Version %endif%
der Liste abgeschaltet ist.
%endif%
%ifreason closed%
weil das Abonnieren dieser Liste per Mail nicht gestattet ist.
because people are not allowed to subscribe to this list by email.
%endif%
%ifreason subbed%
weil Sie unter dieser Mailadresse bereits als Abonnent eingetragen sind.
%endif%
%ifreason expired%
weil Ihr Antrag zu lange unbearbeitet geblieben ist.
%endif%
%ifreason obstruct%
weil ein Moderator Ihren Antrag abgewiesen hat.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Sie konnten die Liste nicht abbestellen,
%ifreason unsubbed%
weil Sie (unter dieser Mailadresse) nicht als Abonnent geführt werden.
%^%%wrap%Sollten Sie Nachrichten von der Liste erhalten, könnte es sein,
dass Sie mit einer anderen Mailadresse eingeschrieben sind. Um
herauszufinden, mit welcher Mailadresse Sie eingeschrieben sind, sehen
Sie sich in den Kopfzeilen einer Listenmail die Zeile "Return-Path" an.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Sie konnten diese Nachricht nicht an die Liste durchlassen,
%endif%
%ifaction reject%
Sie konnten diese Nachricht nicht abweisen,
%endif%
%ifreason notfound%
weil die Nachricht nicht gefunden werden konnte. Möglicherweise
hat ein anderer Moderator die Nachricht bereits bearbeitet, oder
die Bearbeitungsfrist war abgelaufen.
%endif%
%ifreason moderators%
weil sie kein Moderator dieser Liste sind.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Sie konnten den Abonnement-Antrag nicht zulassen,
%endif%
%ifaction obstruct%
Sie konnten den Abonnement-Antrag nicht abweisen,
%endif%
%ifreason notfound%
weil er nicht gefunden wurde. Möglicherweise hat ein anderer
Moderator ihn bearbeitet, oder die Bearbeitungsfrist war abgelaufen.
%endif%
%ifreason gatekeepers%
weil Sie kein Moderator dieser Liste sind.
%endif%
%endif%
mlmmj/listtexts/de/deny-post 0000664 0000000 0000000 00000004037 15023031135 0016467 0 ustar 00root root 0000000 0000000 Subject: Ihre Nachricht an $list$@$domain$ wurde abgewiesen: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Die Nachricht von <$posteraddr$> mit dem Betreff "$subject$" konnte
nicht über die Liste verteilt werden,
%ifreason maxmailsize%
weil sie die maximal erlaubte Größe von $maxmailsize$ Bytes überschritten
hat
%endif%
%ifreason tocc%
weil die Listenadresse weder im An- noch im CC-Feld gefunden wurde
%endif%
%ifreason access%
aufgrund der vom Listenadministrator aufgestellten Zugangsregeln.
%endif%
%ifreason expired%
weil die Bearbeitungsfrist überschritten wurde und kein Moderator die
Nachricht weitergeleitet hat.
%endif%
%ifreason reject%
weil sie von einem Listenmoderator abgewiesen wurde.
%endif%
%ifreason subonlypost%
weil Sie die Liste nicht abonniert haben.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Wenn Sie die Liste abonnieren möchten, kontaktieren Sie einen
Listenadministrator. Senden Sie dazu eine Mail an
<$list+$owner@$domain$>.
%endif%
%^%%wrap%Wenn Sie denken, Sie hätten die Liste abonniert, so haben Sie
wahrscheinlich eine abweichende Mailadresse verwendet. Um herauszufinden,
unter welcher Mailadresse Sie die Liste abnoniert haben, sehen Sie
entweder in der Begrüßungsmail ("Willkommen...") oder im Feld
"Return-Path" in den Kopfzeilen einer über die Liste erhaltenen Nachricht
nach.
%endif%
%ifreason maxmailsize%
%^%(Der Anfang der abgewiesenen Mail ist unten gelistet.)
%else%
%^%(Die abgewiesene Mail ist unten angehängt.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/de/digest 0000664 0000000 0000000 00000000246 15023031135 0016022 0 ustar 00root root 0000000 0000000 Subject: Zusammenfassung der Liste $list$@$domain$ Ausgabe: $digestissue$ ($digestinterval$)
Themen (Nachrichten $digestfirst$ bis $digestlast$):
- %digestthreads%
mlmmj/listtexts/de/faq 0000664 0000000 0000000 00000000210 15023031135 0015301 0 ustar 00root root 0000000 0000000 Subject: FAQ (Häufig gestellte Fragen) zur Liste $list$@$domain$
- leider gibt es zur Zeit noch keine FAQ-Sammlung zu dieser Liste -
mlmmj/listtexts/de/finish 0000664 0000000 0000000 00000002722 15023031135 0016024 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Auf Wiedersehen bei $list$@$domain$%endif%
%ifaction release reject%Subject: $list$@$domain$ moderiert: $subject$%endif%
%ifaction permit obstruct%Subject: Abgewiesen von $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Verteilt über $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Vielen Dank für Ihre Abmeldebestätigung.
%endif%
%ifreason admin%
Ein Administrator hat Sie von der Liste gelöscht.
%else%
Sie wurden von der Liste gelöscht.
%endif%
%endif%
%ifaction release%
%^%%wrap%Sie haben die Nachricht von <$posteraddr$> mit dem Betreff
"$subject$" erfolgreich an die Liste weitergeleitet.
%endif%
%ifaction reject%
%^%%wrap%Sie haben die Nachricht von <$posteraddr$> mit dem Betreff
"$subject$" erfolgreich abgewiesen.
%endif%
%ifaction permit%
%^%%wrap%Sie haben die Listenanmeldung von <$subaddr$> erfolgreich
zugelassen.
%endif%
%ifaction obstruct%
%^%%wrap%Sie haben die Listenanmeldung von <$subaddr$> erfolgreich
abgewiesen.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Vielen Dank für die Bestätigung Ihrer
%endif%
%ifreason release%
Ein Moderator hat Ihre
%endif%
%ifreason request%
Danke für Ihre
%endif%
Nachricht mit dem Betreff
%ifreason release%
"$subject$" weitergeleitet.
%else%
"$subject$".
%endif%
Sie wird nun über die Liste verteilt.
%endif%
mlmmj/listtexts/de/finish-sub 0000664 0000000 0000000 00000002350 15023031135 0016610 0 ustar 00root root 0000000 0000000 Subject: Herzlich Willkommen bei $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Vielen Dank für Ihre Anmeldung.
%endif%
%ifreason confirm%
Vielen Dank für Ihre Anmeldebestätigung.
%endif%
%ifreason permit%
Ein Listenmoderator hat Ihre Anmeldung akzeptiert.
%endif%
%ifreason switch%
Ihr Listenabonnement wurde umgestellt auf die
%else%
%ifreason admin%
Ein Administrator hat Sie angemeldet bei der
%else%
Sie wurden hinzugefügt zur
%endif%
%endif%
%iftype normal% Normalversion %endif%
%iftype digest% Digest-Version %endif%
%iftype nomail% No-Mail-Version %endif%
der Liste.
%wrap%Ihre Abonnement-Adresse lautet <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Zum Abmelden kontaktieren Sie bitte den Listenadministrator.
Senden Sie dazu eine Mail an <$list+$owner@$domain$>.
%else%
%^%%wrap%Zum Abmelden senden Sie eine Mail an
<$list+$unsubscribe@$domain$> Bitte achten Sie darauf die oben genannte
Absender-Adresse zu benutzen. Betreff und Inhalt der Nachricht sind
unerheblich. Sie erhalten eine Abmeldebestätigungsaufforderung oder eine
Mail mit weiteren Instruktionen.
%endif%
%wrap%Um Hilfe und weitere Informationen zu dieser Liste zu erhalten, Senden
Sie eine Mail an <$list+$help@$domain$>.
mlmmj/listtexts/de/gatekeep-sub 0000664 0000000 0000000 00000001140 15023031135 0017111 0 ustar 00root root 0000000 0000000 Subject: Anmeldeantrag für $list$@$domain$: $subaddr$
%text prologue%
%wrap%Ein Antrag von <$subaddr$> zur Anmeldung bei der
%iftype normal% Normalversion %endif%
%iftype digest% Digest-Version %endif%
%iftype nomail% No-Mail-Version %endif%
der Liste ist eingegangen.
%wrap%Um die Anmeldung zu erlauben, senden Sie eine mail an
<$permitaddr$>\ - ein einfaches Antworten auf diese Mail sollte in der Regel
genügen.
%wrap%Um die Anmeldung abzulehnen, Senden Sie eine Mail an <$obstructaddr$>
oder ignorieren Sie diese Nachricht einfach.
Folgende Moderatoren haben diese Mail erhalten:
- %gatekeepers%
mlmmj/listtexts/de/help 0000664 0000000 0000000 00000005744 15023031135 0015503 0 ustar 00root root 0000000 0000000 Subject: Informationen für die Liste $list$@$domain$
%text prologue%
Mit dieser Mail erhalten Sie ein paar Informationen zur Mailingliste.
Sie können folgende Listenverionen abonnieren:
- %wrap%Die Normalversion: Von jeder Nachricht, die an die Liste gesandt
wird, wird eine Kopie an die Abonennten verteilt.
%ifcontrol closedlist closedlistsub%
Zum Anmelden kontaktieren Sie bitte den Listenadministrator.
%else%
Zum Anmelden senden Sie eine Mail an <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Die Digest-Version: Hierbei erhalten die Abonnenten mehrere
Nachrichten in einer einzigen Mail verpackt, entweder in regelmäßigen
Abständen, oder wenn sich genügend Nachrichten angesammelt haben.
%ifcontrol closedlist closedlistsub%
Zum Anmelden kontaktieren Sie bitte den Listenadministrator.
%else%
Zum Anmelden senden Sie eine Mail an
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Die No-Mail-Version: Abonnenten erhalten keine Mails von der
Liste. Das heißt, sie dürfen an eine Liste schreiben, an welche nur
Abonnenten schreiben dürfen, verfolgen die Listendiskussionen jedoch über
ein Webarchiv oder eine andere angemeldete Mailadresse.
%ifcontrol closedlist closedlistsub%
Zum Anmelden kontaktieren Sie bitte den Listenadministrator.
%else%
Zum Anmelden senden Sie eine Mail an
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%Anmeldeanträge an die Liste werden durch Moderatoren bearbeitet.
%endif%
%ifcontrol closedlist%
%^%%wrap%Zum Abmelden kontaktieren Sie einen Listenadministrator.
%else%
%^%%wrap%Zum Abmelden senden Sie eine Mail an
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Zum Schreiben an die Liste senden Sie eine Mail an <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Es werden jedoch nur Mails von angemeldeten Teilnehmern verteilt.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%Alle Mails an die Liste werden durch Moderatoren geprüft, bevor
sie an die Liste weitergeleitet werden.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%Die Listenmoderatoren prüfen alle Mails von Nicht-Abonnenten,
bevor sie sie an die Liste weiterleiten.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%Für die Liste sind Zugangsregeln vorhanden, mit denen gesteuert
wird, wer an die Liste schreiben darf und wessen Mails moderiert werden.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Alle
%else%
Abonnenten
%endif%
können eine Nachricht Nummer N aus dem Listenarchiv nachbestellen, indem
sie eine Mail an <$list+$get-N@$domain$> schicken (ersetzen Sie N mit der
Nummer der gewünschten Nachricht).
%endif%%endif%
%wrap%Sie können die FAQ (Liste der häufigen Fragen) durch eine Mail an
<$list+$faq@$domain$> anfordern.
%wrap%Zum Kontaktieren des Listeneigentümers senden Sie eine Mail an
<$list+$owner@$domain$>.
mlmmj/listtexts/de/list 0000664 0000000 0000000 00000000675 15023031135 0015524 0 ustar 00root root 0000000 0000000 Subject: Abonnenten der Liste $list$@$domain$
%text prologue%
%wrap%Liste der Abonnenten
%iftype all%
(für alle Versionen der Liste):
%else%
für die
%iftype normal% Normalversion %endif%
%iftype digest% Digest-Version %endif%
%iftype nomail% No-Mail-Version %endif%
der Liste:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/de/moderate-post 0000664 0000000 0000000 00000003036 15023031135 0017326 0 ustar 00root root 0000000 0000000 Subject: Bitte moderieren Sie $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Eine Nachricht von <$posteraddr$> mit dem Betreff "$subject$" wurde an
die Liste geschickt. Sie sollten die Nachricht moderieren,
%ifreason modnonsubposts%
da der Absender kein Abonnent ist.
%endif%
%ifreason moderated%
da die Liste moderiert ist.
%endif%
%ifreason access%
wegen einer Zugangsregel.
%endif%
Die Nachricht befindet sich unten.
%wrap%Um die Nachricht an die Liste durchzulassen, senden Sie eine Mail an
<$releaseaddr$>. In der Regel genügt hierzu ein einfaches Antworten auf
diese Nachricht.
%ifcontrol subonrelease%
%^%%wrap%Sie können die Nachricht durchlassen und gleichzeitig den
Absender bei der Liste anmelden, indem Sie eine Mail an folgende Adressen
senden:%nowrap%
%^%- %wrap%Normalversion: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Digest-Version: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%No-Mail-Version: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Wenn Sie nichts davon ausführen möchten, Senden Sie eine Mail an
<$rejectaddr$> oder ignorieren Sie einfach diese Mail.
Folgende Moderatoren haben diese Mail erhalten:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/de/notify 0000664 0000000 0000000 00000002130 15023031135 0016045 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Angemeldet bei $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Abgemeldet von $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Die Adresse <$subaddr$> wurde bei der
%iftype normal% Normalversion %endif%
%iftype digest% Digest-Version %endif%
%iftype nomail% No-Mail-Version %endif%
der Liste angemeldet
%ifreason request%
da ein Anmeldeantrag vorlag.
%endif%
%ifreason confirm%
da ein Anmeldeantrag bestätigt wurde.
%endif%
%ifreason admin%
da ein Administrator die Anmeldung durchgeführt hat.
%endif%
%ifreason permit%
da die Anmeldung von einem Moderator zugelassen wurde.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Die Adresse <$subaddr$> wurde von der Liste abgemeldet,
%ifreason request%
da ein Abmeldeantrag vorlag.
%endif%
%ifreason confirm%
da eine Abmeldebestätigung vorlag.
%endif%
%ifreason admin%
da sie durch einen Administrator durchgeführt wurde.
%endif%
%ifreason bouncing%
da Zustellversuche an diese Adresse zu lange erfolglos blieben.
%endif%
%endif%
mlmmj/listtexts/de/probe 0000664 0000000 0000000 00000000515 15023031135 0015651 0 ustar 00root root 0000000 0000000 Subject: Erfolglose Nachrichtenzustellung von $list$@$domain$
%text prologue%
Einige Mails an Sie konnten nicht zugestellt werden. Wenn Sie diese
Nachricht erhalten, scheint die Störung beseitigt zu sein, und diese
Nachricht dient lediglich Ihrer Information.
Es folgt eine Liste der abgewiesenen Nachrichten:
- %bouncenumbers%
mlmmj/listtexts/de/prologue 0000664 0000000 0000000 00000000140 15023031135 0016370 0 ustar 00root root 0000000 0000000 %wrap%Hallo, hier ist das Programm Mlmmj, welches die Mailingliste
<$list$@$domain$> verwaltet.
mlmmj/listtexts/de/subrelease 0000664 0000000 0000000 00000002066 15023031135 0016677 0 ustar 00root root 0000000 0000000 %wrap%Dies ist eine offene Liste. Wenn Sie möchten, können Sie sich
gleichzeitig anmelden und eine Nachricht an die Liste senden, indem Sie eine
Mail an <$listsubreleaseaddr$> senden, was in der Regel durch einfaches
Antworten an diese Mail erfolgen kann. Betreff und Nachrichtentext können
Sie frei wählen.
%ifncontrol nodigestsub%
%^%%wrap%Oder Sie können sich gleichzeitig bei der Digest-Version dieser
Liste anmelden und eine Nachricht an die Liste senden, indem sie eine Mail
an <$digestsubreleaseaddr$> senden. Sie erhalten dann mehrere
Listennachrichten zusammegefasst in einer Mail - entweder in regelmäßigen
Zeitabständen oder wenn sich ein Menge Nachrichten angehäuft hat.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Oder Sie können sich gleichzeitig bei der No-Mail-Version dieser
Liste anmelden und eine Nachricht an die Liste senden, indem sie eine Mail
an <$nomailsubreleaseaddr$> senden. Sie erhalten dann keine
Listennachrichten zugesandt, können diese aber in Webarchiven oder über
eine andere angemeldete Adresse lesen.
%endif%
mlmmj/listtexts/de/wait-post 0000664 0000000 0000000 00000001726 15023031135 0016476 0 ustar 00root root 0000000 0000000 Subject: Warte auf Moderation für $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Die Mail von <$posteraddr$> mit dem Betreff "$subject$" wurde an die
Liste eingereicht. Jedoch ist vor der Weiterleitung eine Moderation
erforderlich,
%ifreason moderated%
da es sich um eine moderierte Liste handelt.
%endif%
%ifreason access%
da eine Zugangsregel dies erfordert.
%endif%
%ifreason modnonsubposts%
weil Sie nicht auf der Liste eingeschrieben sind.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Die ist unten angefügt.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/de/wait-sub 0000664 0000000 0000000 00000000333 15023031135 0016273 0 ustar 00root root 0000000 0000000 Subject: Warte auf Zulassung zur Anmeldung bei $list$@$domain$
%text prologue%
%wrap%Ihr Anmeldeantrag ist angekommen, jedoch muss er noch von einem
Moderator bewertet werden, bevor die Anmeldung durchgeführt wird.
mlmmj/listtexts/en/ 0000775 0000000 0000000 00000000000 15023031135 0014630 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/en/confirm 0000664 0000000 0000000 00000003151 15023031135 0016210 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Confirm subscription to $list$@$domain$%endif%
%ifaction unsub%Subject: Confirm unsubscribe from $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
An administrator
%endif%
%ifreason request%
Somebody (and we hope it was you)
%endif%
has requested that your email address <$subaddr$> be added
%iftype normal%
to the list. This means every time a post is sent to the list, you will
receive a copy of it.
%endif%
%iftype digest%
to the list, to receive digests. This means you will receive multiple
posts in a single mail message, at regular intervals, or when a lot of
posts have accumulated.
%endif%
%iftype nomail%
to the list, without mail delivery. This means you will not receive any
posts to the list, but you are considered a member. This means, for
instance, you are able to post to a list which only subscribers may post
to, while you follow the list using a web archive or another subscribed
email address.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
An administrator
%endif%
%ifreason request%
Somebody (and we hope it was you)
%endif%
has requested that the email address <$subaddr$> be removed from the list.
%endif%
%wrap%To confirm you want to do this, please send a message to <$confirmaddr$>
which can usually be done simply by replying to this message. The subject
and the body of the message can be anything.
After doing so, you should receive a reply informing you that the operation
succeeded.
If you do not want to do this, simply ignore this message.
mlmmj/listtexts/en/deny 0000664 0000000 0000000 00000004414 15023031135 0015515 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Unable to subscribe to $list$@$domain$%endif%
%ifaction unsub%Subject: Unable to unsubscribe from $list$@$domain$%endif%
%ifaction release reject%Subject: Unable to moderate $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Unable to gatekeep $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%You were unable to be subscribed to the list
%ifreason disabled%
because the
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
version of the list is turned off.
%endif%
%ifreason closed%
because people are not allowed to subscribe to this list by email.
%endif%
%ifreason subbed%
because you are already subscribed.
%endif%
%ifreason expired%
because too much time passed without a gatekeeper permitting your entry.
%endif%
%ifreason obstruct%
because a gatekeeper obstructed your entry.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%You were unable to be unsubscribed from the list
%ifreason unsubbed%
because you are not subscribed.
%^%%wrap%If you are receiving messages, perhaps a different email
address is subscribed. To find out which address you are subscribed
with, refer to the message welcoming you to the list, or look at the
envelope "Return-Path" header of a message you receive from the list.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
You were unable to release the specified post to the list
%endif%
%ifaction reject%
You were unable to reject the specified post
%endif%
%ifreason notfound%
because it could not be found. Perhaps another moderator already
released or rejected it, or it expired.
%endif%
%ifreason moderators%
because you are not a moderator for the list.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
You were unable to permit the specified subscription request
%endif%
%ifaction obstruct%
You were unable to obstruct the specified subscription request
%endif%
%ifreason notfound%
because it could not be found. Perhaps another gatekeeper already
permitted or obstructed it, or it expired.
%endif%
%ifreason gatekeepers%
because you are not a gatekeeper for the list.
%endif%
%endif%
mlmmj/listtexts/en/deny-post 0000664 0000000 0000000 00000003664 15023031135 0016506 0 ustar 00root root 0000000 0000000 Subject: Post to $list$@$domain$ denied: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%The message from <$posteraddr$> with subject "$subject$" was unable to
be delivered to the list
%ifreason maxmailsize%
because it exceeded the maximum allowed message size of $maxmailsize$
bytes.
%endif%
%ifreason tocc%
because the list address was not found in either the To: or CC: header.
%endif%
%ifreason access%
because of an access rule set up by the list administrator.
%endif%
%ifreason expired%
because too much time passed without any moderator releasing it.
%endif%
%ifreason reject%
because a moderator rejected it.
%endif%
%ifreason subonlypost%
because you are not a list subscriber.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%If you wish to become a subscriber, you will need to contact a
list administrator. You can email <$list+$owner@$domain$> to contact the
list owner.
%endif%
%^%%wrap%If you believe you are a subscriber, you are probably subscribed
with a different email address. To find out which address you are
subscribed with, refer to the message welcoming you to the list, or look
at the envelope "Return-Path" header of a message you receive from the
list.
%endif%
%ifreason modonlypost%
because you are not a list moderator.
%endif%
%ifreason maxmailsize%
%^%(The beginning of the denied message is below.)
%else%
%^%(The denied message is below.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/en/digest 0000664 0000000 0000000 00000000224 15023031135 0016030 0 ustar 00root root 0000000 0000000 Subject: Digest of $list$@$domain$ issue $digestissue$ ($digestinterval$)
Topics (messages $digestfirst$ through $digestlast$):
- %digestthreads%
mlmmj/listtexts/en/faq 0000664 0000000 0000000 00000000126 15023031135 0015321 0 ustar 00root root 0000000 0000000 Subject: Frequently asked questions of $list$@$domain$
Sorry, no FAQ available yet.
mlmmj/listtexts/en/finish 0000664 0000000 0000000 00000002510 15023031135 0016031 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Goodbye from $list$@$domain$%endif%
%ifaction release reject%Subject: Moderated $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Guarded $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Posted to $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Thank you for confirming your unsubscribe.
%endif%
%ifreason admin%
An administrator has removed you from the list.
%else%
You have now been removed from the list.
%endif%
%endif%
%ifaction release%
%^%%wrap%You have successfully released the message from <$posteraddr$>
with subject "$subject$" to the list.
%endif%
%ifaction reject%
%^%%wrap%You have successfully rejected the message from <$posteraddr$>
with subject "$subject$".
%endif%
%ifaction permit%
%^%%wrap%You have successfully permitted <$subaddr$> to join the list.
%endif%
%ifaction obstruct%
%^%%wrap%You have successfully obstructed <$subaddr$> from joining the
list.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Thank you for confirming
%endif%
%ifreason release%
A moderator has released
%endif%
%ifreason request%
Thank you for
%endif%
your post with subject "$subject$". It is now being distributed to the
list.
%endif%
mlmmj/listtexts/en/finish-sub 0000664 0000000 0000000 00000002245 15023031135 0016625 0 ustar 00root root 0000000 0000000 Subject: Welcome to $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Thank you for your request to join us.
%endif%
%ifreason confirm%
Thank you for confirming your subscription.
%endif%
%ifreason permit%
A gatekeeper has permitted you to join us.
%endif%
%ifreason switch%
Your subscription has been switched to the
%else%
%ifreason admin%
An administrator has subscribed you to the
%else%
You have now been added to the
%endif%
%endif%
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
version of the list.
%wrap%The email address you are subscribed with is <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%If you ever wish to unsubscribe, you will need to contact a list
administrator. You can email <$list+$owner@$domain$> to contact the list
owner.
%else%
%^%%wrap%If you ever wish to unsubscribe, send a message to
<$list+$unsubscribe@$domain$> using this email address. The subject and
the body of the message can be anything. You will then receive
confirmation or further instructions.
%endif%
%wrap%For other information and help about this list, send a message to
<$list+$help@$domain$>.
mlmmj/listtexts/en/gatekeep-sub 0000664 0000000 0000000 00000001057 15023031135 0017132 0 ustar 00root root 0000000 0000000 Subject: Subscription request for $list$@$domain$: $subaddr$
%text prologue%
%wrap%There has been a request from <$subaddr$> to join the
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
version of the list.
%wrap%To permit this, please send a message to <$permitaddr$> which can
usually be done simply by replying to this message.
%wrap%If you do not want to do this, either send a message to
<$obstructaddr$> or simply ignore this message.
The following gatekeepers have received this mail:
- %gatekeepers%
mlmmj/listtexts/en/help 0000664 0000000 0000000 00000005156 15023031135 0015512 0 ustar 00root root 0000000 0000000 Subject: Information for $list$@$domain$
%text prologue%
Here is some information about the list.
You can subscribe to the following versions:
- %wrap%The normal version: Every time a post is sent to the list,
subscribers receive a copy of it.
%ifcontrol closedlist closedlistsub%
Subscribe by contacting a list administrator.
%else%
Subscribe by emailing <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%The digest version: Subscribers receive multiple posts in a
single mail message, at regular intervals, or when a lot of posts have
accumulated.
%ifcontrol closedlist closedlistsub%
Subscribe by contacting a list administrator.
%else%
Subscribe by emailing <$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%The no-mail version: Subscribers do not receive any posts to
the list. This means, though, they are able to post to a list which only
subscribers may post to, while they follow the list using a web archive or
another subscribed email address.
%ifcontrol closedlist closedlistsub%
Subscribe by contacting a list administrator.
%else%
Subscribe by emailing <$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%The list has gatekeepers who will review subscription requests
before permitting new members.
%endif%
%ifcontrol closedlist%
%^%%wrap%Unsubscribe by contacting a list administrator.
%else%
%^%%wrap%Unsubscribe by emailing <$list+$unsubscribe@$domain$>.
%endif%
%wrap%Posts are made by emailing <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%However, only subscribers may post to the list.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%The list has moderators who will review all posts before
releasing them to the list.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%The list has moderators who will review posts from
non-subscribers before releasing them to the list.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%The list also has access rules which may affect who can post and
which posts are moderated.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Anyone
%else%
Subscribers
%endif%
can retrieve message number N from the list's archive by sending a message
to <$list+$get-N@$domain$> (change the N to the number of the desired
message).
%endif%%endif%
%wrap%You can retrieve the frequently asked questions document for the list
by sending a message to <$list+$faq@$domain$>.
%wrap%To contact the list owner, send a message to <$list+$owner@$domain$>.
mlmmj/listtexts/en/list 0000664 0000000 0000000 00000000661 15023031135 0015531 0 ustar 00root root 0000000 0000000 Subject: Subscribers to $list$@$domain$
%text prologue%
%wrap%Here is the list of subscribers
%iftype all%
(to all versions of the list):
%else%
to the
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
version of the list:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/en/moderate-post 0000664 0000000 0000000 00000002742 15023031135 0017343 0 ustar 00root root 0000000 0000000 Subject: Please moderate $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%A message from <$posteraddr$> with subject "$subject$" has been
submitted for posting. You are being asked to moderate
%ifreason modnonsubposts%
because the requester is not a subscriber.
%endif%
%ifreason moderated%
because this is a moderated list.
%endif%
%ifreason access%
because of an access rule.
%endif%
The message is below.
%wrap%To release it to the list, please send a message to <$releaseaddr$>
which can usually be done simply by replying to this message.
%ifcontrol subonrelease%
%^%%wrap%If you wish, you can simultaneously release the post and
subscribe the poster by sending a message to one of the following
addresses:%nowrap%
%^%- %wrap%Normal version: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Digest version: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%No-mail version: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%If you do not want to do any of this, either send a message to
<$rejectaddr$> or simply ignore this message.
The following moderators have received this mail:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/en/notify 0000664 0000000 0000000 00000002067 15023031135 0016070 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Subscribed to $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Unsubscribed from $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%The address <$subaddr$> has been subscribed to the
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
version of the list
%ifreason request%
because a request to join was received.
%endif%
%ifreason confirm%
because a request to join was confirmed.
%endif%
%ifreason admin%
because an administrator commanded it.
%endif%
%ifreason permit%
because a gatekeeper permitted it.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%The address <$subaddr$> has been unsubscribed from the list
%ifreason request%
because a request to unsubscribe was received.
%endif%
%ifreason confirm%
because a request to unsubscribe was confirmed.
%endif%
%ifreason admin%
because an administrator commanded it.
%endif%
%ifreason bouncing%
because it has been bouncing for too long.
%endif%
%endif%
mlmmj/listtexts/en/probe 0000664 0000000 0000000 00000000425 15023031135 0015663 0 ustar 00root root 0000000 0000000 Subject: Bouncing messages from $list$@$domain$
%text prologue%
Some messages to you could not be delivered. If you're seeing this
message it means things are back to normal, and it's merely for your
information.
Here is the list of the bounced messages:
- %bouncenumbers%
mlmmj/listtexts/en/prologue 0000664 0000000 0000000 00000000121 15023031135 0016401 0 ustar 00root root 0000000 0000000 %wrap%Hi, this is the Mlmmj program managing the <$list$@$domain$> mailing
list.
mlmmj/listtexts/en/subrelease 0000664 0000000 0000000 00000001771 15023031135 0016713 0 ustar 00root root 0000000 0000000 %^%%wrap%However, this is an open list. If you wish, you can simultaneously
subscribe and release your post by sending a message to
<$listsubreleaseaddr$> which can usually be done simply by replying to this
message. The subject and the body of the message can be anything.
%ifncontrol nodigestsub%
%^%%wrap%Or you can simultaneously subscribe to the digest version of the
list and release your post by sending a message to
<$digestsubreleaseaddr$> and you will receive multiple posts in a single
message, at regular intervals, or when a lot of posts have accumulated.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Or you can simultaneously subscribe to the no-mail version of the
list and release your post by sending a message to
<$nomailsubreleaseaddr$> and you will not receive posts sent to the list.
This means you potentially will not see replies to your message, unless
you follow the list using a web archive or have another email address
subscribed to another version of the list.
%endif%
mlmmj/listtexts/en/wait-post 0000664 0000000 0000000 00000001677 15023031135 0016515 0 ustar 00root root 0000000 0000000 Subject: Awaiting release to $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%The message from <$posteraddr$> with subject "$subject$" has been
submitted to the list. However, the moderators are being asked to review it
before releasing it to the list
%ifreason moderated%
because this is a moderated list.
%endif%
%ifreason access%
because of an access rule.
%endif%
%ifreason modnonsubposts%
because you are not a subscriber.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(The message is below.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/en/wait-sub 0000664 0000000 0000000 00000000324 15023031135 0016305 0 ustar 00root root 0000000 0000000 Subject: Awaiting permission to join $list$@$domain$
%text prologue%
%wrap%Your request to join the list has been received. However, the
gatekeepers are being asked to review it before permitting you to join.
mlmmj/listtexts/fi/ 0000775 0000000 0000000 00000000000 15023031135 0014624 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/fi/confirm 0000664 0000000 0000000 00000003567 15023031135 0016217 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Vahvista liittyminen listalle $list$@$domain$%endif%
%ifaction unsub%Subject: Vahvista eroaminen listalta $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Ylläpitäjä
%endif%
%ifreason request%
Joku (toivottavasti sinä)
%endif%
on pyytänyt, että sähköpostiosoitteesi <$subaddr$> lisättäisiin
%iftype normal%
postituslistan vastaanottajaksi. Aina kun postituslistalle lähetetään
viesti, siitä lähetetään kopio sähköpostiisi.
%endif%
%iftype digest%
postituslistan viestikoosteiden vastaanottajaksi. Sähköpostiisi
lähetetään kooste postituslistalle lähetetyistä viesteistä säännöllisin
väliajoin tai silloin, kun postituslistalle on kertynyt riittävän
monta viestiä.
%endif%
%iftype nomail%
postituslistalle ilman viestien välitystä. Sinulle ei lähetetä
postituslistan viestejä, mutta oikeutesi postituslistan käyttöön ovat
muuten samat kuin postituslistan normaaleilla tilaajilla. Voit
esimerkiksi lähettää viestejä listalle, jolle lähetysoikeus on vain
listan tilaajilla. Tämä on käytännöllistä silloin, kun seuraat listan
viestejä www-arkiston tai toiseen sähköpostiosoitteeseen tilattujen
viestien kautta.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Ylläpitäjä
%endif%
%ifreason request%
Joku (toivottavasti sinä)
%endif%
on pyytänyt, että sähköpostiosoite <$subaddr$> poistettaisiin
postituslistan.
%endif%
%wrap%Vahvistaaksesi toimenpiteen lähetä viesti osoitteeseen <$confirmaddr$>
esimerkiksi vastaamalla tähän sähköpostiviestiin. Viestin otsikolla ja
sisällöllä ei ole merkitystä.
Kun olet lähettänyt viestin, saat vastauksen, jossa vahvistetaan toimenpide
suoritetuksi.
Jos et halua vahvistaa toimenpidettä, sinun ei tarvitse tehdä mitään.
mlmmj/listtexts/fi/deny 0000664 0000000 0000000 00000005107 15023031135 0015511 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Listalle $list$@$domain$ liittyminen epäonnistui%endif%
%ifaction unsub%Subject: Listalta $list$@$domain$ poistuminen epäonnistui%endif%
%ifaction release reject%Subject: Listan $list$@$domain$ viestin hyväksyntä epäonnistui%endif%
%ifaction permit obstruct%Subject: Listan $list$@$domain$ tilauksen hallinta epäonnistui%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Sinua ei voitu liittää postituslistalle,
%ifreason disabled%
koska listan
%iftype normal% tavallinen versio %endif%
%iftype digest% viestikoosteversio %endif%
%iftype nomail% ei postia -versio %endif%
ei ole käytössä.
%endif%
%ifreason closed%
koska tälle listalle ei voi liittyä omatoimisesti sähköpostiviestillä.
%endif%
%ifreason subbed%
koska olet jo aiemmin liittynyt listalle.
%endif%
%ifreason expired%
koska liittymistäsi ei hyväksytty riittävässä ajassa.
%endif%
%ifreason obstruct%
koska postituslistan jäsenistä vastaava henkilö esti liittymisesi listalle.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Jäsenyyttäsi postituslistalla ei voitu lopettaa,
%ifreason unsubbed%
koska et ole listan tilaaja.
%^%%wrap%Jos tästä huolimatta saat postituslistalta viestejä, olet ehkä
liittynyt listalle jollain toisella sähköpostiosoitteella. Voit
selvittää listalle liitetyn osoitteen viestistä, jossa sinut toivotetaan
tervetulleeksi listalle. Jos se ei ole enää tallessa, katso
"Return-Path"-otsikkotieto viimeisimmästä viestistä, jonka olet saanut
postituslistalta.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Viestin hyväksyminen postituslistalle välitettäväksi ei onnistunut,
%endif%
%ifaction reject%
Viestin hylkääminen postituslistalta ei onnistunut,
%endif%
%ifreason notfound%
koska sitä ei löytynyt. Ehkäpä toinen moderaattori on jo hyväksynyt tai
hylännyt sen, tai viesti on vanhentunut.
%endif%
%ifreason moderators%
koska et ole tämän postituslistan moderaattori.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Postituslistan liittymispyynnön hyväksyminen ei onnistunut,
%endif%
%ifaction obstruct%
Postituslistan liittymispyynnön hylkääminen ei onnistunut,
%endif%
%ifreason notfound%
koska sitä ei löytynyt. Ehkäpä toinen listan jäsenistä vastaava on jo
hyväksynyt tai hylännyt sen, tai liittymispyyntö on vanhentunut.
%endif%
%ifreason gatekeepers%
koska sinulla ei ole oikeutta hyväksyä postituslistan jäseniä.
%endif%
%endif%
mlmmj/listtexts/fi/deny-post 0000664 0000000 0000000 00000004171 15023031135 0016474 0 ustar 00root root 0000000 0000000 Subject: Viesti listalle $list$@$domain$ hylättiin: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Viestiä osoitteesta <$posteraddr$> otsikolla "$subject$" ei voitu
välittää postituslistalle,
%ifreason maxmailsize%
koska sen koko on suurempi kuin suurin sallittu koko $maxmailsize$
tavua.
%endif%
%ifreason tocc%
koska postituslistan osoite ei ollut To- eikä CC-vastaanottajissa.
%endif%
%ifreason access%
koska listan ylläpitäjän asettamat postitusoikeudet eivät sallineet
kyseisen viestin lähetystä.
%endif%
%ifreason expired%
koska kukaan postituslistan moderaattoreista ei hyväksynyt viestiä
riittävän ajan kuluessa.
%endif%
%ifreason reject%
koska postituslistan moderaattori esti viestin lähettämisen.
%endif%
%ifreason subonlypost%
koska et ole postituslistan tilaaja.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Jos haluta liittyä postituslistalle, ota yhteyttä listan
ylläpitäjään. Ylläpitäjään saat yhteyden lähettämällä sähköpostia
osoitteeseen <$list+$owner@$domain$>.
%endif%
%^%%wrap%Jos tiedät olevasi tämän postituslistan tilaaja, olet
todennäköisesti tilannut sen jollakin toisella sähköpostiosoitteella. Voit
selvittää listalle liitetyn osoitteen viestistä, jossa sinut toivotetaan
tervetulleeksi listalle. Jos se ei ole enää tallessa, katso
"Return-Path"-otsikkotieto viimeisimmästä viestistä, jonka olet saanut
postituslistalta.
%endif%
%ifreason maxmailsize%
%^%(Alkuosa viestistä, jota ei lähetetty listalle, on alla.)
%else%
%^%(Viesti, jota ei lähetetty listalle, on luettavissa alla.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/fi/digest 0000664 0000000 0000000 00000000234 15023031135 0016025 0 ustar 00root root 0000000 0000000 Subject: Viestikooste $digestissue$ postituslistalta $list$@$domain$ ($digestinterval$)
Aiheet (viestit $digestfirst$ - $digestlast$):
- %digestthreads%
mlmmj/listtexts/fi/faq 0000664 0000000 0000000 00000000201 15023031135 0015307 0 ustar 00root root 0000000 0000000 Subject: Listan $list$@$domain$ usein kysytyt kysymykset
Valitettavasti usein kysyttyjä kysymyksiä ei vielä ole saatavilla.
mlmmj/listtexts/fi/finish 0000664 0000000 0000000 00000002703 15023031135 0016031 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Vahvistus postituslistalta $list$@$domain$ poistumisesta%endif%
%ifaction release reject%Subject: Moderoitu $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Listalle $list$@$domain$ liittyminen käsitelty: $subaddr$%endif%
%ifaction post%Subject: Lähetetty listalle $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Kiitos, että vahvistit postituslistalta poistumisesi.
%endif%
%ifreason admin%
Ylläpitäjä on poistanut sinut postituslistalta.
%else%
Sähköpostiosoitteesi on nyt poistettu postituslistalta.
%endif%
%endif%
%ifaction release%
%^%%wrap%Osoitteesta <$posteraddr$> lähetetty viesti "$subject$" on
onnistuneesti hyväksytty välitettäväksi postituslistalle.
%endif%
%ifaction reject%
%^%%wrap%Osoitteesta <$posteraddr$> lähetetyn viestin "$subject$"
välittäminen postituslistalle on estetty.
%endif%
%ifaction permit%
%^%%wrap%Osoite <$subaddr$> on liitetty postituslistalle.
%endif%
%ifaction obstruct%
%^%%wrap%Osoitteen <$subaddr$> liittäminen postituslistalle on estetty.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Kiitos, että vahvistit viestisi
%endif%
%ifreason release%
Moderaattori on hyväksynyt viestisi
%endif%
%ifreason request%
Kiitos viestistäsi
%endif%
otsikolla "$subject$". Se välitetään postituslistan tilaajille.
%endif%
mlmmj/listtexts/fi/finish-sub 0000664 0000000 0000000 00000002714 15023031135 0016622 0 ustar 00root root 0000000 0000000 Subject: Tervetuloa postituslistalle $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Kiitos, että haluat liittyä tälle postituslistalle.
%endif%
%ifreason confirm%
Kiitos, että vahvistit postituslistalle liittymisen.
%endif%
%ifreason permit%
Pyyntösi liittyä tälle postituslistalle on hyväksytty.
%endif%
%ifreason switch%
Postituslistasi tilaus on muutettu
%else%
%ifreason admin%
Postituslistan ylläpitäjä on liittänyt sinut
%else%
Sinut on lisätty
%endif%
%endif%
%iftype normal% postituslistan normaaliksi tilaajaksi. %endif%
%iftype digest% postituslistan viestikoosteiden tilaajaksi. %endif%
%iftype nomail% postituslistan jäseneksi ilman viestien jakelua. %endif%
%wrap%Osoite, joka postituslistalle on liitetty, on <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Jos haluat lopettaa postituslistan tilauksen, ota yhteyttä listan
ylläpitäjään. Yhteydenotto onnistuu lähettämällä sähköpostia osoitteeseen
<$list+$owner@$domain$>.
%else%
%^%%wrap%Jos haluat lopettaa postituslistan tilauksen, lähetä viesti
osoitteeseen <$list+$unsubscribe@$domain$> samasta osoitteesta, joka
listalle on liitetty. Viestin otsikolla ja sisällöllä ei ole merkitystä.
Tehtyäsi tämän sinulle lähetetään vahvistus tai lisäohjeita postituslistan
tilauksen lopettamisesta.
%endif%
%wrap%Lisätietoa ja ohjeita tämän postituslistan käytöstä saa lähettämällä
viestin osoitteeseen <$list+$help@$domain$>.
mlmmj/listtexts/fi/gatekeep-sub 0000664 0000000 0000000 00000001256 15023031135 0017127 0 ustar 00root root 0000000 0000000 Subject: Pyyntö liittyä listalle $list$@$domain$: $subaddr$
%text prologue%
%wrap%Sähköpostiosoitteesta <$subaddr$> on lähetetty pyyntö liittyä
postituslistalle
%iftype normal% normaalina %endif%
%iftype digest% viestikoosteiden %endif%
%iftype nomail% ei jakelua -version %endif%
tilaajana.
%wrap%Salliaksesi liittymisen lähetä viesti osoitteeseen <$permitaddr$>.
Tämä onnistuu tavallisesti vastaamalla tähän viestiin.
%wrap%Jos et halua sallia listalle liittymistä, lähetä viesti osoitteeseen
<$obstructaddr$> tai jätä tämä pyyntö kokonaan huomioimatta.
Seuraavat postituslistan jäsenistä vastaavat henkilöt ovat saaneet tämän
viestin:
- %gatekeepers%
mlmmj/listtexts/fi/help 0000664 0000000 0000000 00000006402 15023031135 0015501 0 ustar 00root root 0000000 0000000 Subject: Tietoja postituslistasta $list$@$domain$
%text prologue%
Tässä joitakin tietoja tästä postituslistasta.
Voit tilata postituslistasta jonkin seuraavista versioista:
- %wrap%Tavallinen jakelu: Aina kun postituslistalle lähetetään viesti, saat
tilaajana siitä kopion sähköpostiisi.
%ifcontrol closedlist closedlistsub%
Liity ottamalla yhteyttä postituslistan ylläpitäjään.
%else%
Liity lähettämällä viesti osoitteeseen <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Viestikoosteiden jakelu: Saat koosteen postituslistalle
lähetetyistä viesteistä yhtenä viestinä säännöllisin väliajoin tai
silloin, kun listalle on kertynyt riittävä määrä viestejä.
%ifcontrol closedlist closedlistsub%
Liity ottamalla yhteyttä postituslistan ylläpitäjään.
%else%
Liity lähettämällä viesti osoitteeseen
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Ei jakelua -jäsenyys: Osoitteeseesi ei välitetä lainkaan
listalle tulevia viestejä. Voit kuitenkin lähettää viestejä listalle kuten
listan tavanomaiset tilaajat. Tällainen liittyminen on järkevää, jos
seuraat postituslistaa listan www-arkiston kautta tai olet tilannut
viestit toiseen sähköpostiosoitteeseen.
%ifcontrol closedlist closedlistsub%
Liity ottamalla yhteyttä postituslistan ylläpitäjään.
%else%
Liity lähettämällä viesti osoitteeseen
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%Tälle listalle liittyminen edellyttää, että liittymispyynnön
hyväksyy joku listan jäsenyyksiä hallinnoiva henkilö.
%endif%
%ifcontrol closedlist%
%^%%wrap%Listalta voi poistua ottamalla yhteyttä listan ylläpitäjään.
%else%
%^%%wrap%Listalta voi poistua lähettämällä postia osoitteeseen
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Listalle lähetetään postia lähettämällä viesti osoitteeseen
<$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Huomaa kuitenkin, että vain listan tilaajat voivat lähettää
viestejä tälle listalle.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%Tällä listalla on moderaattori, joka tarkastaa kaikki listalle
lähetetyt viestit ennen niiden välittämistä listalle.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%Tällä listalla on moderaattori, joka tarkastaa muiden kuin
listan tilaajien lähettämät viestit ennen niiden välittämistä listalle.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%Tällä listalla on myös käyttöoikeussääntöjä, jotka voivat
vaikuttaa viestien lähetysoikeuteen sekä siihen, mitkä viestit vaativat
moderaattorin hyväksynnän.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Kuka tahansa voi
%else%
Listan tilaajat voivat
%endif%
hakea viestin numero N listan arkistosta lähettämällä viestin osoitteeseen
<$list+$get-N@$domain$> (korvaa N halutulla viestin numerolla).
%endif%%endif%
%wrap%Listan usein kysytyt kysymykset vastauksineen voi hakea lähettämällä
viestin osoitteeseen <$list+$faq@$domain$>.
%wrap%Listan ylläpitäjään saa yhteyden lähettämällä postia osoitteeseen
<$list+$owner@$domain$>.
mlmmj/listtexts/fi/list 0000664 0000000 0000000 00000000732 15023031135 0015524 0 ustar 00root root 0000000 0000000 Subject: Postituslistan $list$@$domain$ tilaajat
%text prologue%
%wrap%Tässä on lista postituslistan
%iftype all%
kaikista tilaajista:
%else%
%iftype normal% tavallisista tilaajista: %endif%
%iftype digest% viestikoosteiden tilaajista: %endif%
%iftype nomail% jäsenistä, joille ei välitetä postia: %endif%
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/fi/moderate-post 0000664 0000000 0000000 00000003241 15023031135 0017332 0 ustar 00root root 0000000 0000000 Subject: Viesti listalle $list$@$domain$ odottaa hyväksyntää: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Viesti osoitteesta <$posteraddr$> otsikolla "$subject$" on lähetetty
listalle välitettäväksi. Sinua pyydetään moderoimaan viesti, koska
%ifreason modnonsubposts%
viestin lähettäjä ei ole listan tilaaja.
%endif%
%ifreason moderated%
tämän listan kaikki viestit moderoidaan.
%endif%
%ifreason access%
tämän listan välityssäännöt vaativat niin.
%endif%
Viesti on luettavissa alla.
%wrap%Salliaksesi viestin välittämisen listalle lähetä viesti osoitteeseen
<$releaseaddr$>. Tämän voi tavallisesti tehdä vastaamalla tähän viestiin.
%ifcontrol subonrelease%
%^%%wrap%Halutessasi voit viestin hyväksymisen lisäksi liittää lähettäjän
postituslistalle. Tämä onnistuu lähettämällä viesti yhteen seuraavista
osoitteista:%nowrap%
%^%- %wrap%Tavallinen tilaus: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Viestikoosteiden tilaus: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Tilaus ilman viestien välitystä: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Jos et halua viestiä hyväksyttävän, lähetä viesti osoitteeseen
<$rejectaddr$> tai jätä tämä viesti kokonaan huomioimatta.
Seuraavat moderaattorit ovat saaneet tämän viestin:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/fi/notify 0000664 0000000 0000000 00000002335 15023031135 0016062 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Liitetty listalle $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Poistettu listalta $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Osoite <$subaddr$> on liitetty postituslistan
%iftype normal% tavalliseen versioon, %endif%
%iftype digest% viestikoosteita vastaanottavaan versioon, %endif%
%iftype nomail% ei viestien jakelua -versioon, %endif%
%ifreason request%
koska tilaaja pyysi saada liittyä listalle.
%endif%
%ifreason confirm%
koska tilaaja vahvisti pyyntönsä liittyä listalle.
%endif%
%ifreason admin%
koska listan ylläpitäjä liitti osoitteen listalle.
%endif%
%ifreason permit%
koska listan jäsenyyksistä vastaava henkilö hyväksyi liittymisen.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Osoite <$subaddr$> on poistettu postituslistan
%ifreason request%
koska tilaaja pyysi tilauksensa lopettamista.
%endif%
%ifreason confirm%
koska tilaaja vahvisti pyyntönsä tilauksensa lopettamisesta.
%endif%
%ifreason admin%
koska listan ylläpitäjä poisti osoitteen listalta.
%endif%
%ifreason bouncing%
koska viestien lähettäminen osoitteeseen on epäonnistunut toistuvasti.
%endif%
%endif%
mlmmj/listtexts/fi/probe 0000664 0000000 0000000 00000000706 15023031135 0015661 0 ustar 00root root 0000000 0000000 Subject: Välittämättä jääneitä viestejä listalta $list$@$domain$
%text prologue%
Sinulle on yritetty lähettää viestejä postituslistalta, mutta ne eivät ole
menneet perille. Jos saat tämän viestin, toimii viestien välitys jälleen, ja
asiat ovat nyt kunnossa. Tämä viesti on vain tiedonanto siitä, että joitakin
viestejä on jäänyt saapumatta.
Tässä on lista viesteistä, joita sinulle ei saatu lähetettyä:
- %bouncenumbers%
mlmmj/listtexts/fi/prologue 0000664 0000000 0000000 00000000125 15023031135 0016401 0 ustar 00root root 0000000 0000000 %wrap%Hei, tämä on Mlmmj-ohjelma, joka hallinnoi
<$list$@$domain$>-postituslistaa.
mlmmj/listtexts/fi/subrelease 0000664 0000000 0000000 00000002066 15023031135 0016705 0 ustar 00root root 0000000 0000000 %^%%wrap%Koska tämä on avoin lista, voit halutessasi liittyä listalle ja
samalla hyväksyä lähettämäsi viestin jakeluun. Tämä onnistuu lähettämällä
viesti osoitteeseen <$listsubreleaseaddr$>, siis käytännössä vastaamalla
tähän viestiin. Viestin otsikolla ja sisällöllä ei ole merkitystä.
%ifncontrol nodigestsub%
%^%%wrap%Tai voit tilata listan viestikoosteversion ja samalla hyväksyä
viestisi jakeluun. Tämä onnistuu lähettämällä viesti osoitteeseen
<$digestsubreleaseaddr$>. Saat listalle tulevat viestit koottuna
laajemmiksi koosteiksi, jotka sisältävät yhtenä pakettina tietyllä
ajanjaksolla tai tietyn määrän listalle lähetettyjä viestejä.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Tai voit liittyä listalle ilman viestien jakelua ja samalla
hyväksyä viestisi jakeluun. Tämä onnistuu lähettämällä viesti osoitteeseen
<$nomailsubreleaseaddr$>. Huomaa, että tällöin et ehkä saa viestiisi
vastauksia, ellet seuraa postituslistaa www-arkiston tai toisen
sähköpostiosoitteen välityksellä.
%endif%
mlmmj/listtexts/fi/wait-post 0000664 0000000 0000000 00000002010 15023031135 0016467 0 ustar 00root root 0000000 0000000 Subject: Viesti odottaa hyväksymistä listalle $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Viesti osoitteesta <$posteraddr$> otsikolla "$subject$" on lähetetty
postituslistalle. Ennen kuin viesti päätyy postituslistalle, moderaattorin
on hyväksyttävä se,
%ifreason moderated%
koska tämä on moderoitu postituslista.
%endif%
%ifreason access%
koska tämän postituslistan käyttösäännöt edellyttävät sitä.
%endif%
%ifreason modnonsubposts%
koska et ole postituslistan tilaaja.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Lähetetty viesti on alla.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/fi/wait-sub 0000664 0000000 0000000 00000000417 15023031135 0016304 0 ustar 00root root 0000000 0000000 Subject: Liittyminen listalle $list$@$domain$ odottaa hyväksyntää
%text prologue%
%wrap%Pyyntösi liittyä postituslistalle on vastaanotettu. Ennen kuin
osoitteesi liitetään postituslistalle, on listan jäsenyyksistä vastaavan
henkilön hyväksyttävä pyyntö.
mlmmj/listtexts/fr/ 0000775 0000000 0000000 00000000000 15023031135 0014635 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/fr/confirm 0000664 0000000 0000000 00000003410 15023031135 0016213 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Confirmer votre abonnement à $list$@$domain$%endif%
%ifaction unsub%Subject: Confirmer votre désabonnement de $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Un administrateur
%endif%
%ifreason request%
Quelqu'un (et nous espérons que c'est vous)
%endif%
a demandé que votre adresse e-mail <$subaddr$> soit ajoutée
%iftype normal%
à la liste. Cela signifie que chaque fois qu'un message sera envoyé à la
liste, vous en recevrez une copie
%endif%
%iftype digest%
à la liste afin d'en recevoir un résumé. Cela signifie que vous recevrez
plusieurs messages dans un seul e-mail, à des intervalles réguliers, ou
lorsque beaucoup de messages ont été accumulés.
%endif%
%iftype nomail%
à la liste, sans envoi des e-mails. Cela signifie que vous ne recevrez
aucun e-mail envoyé à la liste. Par exemple, vous pouvez envoyer un
message à une liste à laquelle seuls les inscrits peuvent poster, alors
que vous suivez la liste en utilisant une archive web ou une autre
adresse e-mail inscrite.
%endif%
%endif%
%ifaction unsub%
%wrap%
%ifreason admin%
Un administrateur
%endif%
%ifreason request%
Quelqu'un (et nous espérons que c'est vous)
%endif%
a demandé à ce que l'adresse e-mail <$subaddr$> soit supprimée de la
liste.
%endif%
%wrap%Pour confirmer que vous voulez faire cela, veuillez envoyer un message
à <$confirmaddr$> ce qui peut, habituellement, être fait facilement en
répondant à ce message. Le sujet et le corps du message peuvent contenir
n'importe quoi.
Après cela, vous devriez recevoir un réponse vous informant du succès de
l'opération.
Si vous ne souhaitez pas faire cela, ignorez simplement ce message.
mlmmj/listtexts/fr/deny 0000664 0000000 0000000 00000004645 15023031135 0015530 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Abonnement à $list$@$domain$%endif% impossible
%ifaction unsub%Subject: Désabonnement de $list$@$domain$%endif% impossible
%ifaction release reject%Subject: Impossible de modérer $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Impossible d'accepter / refuser $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Il n'a pas été possible de vous inscrire à la liste
%ifreason disabled%
parce que la version
%iftype normal% normale %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
de la liste a été désactivée.
%endif%
%ifreason closed%
parce qu'il n'est pas possible de s'inscrire à cette liste par e-mail.
%endif%
%ifreason subbed%
parce que vous êtes déjà inscrit.
%endif%
%ifreason expired%
parce qu'il s'est écoulé trop de temps avant qu'un modérateur autorise
votre accès.
%endif%
%ifreason obstruct%
parce qu'un modérateur n'a pas autorisé votre accès.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Il n'a pas été possible de vous désinscrire de la liste
%ifreason unsubbed%
parce que vous n'êtes pas inscrit.
%^%%wrap%Si vous recevez des messages, peut-être qu'une adresse
différente est inscrite. Pour connaître l'adresse avec laquelle vous
êtes inscrit, référez-vous au message de bienvenue à la liste, ou
examinez l'en-tête "Adresse de retour" du message que vous avez reçu de
la liste.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Vous n'avez pu délivrer le message indiqué à la liste
%endif%
%ifaction reject%
Vous n'avez pu rejeter le message spécifié
%endif%
%ifreason notfound%
parce qu'il n'a pu être trouvé. Peut être qu'un autre modérateur l'a
déjà délivré ou rejeté ou bien a-t-il expiré.
%endif%
%ifreason moderators%
parce que vous n'êtes pas un modérateur de la liste.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Vous n'avez pu autoriser cette demande d'inscription
%endif%
%ifaction obstruct%
Vous n'avez pu rejeter cette demande d'inscription
%endif%
%ifreason notfound%
parce qu'elle n'a pu être trouvée. Peut être qu'un autre modérateur l'a
déjà acceptée ou rejetée ou bien a-t-elle expirée.
%endif%
%ifreason gatekeepers%
parce que vous n'êtes pas un modérateur de la liste.
%endif%
%endif%
mlmmj/listtexts/fr/deny-post 0000664 0000000 0000000 00000003714 15023031135 0016507 0 ustar 00root root 0000000 0000000 Subject: Message à $list$@$domain$ refusé : $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Le message de <$posteraddr$> ayant pour sujet "$subject$" n'a pas pu
être délivré à la liste
%ifreason maxmailsize%
parce qu'il dépassait la taille maximale autorisée de $maxmailsize$
octets.
%endif%
%ifreason tocc%
parce que l'adresse de la liste n'a été trouvée ni dans l'entête Pour: ni
Copie à:.
%endif%
%ifreason access%
en raison d'une règle d'accès définie par l'administrateur.
%endif%
%ifreason expired%
parce qu'il s'est écoulé trop de temps avant qu'un modérateur ne le
délivre.
%endif%
%ifreason reject%
parce qu'un modérateur l'a rejeté.
%endif%
%ifreason subonlypost%
parce que vous n'êtes pas un inscrit de la liste.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Si vous souhaitez vous inscrire, vous devez contacter un
administrateur de la liste. Vous pouvez envoyer un e-mail à
<$list+$owner@$domain$> pour contacter le propriétaire de la liste.
%endif%
%^%%wrap%Si vous pensez être inscrit, vous l'êtes probablement avec une
adresse e-mail différente. Pour savoir avec quelle adresse vous êtes
inscrit, référez-vous au message de bienvenue à la liste ou examinez
l'en-tête "Adresse de retour" du message reçu de la liste.
%endif%
%ifreason maxmailsize%
%^%(Le début du message rejeté est ci-dessous)
%else%
%^%(Le message rejeté figure ci-dessous.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/fr/digest 0000664 0000000 0000000 00000000221 15023031135 0016032 0 ustar 00root root 0000000 0000000 Subject: Digest de $list$@$domain$ numéro $digestissue$ ($digestinterval$)
Sujets (messages $digestfirst$ de $digestlast$):
- %digestthreads%
mlmmj/listtexts/fr/faq 0000664 0000000 0000000 00000000151 15023031135 0015324 0 ustar 00root root 0000000 0000000 Subject: Foire aux questions de $list$@$domain$
Désolé, il n'y a pas de FAQ disponible actuellement.
mlmmj/listtexts/fr/finish 0000664 0000000 0000000 00000002537 15023031135 0016047 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Au revoir de $list$@$domain$%endif%
%ifaction release reject%Subject: $list$@$domain$ modérée : $subject$%endif%
%ifaction permit obstruct%Subject: $list$@$domain$ à accès restreint : $subaddr$%endif%
%ifaction post%Subject: Envoyé à $list$@$domain$ : $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Merci d'avoir confirmé votre désinscription.
%endif%
%ifreason admin%
Un administrateur vous a retiré de la liste.
%else%
Vous avez maintenant été retiré de la liste.
%endif%
%endif%
%ifaction release%
%^%%wrap%Vous avez délivré avec succès le message de <$posteraddr$> ayant
pour sujet "$subject$" à la liste.
%endif%
%ifaction reject%
%^%%wrap%Vous avez rejeté avec succès le message de <$posteraddr$> ayant
pour sujet "$subject$".
%endif%
%ifaction permit%
%^%%wrap%Vous avez permis à <$subaddr$> de rejoindre la liste.
%endif%
%ifaction obstruct%
%^%%wrap%Vous avez empêché <$subaddr$> de rejoindre la liste.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Merci de votre confirmation
%endif%
%ifreason release%
Un modérateur a délivré
%endif%
%ifreason request%
Merci pour
%endif%
votre message ayant pour sujet "$subject$". Il a maintenant été distribué
à la liste.
%endif%
mlmmj/listtexts/fr/finish-sub 0000664 0000000 0000000 00000002477 15023031135 0016641 0 ustar 00root root 0000000 0000000 Subject: Bienvenue à $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Merci de votre demande pour nous rejoindre.
%endif%
%ifreason confirm%
Merci de confirmer votre inscription.
%endif%
%ifreason permit%
Un modérateur vous a permis de nous rejoindre.
%endif%
%ifreason switch%
Votre inscription a été transférée sur la version
%else%
%ifreason admin%
Un administrateur vous a inscrit à la version
%else%
Vous avez maintenant été ajouté à la version
%endif%
%endif%
%iftype normal% normale %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
de la liste.
%wrap%L'adresse e-mail avec laquelle vous avez été inscrit est <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Si vous souhaitez vous désinscrire, vous devez contacter un
administrateur de la liste. Vous pouvez envoyer un mail à
<$list+$owner@$domain$> pour contacter le propriétaire de la liste.
%else%
%^%%wrap%Si vous souhaitez vous désinscrire, envoyez un message à
<$list+$unsubscribe@$domain$> en utilisant cette adresse e-mail. Le sujet
et le corps du message peuvent contenir n'importe quoi. Vous recevrez
ensuite une confirmation ou des instructions complémentaires.
%endif%
%wrap%Pour d'autres informations ou de l'aide à propos de cette liste,
envoyez un message à <$list+$help@$domain$>.
mlmmj/listtexts/fr/gatekeep-sub 0000664 0000000 0000000 00000001127 15023031135 0017135 0 ustar 00root root 0000000 0000000 Subject: Demande d'inscription pour $list$@$domain$ : $subaddr$
%text prologue%
%wrap%Il y a eu une demande de la part de <$subaddr$> pour rejoindre la
version
%iftype normal% normale %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
de la liste.
%wrap%Pour l'autoriser, veuillez envoyer un message à <$permitaddr$> ce qui
peut être fait habituellement simplement en répondant à ce message.
%wrap%Si vous ne souhaitez pas faire cela, envoyez un message à
<$obstructaddr$> ou ignorez simplement ce message.
Le modérateur suivant à reçu le message :
- %gatekeepers%
mlmmj/listtexts/fr/help 0000664 0000000 0000000 00000006004 15023031135 0015510 0 ustar 00root root 0000000 0000000 Subject: Information pour $list$@$domain$
%text prologue%
Vous trouverez ci-après des informations à propos de la liste
Vous pouvez vous inscrire aux versions suivantes :
- %wrap%la version normale\ : à chaque fois qu'un message est envoyé à la
liste, les inscrits reçoivent une copie de celui-ci.
%ifcontrol closedlist closedlistsub%
Inscrivez-vous en contactant un administrateur de la liste.
%else%
Inscrivez-vous en envoyant un e-mail à <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%La version digest\ : les inscrits reçoivent des messages
multiples dans un seul e-mail, à des intervalles réguliers, ou lorsque
plusieurs messages se sont accumulés.
%ifcontrol closedlist closedlistsub%
Inscrivez-vous en contactant un administrateur de la liste.
%else%
Inscrivez-vous en envoyant un e-mail à
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%La version no-mail\ : les inscrits ne reçoivent aucun message de
la liste. Cela signifie qu'alors qu'ils peuvent poster des messages à la
liste que seuls les inscrits peuvent envoyer, ils suivent la liste en
utilisant une archive web ou via une autre adresse e-mail inscrite.
%ifcontrol closedlist closedlistsub%
Inscrivez-vous en contactant un administrateur de la liste.
%else%
Inscrivez-vous en envoyant un e-mail à
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%La liste a un modérateur qui vérifiera les demandes d'inscription
avant d'autoriser les nouveaux membres.
%endif%
%ifcontrol closedlist%
%^%%wrap%Désinscrivez-vous en contactant un administrateur de la liste.
%else%
%^%%wrap%Désinscrivez-vous en envoyant un e-mail à
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Les messages sont envoyés à <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Cependant, seuls les inscrits peuvent poster sur la liste.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%La liste a des modérateurs qui vérifieront tous les messages
avant de les délivrer à la liste.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%La liste a des modérateurs qui vérifieront tous les messages
des non-incrits avant de les délivrer à la liste.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%La liste a également des règles d'accès qui peuvent concerner
ceux qui peuvent poster et les messages qui sont modérés.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Tous
%else%
Les inscrits
%endif%
peuvent retirer le message numéro N des archives de la liste en envoyant
un message à <$list+$get-N@$domain$> (remplacez le N par le numéro du
message souhaité).
%endif%%endif%
%wrap%Vous pouvez obtenir le document contenant les questions fréquemment
posées pour la liste en envoyant un message à <$list+$faq@$domain$>.
%wrap%Pour contacter le propriétaire de la liste envoyé un message à
<$list+$owner@$domain$>.
mlmmj/listtexts/fr/list 0000664 0000000 0000000 00000000663 15023031135 0015540 0 ustar 00root root 0000000 0000000 Subject: Inscrits à $list$@$domain$
%text prologue%
%wrap%Voici la liste des inscrits
%iftype all%
(à toutes les versions de la liste):
%else%
à la version
%iftype normal% normale %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
de la liste\ :
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/fr/moderate-post 0000664 0000000 0000000 00000003110 15023031135 0017336 0 ustar 00root root 0000000 0000000 Subject: Veuillez modérer $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Un message de <$posteraddr$> ayant pour sujet "$subject$" a été soumis
pour envoi. Il vous est demandé de le modérer
%ifreason modnonsubposts%
parce que le demandeur n'est pas inscrit.
%endif%
%ifreason moderated%
parce que c'est une liste modérée.
%endif%
%ifreason access%
en raison d'une règle d'accès.
%endif%
Le message est ci-dessous.
%wrap%Pour le délivrer à la liste, veuillez envoyer un message à
<$releaseaddr$> ce qui peut habituellement être fait simplement en répondant
à ce message.
%ifcontrol subonrelease%
%^%%wrap%Si vous le souhaitez, vous pouvez simultanément délivrer le
message et inscrire le demandeur à la liste en envoyant un message à l'une
des adresses suivantes\ :%nowrap%
%^%- %wrap%Version normale\ : <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Version digest\ : <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Version no-mail\ : <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Si vous ne souhaitez faire aucune de ces actions, vous pouvez envoyer
un message à <$rejectaddr$> ou simplement ignorer ce message.
Les modérateurs suivants ont reçu ce mail :
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/fr/notify 0000664 0000000 0000000 00000002156 15023031135 0016074 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Inscrit à $list$@$domain$ : $subaddr$%endif%
%ifaction unsub%Subject: Désinscrit de $list$@$domain$ : $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%L'adresse' <$subaddr$> a été inscrite à la version
%iftype normal% normale %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
de la liste
%ifreason request%
parce qu'une demande pour la rejoindre a été reçue.
%endif%
%ifreason confirm%
parce qu'une demande pour la rejoindre a été confirmée.
%endif%
%ifreason admin%
parce qu'un administrateur l'a demandé.
%endif%
%ifreason permit%
parce qu'un modérateur l'a permis.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%L'adresse <$subaddr$> a été désinscrite de la liste
%ifreason request%
parce qu'une demande de désinscription a été reçue.
%endif%
%ifreason confirm%
parce qu'une demande de désinscription a été confirmée.
%endif%
%ifreason admin%
parce qu'un administrateur l'a demandé.
%endif%
%ifreason bouncing%
parce qu'il a été rejeté pendant trop longtemps.
%endif%
%endif%
mlmmj/listtexts/fr/probe 0000664 0000000 0000000 00000000512 15023031135 0015665 0 ustar 00root root 0000000 0000000 Subject: Messages rejetés de $list$@$domain$
%text prologue%
Certains messages ne peuvent pas vous être délivrés. Si vous voyez ce
message, cela signifie que les choses sont revenues à la normal et c'est
principalement pour votre information.
Veuillez trouver ci-après la liste des messages rejetés :
- %bouncenumbers%
mlmmj/listtexts/fr/prologue 0000664 0000000 0000000 00000000107 15023031135 0016412 0 ustar 00root root 0000000 0000000 %wrap%Hi, c'est le programme Mlmmj gérant la liste <$list$@$domain$>.
mlmmj/listtexts/fr/subrelease 0000664 0000000 0000000 00000002222 15023031135 0016710 0 ustar 00root root 0000000 0000000 %^%%wrap%Cependant, c'est une liste ouverte. Si vous le souhaitez vous
pouvez simultanément vous inscrire et délivrer votre message en envoyant un
message à <$listsubreleaseaddr$> ce qui peut habituellement être fait
simplement en répondant à ce message. Le sujet et le corps du message
peuvent contenir n'importe quoi.
%ifncontrol nodigestsub%
%^%%wrap%Ou vous pouvez simultanément vous inscrire à la version digest de
la liste et délivrer votre message en envoyant un message à
<$digestsubreleaseaddr$> et vous recevrez des messages multiples groupés
en un seul message, à intervalles réguliers ou lorsque plusieurs messages
se sont accumulés.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Ou vous pouvez simultanément vous inscrire à la version no-mail
de la liste et délivrer votre message en envoyant un message à
<$nomailsubreleaseaddr$> et vous ne recevrez pas les messages envoyés à la
liste. Cela signifie que vous ne verrez pas les réponses à votre message à
moins que vous ne suiviez la liste en utilisant une archive web ou que
vous n'inscriviez une autre adresse e-mail à une autre version de la
liste.
%endif%
mlmmj/listtexts/fr/wait-post 0000664 0000000 0000000 00000001745 15023031135 0016516 0 ustar 00root root 0000000 0000000 Subject: En attente de réponse à $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Le message de <$posteraddr$> ayant pour sujet "$subject$" a été soumis
à la liste. Cependant il a été demandé aux modérateurs de le contrôler avant
de le délivrer à la liste
%ifreason moderated%
parce que c'est une liste modérée.
%endif%
%ifreason access%
en raison d'une règle d'accès.
%endif%
%ifreason modnonsubposts%
parce que vous n'êtes pas inscrit.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Le message apparaît ci-dessous.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/fr/wait-sub 0000664 0000000 0000000 00000000367 15023031135 0016321 0 ustar 00root root 0000000 0000000 Subject: En attente d'autorisation pour joindre la liste $list$@$domain$
%text prologue%
%wrap%Votre requête pour joindre la liste a été reçue. Cependant, les
modérateurs doivent la vérifier avant de vous autoriser à rejoindre la
liste.
mlmmj/listtexts/gr/ 0000775 0000000 0000000 00000000000 15023031135 0014636 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/gr/confirm 0000664 0000000 0000000 00000006170 15023031135 0016222 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Επιβεβαίωση εγγραφής στη $list$@$domain$%endif%
%ifaction unsub%Subject: Επιβεβαίωση διαγραφής από τη $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Ένας από τους διαχειριστές
%endif%
%ifreason request%
Κάποιος (και ελπίζουμε πως είστε εσείς)
%endif%
ζήτησε την καταχώρηση της email διεύθυνσης <$subaddr$>
%iftype normal%
στους παραλήπτες των μηνυμάτων αυτής της λίστας ταχυδρομείου. Αυτό
σημαίνει πως κάθε μήνυμα που θα δημοσιεύεται στη λίστα, θα αποστέλλεται
με email και στη δική σας διεύθυνση.
%endif%
%iftype digest%
στους παραλήπτες των συγκεντρωτικών ενημερώσεων της λίστας ταχυδρομείου.
Αυτό σημαίνει πως ανά τακτά χρονικά διαστήματα, θα παραλαμβάνετε ένα
συγκεντρωτικό μήνυμα με τα τελευταία μηνύματα που δημοσιεύτηκαν στη
λίστα αυτή.
%endif%
%iftype nomail%
στους συνδρομητές της λίστας ταχυδρομείου, χωρίς ενημέρωσή σας για τα
μηνύματα των άλλων χρηστών. (no-mail subscription). Η ιδιαιτερότητα
αυτής της κατηγορίας συνδρομητών είναι πως έχετε τη δυνατότητα να
χρησιμοποιείτε αυτήν την ηλεκτρονική διεύθυνση για να δημοσιεύετε κάποιο
μήνυμα στη λίστα, χρησιμοποιώντας ενδεχομένως κάποια άλλη ηλεκτρονική
διεύθυνση για να παρακολουθείτε τα μηνύματα των άλλων μελών ή ακόμα
παρακολουθώντας τα νέα μηνύματα από το αρχείο της λίστας (web archive).
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Ένας από τους διαχειριστές
%endif%
%ifreason request%
Κάποιος (και ελπίζουμε πως είστε εσείς)
%endif%
κατέθεσε αίτημα για τη διαγραφή της email διεύθυνσης <$subaddr$> από τη
λίστα ταχυδρομείου.
%endif%
%wrap%Για να επιβεβαιώσετε το παραπάνω αίτημα απλά απαντήστε στέλνοντας
email στο <$confirmaddr$> γράφοντας οτιδήποτε στο θέμα. Αν όλα πάνε καλά, θα
σας αποσταλεί μήνυμα επιβεβαίωσης.
Αν το αρχικό αίτημα πραγματοποιήθηκε κατά λάθος ή δεν πραγματοποιήθηκε από
εσάς, τότε απλά αγνοήστε τις παραπάνω οδηγίες!
mlmmj/listtexts/gr/deny 0000664 0000000 0000000 00000007343 15023031135 0015527 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Αδυναμία εγγραφής στη $list$@$domain$%endif%
%ifaction unsub%Subject: Αδυναμία διαγραφής από $list$@$domain$%endif%
%ifaction release reject%Subject: Αδυναμία διαχείρισης της $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Αδυναμία ελέγχου της $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Δεν μπορέσατε να εγγραφείτε σε αυτην τη λίστα ταχυδρομείου
%ifreason disabled%
καθώς
%iftype normal% η κανονική συνδρομή %endif%
%iftype digest% η συνδρομή με λήψη συγκεντρωτικών μηνυμάτων %endif%
%iftype nomail% η συνδρομή χωρίς λήψη μηνυμάτων %endif%
δεν είναι ενεργοποιημένη.
%endif%
%ifreason closed%
καθώς η λίστα αυτή δεν δέχεται εγγραφές με χρήση email.
%endif%
%ifreason subbed%
γιατί είστε ήδη εγγεγραμμένος/η.
%endif%
%ifreason expired%
και ο λόγος είναι πως για μεγάλο χρονικό διάστημα η αίτηση σας δεν
διεκπεραιώθηκε από κάποιον διαχειριστή.
%endif%
%ifreason obstruct%
και ο λόγος είναι πως κάποιος από τους διαχειριστές εμπόδισε την αποδοχή
της αίτησής σας.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
Δεν μπορέσατε να διαγραφείτε από αυτήν τη λίστα ταχυδρομείου
%ifreason unsubbed%
καθώς δεν είστε μέλος.
%^%%wrap%Αν λαμβάνετε μηνύματα, ενδεχομένως αυτό συμβαίνει γιατί έχετε
εγγραφεί χρησιμοποιώντας κάποιον άλλο λογαριασμό email. Για να
εντοπίσετε το λογσριασμό με τον οποίο έχετε εγγραφει, αναζητήστε το
πρώτο μήνυμα καλωσορίσματος που παραλάβατε με την εγγραφή σας.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Δεν έγινε εφικτή η αποδοχή του μηνύματος στη λίστα ταχυδρομείου
%endif%
%ifaction reject%
Δεν έγινε εφικτή η απόρριψη του μηνύματος
%endif%
%ifreason notfound%
και ο λόγος είναι πως αυτό δεν βρέθηκε. Ενδεχομένως, η ανάρτηση να είναι
παρωχημένη, ή ακόμα κάποιος άλλος διαχειριστής να το έχει ήδη
διεκπεραιώσει.
%endif%
%ifreason moderators%
καθώς δεν έχετε δικαιώματα διαχειριστή.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Δεν έχετε δικαίωμα έγκρισης του αιτήματος εγγραφής στη λίστα
%endif%
%ifaction obstruct%
Δεν μπορείτε να εμποδίσετε το αίτημα εγγραφής στη λίστα
%endif%
%ifreason notfound%
καθώς δεν βρέθηκε σχετικό αίτημα. Ενδεχομένως το αίτημα να είναι
παρωχημένο ή κάποιος άλλος διαχειριστής να έχει ήδη διεκπεραιώσει το
αίτημα αυτό.
%endif%
%ifreason gatekeepers%
καθώς δεν είστε διαχειριστής για αυτήν την λίστα.
%endif%
%endif%
mlmmj/listtexts/gr/deny-post 0000664 0000000 0000000 00000005603 15023031135 0016507 0 ustar 00root root 0000000 0000000 Subject: Το μήνυμα με θέμα $subject$ απορρίφθηκε απο τη $list$@$domain$:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Το μήνυμα με διεύθυνση αποστολέα <$posteraddr$> και θέμα "$subject$"
δεν παραλήφθηκε από τη λίστα ταχυδρομείου
%ifreason maxmailsize%
καθώς ξεπερνά το μέγιστο επιτρεπτό μέγεθος των $maxmailsize$ bytes.
%endif%
%ifreason tocc%
καθώς η διεύθυνση της λίστας ταχυδρομείου δεν βρέθηκε στα πεδία To: ή CC:.
%endif%
%ifreason access%
λόγω ενός περιορισμού πρόσβασης που έχει επιβληθεί από τον/τους
διαχειριστές της λίστας.
%endif%
%ifreason expired%
καθώς έχει παρέλθει μεγάλο χρονικό διάστημα χωρίς κάποιος διαχειριστής να
το έχει διεκπεραιώσει.
%endif%
%ifreason reject%
καθώς κάποιος από τους διαχειριστές της λίστας το απέρριψε.
%endif%
%ifreason subonlypost%
καθώς δεν είστε εγγεγραμμένος στη λίστα.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Αν επιθυμείτε να εγγραφείτε στη λίστα ταχυδρομείου, αρκεί να
ενημερώσετε κάποιον απο τους διαχειριστές της, στέλλοντας email στη
διεύθυνση <$list+$owner@$domain$>.
%endif%
%^%%wrap%Αν νομίζετε πως είστε ήδη εγγεγραμμένος τότε επιβεβαιώστε πως
αποστείλατε το αρχικό μήνυμά σας από τη διεύθυνση που είχατε
χρησιμοποιήσει για την εγγραφή σας. Για την επιβεβαίωση της διεύθυνσης Θα
σας βοηθήσει αν αναζητήσετε το αρχικό μήνυμα καλωσορίσματος στη λίστα
ταχυδρομείου.
%endif%
%ifreason maxmailsize%
%^%(Παρακάτω ακολουθεί ένα μέρος από το μήνυμα που απορρίφθηκε)
%else%
%^%(Παρακάτω ακολουθεί το μήνυμα που απορρίφθηκε)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/gr/digest 0000664 0000000 0000000 00000000400 15023031135 0016032 0 ustar 00root root 0000000 0000000 Subject: Συγκεντρωτική ενημέρωση της λίστας ταχυδρομείου $list$@$domain$ τεύχος $digestissue$ ($digestinterval$)
Θέματα (μηνύματα από $digestfirst$ έως $digestlast$):
- %digestthreads%
mlmmj/listtexts/gr/faq 0000664 0000000 0000000 00000000300 15023031135 0015321 0 ustar 00root root 0000000 0000000 Subject: Συχνές ερωτήσεις σχετικές με τη $list$@$domain$
Δυστυχώς, οι συχνές ερωτήσεις δεν είναι ακόμα διαθέσιμες.
mlmmj/listtexts/gr/finish 0000664 0000000 0000000 00000004435 15023031135 0016047 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Αποχαιρετισμός από τη $list$@$domain$%endif%
%ifaction release reject%Subject: Διαχείριση $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Προστασία $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Εμφάνιση μύνηματος στη $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Ευχαριστούμε για την επιβεβαίωση της διαγραφής σας από τη λίστα
ταχυδρομείου.
%endif%
%ifreason admin%
Ένας από τους διαχειριστές σας διέγραψε από τους παραλήπτες τη λίστα
ταχυδρομείου.
%else%
Έχετε επιτυχώς διαγράφει από τους παραλήπτες της λίστας ταχυδρομείου.
%endif%
%endif%
%ifaction release%
%^%%wrap%Η ανάρτηση του μηνύματος που υποβλήθηκε από τη <$posteraddr$> με
θέμα "$subject$" έχει επιτυχώς διεκπεραιωθεί.
%endif%
%ifaction reject%
%^%%wrap%Η απόρριψη του μηνύματος που υποβλήθηκε από τη <$posteraddr$> με
θέμα "$subject$" έχει ολοκληρωθεί.
%endif%
%ifaction permit%
%^%%wrap%Η αποδοχή της αίτησης του/της <$subaddr$> για συμμετοχή στη λίστα
ταχυδρομείου πραγματοποιήθηκε επιτυχώς.
%endif%
%ifaction obstruct%
%^%%wrap%Έχετε επιτυχώς εμποδίσει την αίτηση του <$subaddr$> για συμμετοχή
στη λίστα ταχυδρομείου.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Ευχαριστούμε για την επιβεβαίωση του μηνύματος
%endif%
%ifreason release%
Ένας από τους διαχειριστές αποδέχθηκε το μήνυμα
%endif%
%ifreason request%
Ευχαριστούμε για το μήνυμα
%endif%
με θέμα "$subject$" το οποίο έχει γίνει ήδη διαθέσιμο στα υπόλοιπα μέλη
της λίστας.
%endif%
mlmmj/listtexts/gr/finish-sub 0000664 0000000 0000000 00000004550 15023031135 0016634 0 ustar 00root root 0000000 0000000 Subject: Καλωσορίσατε στη $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Ευχαριστούμε για την επιλογή σας να γίνετε μέλος στη λίστα μας.
%endif%
%ifreason confirm%
Ευχαριστούμε για την επιβεβαίωση της εγγραφής σας.
%endif%
%ifreason permit%
Η αίτησή σας για εγγραφή στη λίστα έγινε αποδεκτή από τους διαχειριστές
της.
%endif%
%ifreason switch%
Η εγγραφή σας άλλαξε σε
%else%
%ifreason admin%
Έχετε εγγραφεί από κάποιον διαχειριστή ως
%else%
Έχετε εγγραφεί ως
%endif%
%endif%
%iftype normal%
κανονικό μέλος (δυνατότητα αποστολής μηνυμάτων και λήψη όλων των
μηνυμάτων, μεμονωμένα).
%endif%
%iftype digest%
μέλος με λήψη συνοπτικών περιλήψεων των νέων μηνυμάτων.
%endif%
%iftype nomail%
μέλος χωρίς λήψη των μηνυμάτων άλλων χρηστών (no-mail subscription).
%endif%
%wrap%Η διεύθυνση email με την οποία έχετε εγγραφεί είναι η <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Για διαγραφή από τη λίστα αρκεί να ενημερώσετε κάποιον από τους
διαχειριστές της λίστας. Για επικοινωνία με τον ιδιοκτήτη της λίστας αρκεί
ένα μήνυμα στη <$list+$owner@$domain$>.
%else%
%^%%wrap%Για τη διαγραφή σας από τη λίστα αρκεί να στείλετε ένα μήνυμα στη
<$list+$unsubscribe@$domain$>. Το θέμα και το περιεχόμενο του μηνύματος
μπορεί να είναι οτιδήποτε, φυσικά μπορεί να είναι και κενό! Μετά τη
αποστολή του μηνύματος θα λάβετε επιβεβαίωση ή περαιτέρω οδηγίες.
%endif%
%wrap%Για περισσότερες πληροφορίες και γενικότερη βοήθεια σχετικά με τη
λίστα αυτή, αρκεί να στείλετε ένα μήνυμα στο <$list+$help@$domain$>.
mlmmj/listtexts/gr/gatekeep-sub 0000664 0000000 0000000 00000002161 15023031135 0017135 0 ustar 00root root 0000000 0000000 Subject: Αίτηση εγγραφής στη λίστα ταχυδρομείου $list$@$domain$: $subaddr$
%text prologue%
%wrap%Παραλάβαμε αίτημα από τη διεύθυνση <$subaddr$> για
%iftype normal% κανονική εγγραφή %endif%
%iftype digest% εγγραφή με λήψη συγκεντρωτικών περιλήψεων των νέων μηνυμάτων %endif%
%iftype nomail% εγγραφή χωρίς λήψη των μηνυμάτων άλλων χρηστών %endif%
στη λίστα αυτή.
%wrap%Για να αποδεχθείτε την αίτηση αυτή, αρκεί να στείλετε ένα μήνυμα στην
<$permitaddr$>. Λογικά αυτό θα συμβεί επιλέγοντας "Απάντηση" στο μήνυμα
αυτό.
%wrap%Αν δεν επιθυμείτε κάτι τέτοιο τότε στείλτε ένα μήνυμα στη διεύθυνση
<$obstructaddr$> ή απλά αγνοήστε το παρόν μήνυμα.
Το μήνυμα αυτό απεστάλη στους παρακάτω διαχειριστές:
- %gatekeepers%
mlmmj/listtexts/gr/help 0000664 0000000 0000000 00000011711 15023031135 0015512 0 ustar 00root root 0000000 0000000 Subject: Πληροφορίες για τη λίστα $list$@$domain$
%text prologue%
Παρακάτω ακολουθούν χρήσιμες πληροφορίες για αυτήν τη λίστα ταχυδρομείου.
Τρόποι εγγραφής στη λίστα :
- %wrap%Κανονικό μέλος\ : Λήψη αντιγράφου από όλα τα μηνύματα που
δημοσιεύονται στη λίστα.
%ifcontrol closedlist closedlistsub%
Η εγγραφή είναι δυνατή ύστερα από επικοινωνία με κάποιον από τους
διαχειριστές της λίστας.
%else%
Για την εγγραφή στη λίστα αρκεί η αποστολή ενός email στη διεύθυνση
<$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Μέλος που λαμβάνει συγκεντρωτικές αναφορές\ : Λήψη των νέων
μηνυμάτων σε ένα συγκεντρωτικό μήνυμα που αποστέλλεται σε κανονικά
διαστήματα ή όταν συσσωρεύονται πολλά νέα μηνύματα.
%ifcontrol closedlist closedlistsub%
Η εγγραφή είναι δυνατή ύστερα από επικοινωνία με κάποιον από τους
διαχειριστές της λίστας.
%else%
Για την εγγραφή στη λίστα αρκεί η αποστολή email στη διεύθυνση
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Μέλος χωρίς ενημέρωση για τα νέα μηνύματα\ : Μη λήψη των νέων
μηνυμάτων, με παράλληλη δυνατότητα αποστολής και ανάρτησης ενός μηνύματος.
Η παρακολούθηση της λίστας μπορεί να γίνει είτε μέσω του αρχείου της
λίστας είτε μέσω κάποιας άλλης εγγεγραμμένης διεύθυνσης email.
%ifcontrol closedlist closedlistsub%
Εγγραφή με επικοινωνία με κάποιον από τους διαχειριστές της λίστας.
%else%
Για την εγγραφή στη λίστα αρκεί η αποστολή email στη διεύθυνση
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%Οι διαχειριστές της λίστας επιβλέπουν και εγκρίνουν τις αιτήσεις
εγγραφής σε αυτήν.
%endif%
%ifcontrol closedlist%
%^%%wrap%Για τη διαγραφή από τη λίστα ταχυδρομείου αρκεί η αποστολή
σχετικού μηνύματος σε κάποιον από τους διαχειριστές της.
%else%
%^%%wrap%Για τη διαγραφή αρκεί η αποστολή email στο
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Για τη δημοσίευση ενός μηνύματος αρκεί η αποστολή του στο
<$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Ωστόσο, μόνο εγγεγραμμένα μέλη έχουν δυνατότητα δημοσίευσης
μηνυμάτων στη λίστα.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%Οι διαχειριστές της λίστας επιβλέπουν και εγκρίνουν όλες τα
μηνύματα που αποστέλλονται σε αυτήν.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%Οι διαχειριστές της λίστας ταχυδρομείου επιβλέπουν (και
εγκρίνουν ή απορρίπτουν) τα μηνύματα από μη μέλη της λίστας.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%Οι κανόνες λειτουργίας της λίστας ταχυδρομείου καθορίζουν τα
μηνύματα που ανακοινώνονται χωρίς έλεγχο και όσα πρέπει να ελεγχθούν πριν
τη δημοσίευσή τους.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Ο κάθε ένας
%else%
Κάθε εγγεγραμμένος χρήστης
%endif%
μπορεί να αναζητήσει το μήνυμα που βρίσκεται στη θέση N στο αρχείο της
λίστας, στέλνοντας ένα μήνυμα στη διεύθυνση <$list+$get-N@$domain$> (όπου
N θα μπει η θέση του μυνήματος).
%endif%%endif%
%wrap%Για να δείτε τις συχνές ερωτήσεις αρκεί η αποστολή ενός μηνύματος στο
<$list+$faq@$domain$>.
%wrap%Για επικοινωνία με τον ιδιοκτήτη της λίστας αρκεί ένα email στο
<$list+$owner@$domain$>.
mlmmj/listtexts/gr/list 0000664 0000000 0000000 00000001302 15023031135 0015530 0 ustar 00root root 0000000 0000000 Subject: Εγγεγραμμένα μέλη στη λίστα ταχυδρομείου $list$@$domain$
%text prologue%
%wrap%Μέλη της λίστας ταχυδρομείου
%iftype all%
(σε όλες τις κατηγορίες συμμετοχής):
%else%
%iftype normal% με κανονική συμμετοχή\ : %endif%
%iftype digest% που λαμβάνουν συγκεντρωτικές ενημερώσεις\ : %endif%
%iftype nomail% χωρίς αποστολή ενημερώτικών email (no-mail subscription): %endif%
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/gr/moderate-post 0000664 0000000 0000000 00000004436 15023031135 0017353 0 ustar 00root root 0000000 0000000 Subject: Παρακαλώ διαχειριστείτε $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Το μήνυμα με αποστολέα <$posteraddr$> και θέμα "$subject$" πρέπει να
ελεγχθεί πριν τη δημοσίευσή του
%ifreason modnonsubposts%
καθώς ο αποστολέας του μηνύματος δεν είναι εγγεγραμμένος στη λίστα.
%endif%
%ifreason moderated%
καθώς αυτή είναι μία λίστα με ελεγχόμενη δημοσίευση.
%endif%
%ifreason access%
καθώς αυτό επιβάλλεται από τις ρυθμίσεις ασφαλείας.
%endif%
Ακολουθεί το μήνυμα.
%wrap%Για να αποδεχθείτε το μήνυμα αυτό, αρκεί η αποστολή ενός μηνύματος στη
διεύθυνση <$releaseaddr$>, επιλέγοντας "Απάντηση".
%ifcontrol subonrelease%
%^%%wrap%Για να εγγράψετε παράλληλα τον αποστολέα ως μέλος στη λίστα με
την παράλληλη αποδοχή του μηνύματος αρκεί ένα μήνυμα στις παρακάτω
διευθύνσεις\ :%nowrap%
%^%- %wrap%Κανονική εγγραφή\ : <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Εγγραφή με λήψη συγκεντρωτικών μηνυμάτων (digest version):
<$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Εγγραφή χωρίς λήψη μηνυμάτων. (no-mail version):
<$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Αν δεν επιθυμείτε να κάνετε τίποτα από τα παραπάνω τότε στείλτε ένα
μήνυμα στο <$rejectaddr$> ή απλά αγνοήστε το μήνυμα αυτό.
Το μήνυμα αυτό απεστάλη στους παρακάτω διαχειριστές :
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/gr/notify 0000664 0000000 0000000 00000003332 15023031135 0016072 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Εγγραφή στη λίστα $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Διαγραφή από τη λίστα $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Η διεύθυνση <$subaddr$> χρησιμοποιήθηκε για εγγραφή
%iftype normal% κανονικού μέλος %endif%
%iftype digest% μέλους με συγκεντρωτική ενημέρωση %endif%
%iftype nomail% μέλους χωρίς ενημέρωση %endif%
στη λίστα
%ifreason request%
ύστερα από ανάλογη αίτηση που παραλάβαμε.
%endif%
%ifreason confirm%
ύστερα από ανάλογη αίτηση που επιβεβαιώθηκε.
%endif%
%ifreason admin%
ύστερα απο αίτημα ενός από τους διαχειριστές.
%endif%
%ifreason permit%
ύστερα από άδεια ενός από τους διαχειριστές.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Η διεύθυνση <$subaddr$> διαγράφηκε από τους παραλήπτες της λίστας
ταχυδρομείου
%ifreason request%
ύστερα από ανάλογη αίτηση διαγραφής που παραλάβαμε.
%endif%
%ifreason confirm%
ύστερα από ανάλογη αίτηση διαγραφής που επιβεβαιώθηκε.
%endif%
%ifreason admin%
ύστερα απο αίτημα ενός από τους διαχειριστές.
%endif%
%ifreason bouncing%
καθώς εκκρεμούσε το αίτημα χωρίς αποδοχή για μεγάλο χρονικό διάστημα.
%endif%
%endif%
mlmmj/listtexts/gr/probe 0000664 0000000 0000000 00000001206 15023031135 0015667 0 ustar 00root root 0000000 0000000 Subject: Μηνύματα με καθυστέρηση ή αδυναμία παράδοσης στη λίστα ταχυδρομείου $list$@$domain$
%text prologue%
Κάποια μηνύματα σας δεν παραδόθηκαν επιτυχώς. Αν διαβάζετε αυτές τις
γραμμές, τότε το πρόβλημα έχει ήδη διορθωθεί και το μήνυμα αποσκοπεί απλά
στην ενημέρωσή σας.
Παρακάτω ακολουθεί ένας κατάλογος με τα μηνύματα που καθυστέρησαν ή δεν
παραδόθηκαν.
- %bouncenumbers%
mlmmj/listtexts/gr/prologue 0000664 0000000 0000000 00000000240 15023031135 0016411 0 ustar 00root root 0000000 0000000 %wrap%Γειά, αυτό είναι το Mlmmj πρόγραμμα που διαχειρίζεται τη λίστα
ταχυδρομείου <$list$@$domain$>.
mlmmj/listtexts/gr/subrelease 0000664 0000000 0000000 00000002644 15023031135 0016721 0 ustar 00root root 0000000 0000000 %^%%wrap%Ωστόσο, αυτή είναι μία ανοικτή λίστα. Για την εγγραφή στους
παραλήπτες μαζί με την ανάρτηση του μηνύματος αρκεί η αποστολή email στη
διεύθυνση <$listsubreleaseaddr$>, κάτι που μάλλον θα συμβεί επιλέγοντας
"Απάντηση". Το θέμα και το περιεχόμενο του μυνήματος μπορεί να είναι
οτιδήποτε.
%ifncontrol nodigestsub%
%^%%wrap%Ενναλακτικά, υπάρχει η επιλογή της εγγραφής στη λίστα
συγκεντρωτικής ενημέρωσης με παράλληλη ανάρτηση της ανακοίνωσης στέλνοντας
email στη διεύθυνση <$digestsubreleaseaddr$>.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Τέλος, μπορείτε να εγγραφείτε στη λίστα χωρίς να λαμβάνετε
ενημέρωση για τις αναρτήσεις των άλλων χρηστών, στέλνοντας email στη
διεύθυνση <$nomailsubreleaseaddr$>. Εγγραφείτε με τον τρόπο αυτό αν θέλετε
να παρακολουθείτε τη λίστα από την ιστοσελίδα της ή ακόμα αν έχετε
εγγραφεί και με κάποια άλλη διεύθυνση.
%endif%
mlmmj/listtexts/gr/wait-post 0000664 0000000 0000000 00000002532 15023031135 0016512 0 ustar 00root root 0000000 0000000 Subject: Μήνυμα που εκκρεμεί για τη λίστα ταχυδρομείου $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Ένα μήνυμα με αποστολέα <$posteraddr$> και θέμα "$subject$" έχει
υποβληθεί για δημοσίευση στη λίστα. Για να εμφανιστεί πρέπει πρώτα να
διαβαστεί και να επιβεβαιωθεί από κάποιον διαχειριστή
%ifreason moderated%
καθώς αυτή είναι μία ελεγχόμενη λίστα.
%endif%
%ifreason access%
καθώς αυτό επιβάλλεται από τους κανόνες πρόσβασης της λίστας.
%endif%
%ifreason modnonsubposts%
καθώς δεν είστε εγγεγραμμένος χρήστης.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Παρακάτω ακολουθεί το μήνυμα.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/gr/wait-sub 0000664 0000000 0000000 00000000662 15023031135 0016320 0 ustar 00root root 0000000 0000000 Subject: Αναμονή για έγκριση της συμμετοχής σας στη λίστα ταχυδρομείου $list$@$domain$
%text prologue%
%wrap%Η αίτησή σας για συμμετοχή στη λίστα ταχυδρομείου παραλήφθηκε.
Αναμένεται ο έλεγχος και η αποδοχή ή απόρριψή της από τους διαχειριστές της
λίστας.
mlmmj/listtexts/it/ 0000775 0000000 0000000 00000000000 15023031135 0014642 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/it/confirm 0000664 0000000 0000000 00000003252 15023031135 0016224 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Conferma iscrizione a $list$@$domain$%endif%
%ifaction unsub%Subject: Conferma rimozione da $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Un amministratore
%endif%
%ifreason request%
Qualcuno (che speriamo sia tu)
%endif%
ha richiesto l'aggiunta del tuo indirizzo di posta elettronica <$subaddr$>
%iftype normal%
alla lista. Ciò significa che ogni volta che un messaggio viene inviato
alla lista, tu ne riceverai una copia.
%endif%
%iftype digest%
alla lista, per ricevere digest. Ciò significa che riceverai più
messaggi in un unico messaggio di posta, a intervalli regolari, o quando
se ne sono accumulati un po'.
%endif%
%iftype nomail%
alla lista, senza invio della posta. Ciò significa che non riceverai
alcun messaggio relativo alla lista, ma ne sei sempre considerato/a un
membro. Per esempio, puoi inviare messaggi alla lista, cui solo gli
iscritti possono scrivere, ma la segui tramite un archivio web o un
altro indirizzo di posta con cui sei iscritto/a.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Un amministratore
%endif%
%ifreason request%
Qualcuno (che speriamo sia tu)
%endif%
ha richiesto la rimozione dell'indirizzo di posta elettronica <$subaddr$>
dalla lista.
%endif%
%wrap%Per confermare l'azione, invia un messaggio a <$confirmaddr$>, tale
azione può essere eseguita semplicemente rispondendo al messaggio. L'oggetto
e il corpo del messaggio possono essere vuoti.
Dopo tale operazione riceverai una risposta che ti informerà della sua
riuscita.
Se non vuoi confermare l'azione, ignora questo messaggio.
mlmmj/listtexts/it/deny 0000664 0000000 0000000 00000004577 15023031135 0015541 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Impossibile effettuare l'iscrizione a $list$@$domain$%endif%
%ifaction unsub%Subject: Impossibile rimuovere l'iscrizione da $list$@$domain$%endif%
%ifaction release reject%Subject: Impossibile moderare $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Impossibile eseguire il gatekeeping su $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Non sei in grado di iscriverti alla lista
%ifreason disabled%
perché la versione
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
della lista è disattivata.
%endif%
%ifreason closed%
perché agli utenti non è consentito iscriversi a questa lista tramite
e-mail.
%endif%
%ifreason subbed%
perché sei già iscritto/a.
%endif%
%ifreason expired%
perché è trascorso troppo tempo senza che un controllore permettesse il
tuo ingresso.
%endif%
%ifreason obstruct%
perché un controllore ha bloccato il tuo ingresso.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Non sei in grado di rimuovere l'iscrizione dalla lista
%ifreason unsubbed%
perché non sei iscritto/a.
%^%%wrap%Se stai ricevendo messaggi, probabilmente sei iscritto/a con un
altro indirizzo e-mail. Per vedere l'indirizzo di iscrizione, fai
riferimento al messaggio di benvenuto ricevuto dalla lista, o controlla
l'intestazione "Return-Path" di un messaggio ricevuto dalla lista.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Non hai potuto rilasciare il messaggio specificato nella lista
%endif%
%ifaction reject%
Non hai potuto rifiutare il messaggio specificato
%endif%
%ifreason notfound%
perché non è stato possibile trovarlo. Forse un altro moderatore
lo ha già rilasciato o rifiutato, o esso è scaduto.
%endif%
%ifreason moderators%
perché non sei un moderatore della lista.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Non hai potuto consentire la specifica richiesta di iscrizione
%endif%
%ifaction obstruct%
Non hai potuto bloccare la specifica richiesta di iscrizione
%endif%
%ifreason notfound%
perché è stato impossibile trovarla. Forse un altro gatekeeper
l'ha già permessa o bloccata, o essa è scaduta.
%endif%
%ifreason gatekeepers%
perché non sei un gatekeeper della lista.
%endif%
%endif%
mlmmj/listtexts/it/deny-post 0000664 0000000 0000000 00000003635 15023031135 0016516 0 ustar 00root root 0000000 0000000 Subject: Messaggio a $list$@$domain$ negato: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Non è stato possibile consegnare alla lista il messaggio da
<$posteraddr$> con oggetto "$subject$"
%ifreason maxmailsize%
perché ha superato la dimensione massima consentita di $maxmailsize$
byte.
%endif%
%ifreason tocc%
perché l'indirizzo della lista non è stato trovato nella intestazione A: o
CC:.
%endif%
%ifreason access%
a causa di una regola di accesso impostata dall'amministratore della
lista.
%endif%
%ifreason expired%
perché è trascorso troppo tempo senza che alcun moderatore lo confermasse.
%endif%
%ifreason reject%
perché un moderatore lo ha rifiutato.
%endif%
%ifreason subonlypost%
perché non sei iscritto/a alla lista.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Se desideri iscriverti, devi contattare l'amministratore della
lista. Puoi scrivere a <$list+$owner@$domain$> per contattarlo.
%endif%
%^%%wrap%Se sai di essere iscritto/a, probabilmente lo sei con un
indirizzo di posta diverso. Per vedere con quale indirizzo ti sei
iscritto/a, fai riferimento al messaggio di benvenuto ricevuto dalla
lista, o controlla l'intestazione "Return-Path" di un messaggio ricevuto
dalla lista.
%endif%
%ifreason maxmailsize%
%^%(L'inizio del messaggio rifiutato è riportato sotto.)
%else%
%^%(Il messaggio rifiutato è riportato sotto.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/it/digest 0000664 0000000 0000000 00000000236 15023031135 0016045 0 ustar 00root root 0000000 0000000 Subject: Digest di $list$@$domain$ emissione $digestissue$ ($digestinterval$)
Argomenti (messaggi $digestfirst$ attraverso $digestlast$):
- %digestthreads%
mlmmj/listtexts/it/faq 0000664 0000000 0000000 00000000150 15023031135 0015330 0 ustar 00root root 0000000 0000000 Subject: Domande ricorrenti (FAQ) di $list$@$domain$
Ci dispiace, le FAQ non sono ancora disponibili.
mlmmj/listtexts/it/finish 0000664 0000000 0000000 00000002513 15023031135 0016046 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Arrivederci da $list$@$domain$%endif%
%ifaction release reject%Subject: $list$@$domain$ moderata: $subject$%endif%
%ifaction permit obstruct%Subject: $list$@$domain$ controllata: $subaddr$%endif%
%ifaction post%Subject: Inviato a $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Grazie per aver confermato la rimozione della tua iscrizione.
%endif%
%ifreason admin%
Un amministratore ti ha rimosso dalla lista.
%else%
Ora sei stato/a rimosso/a dalla lista.
%endif%
%endif%
%ifaction release%
%^%%wrap%Hai rilasciato correttamente il messaggio alla lista da
<$posteraddr$> con oggetto "$subject$".
%endif%
%ifaction reject%
%^%%wrap%Hai rifiutato correttamente il messaggio da <$posteraddr$> con
oggetto "$subject$".
%endif%
%ifaction permit%
%^%%wrap%Hai permesso correttamente a <$subaddr$> di unirsi alla lista.
%endif%
%ifaction obstruct%
%^%%wrap%Hai bloccato correttamente l'ingresso alla lista di <$subaddr$>.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Grazie per la conferma
%endif%
%ifreason release%
Un moderatore ha rilasciato
%endif%
%ifreason request%
Grazie per
%endif%
il tuo messaggio con oggetto "$subject$". Ora verrà distribuito alla
lista.
%endif%
mlmmj/listtexts/it/finish-sub 0000664 0000000 0000000 00000002341 15023031135 0016634 0 ustar 00root root 0000000 0000000 Subject: Benvenuto/a in $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Grazie per esserti unito/a a noi.
%endif%
%ifreason confirm%
Grazie per aver confermato la tua iscrizione.
%endif%
%ifreason permit%
Un controllore ti ha permesso di unirti a noi.
%endif%
%ifreason switch%
La tua iscrizione è stata cambiata nella versione
%else%
%ifreason admin%
Un amministratore ti ha iscritto alla versione
%else%
Sei stato/a ora aggiunto/a alla versione
%endif%
%endif%
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
della lista.
%wrap%L'indirizzo di posta elettronica con cui ti sei iscritto/a è
<$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Se desideri ancora rimuovere l'iscrizione, dovrai contattare un
amministratore della lista. Invia un messaggio a <$list+$owner@$domain$>
per contattarlo.
%else%
%^%%wrap%Se desideri ancora rimuovere l'iscrizione, invia un messaggio a
<$list+$unsubscribe@$domain$> usando questo indirizzo di posta. L'oggetto
e il corpo del messaggio possono essere vuoti. Riceverai una conferma o
ulteriori istruzioni.
%endif%
%wrap%Per ulteriori informazioni e aiuto su questa lista, invia un messaggio
a <$list+$help@$domain$>.
mlmmj/listtexts/it/gatekeep-sub 0000664 0000000 0000000 00000001126 15023031135 0017141 0 ustar 00root root 0000000 0000000 Subject: Richiesta di iscrizione per $list$@$domain$: $subaddr$
%text prologue%
%wrap%C'è stata una richiesta da parte di <$subaddr$> per unirsi alla
versione
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
della lista.
%wrap%Per completare la procedura, invia un messaggio a <$permitaddr$>, che
viene in genere fatto semplicemente rispondendo a questo messaggio.
%wrap%Per annullare la procedura, invia un messaggio a <$obstructaddr$>
oppure ignora questo messaggio.
Questo messaggio è stato ricevuto dai seguenti controllori:
- %gatekeepers%
mlmmj/listtexts/it/help 0000664 0000000 0000000 00000005720 15023031135 0015521 0 ustar 00root root 0000000 0000000 Subject: Istruzioni per $list$@$domain$
%text prologue%
Di seguito, alcune informazioni sulla lista.
Puoi iscriverti alle seguenti versioni:
- %wrap%Versione normal: ogni volta che un messaggio viene inviato alla
lista, gli iscritti ne ricevono una copia.
%ifcontrol closedlist closedlistsub%
Iscriviti contattando un amministratore della lista.
%else%
Iscriviti inviando una e-mail a <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Versione digest: gli iscritti ricevono più messaggi in un unico
messaggio, a intervalli regolari o quando si sono accumulati molti
messaggi.
%ifcontrol closedlist closedlistsub%
Iscriviti contattando un amministratore della lista.
%else%
Iscriviti inviando una e-mail a <$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Versione no-mail: gli iscritti non ricevono alcun messaggio
diretto alla lista. Essi sono comunque in grado di inviare messaggi alla
lista, a cui è consentito ricevere messaggi solo dagli iscritti, mentre
possono seguire la lista tramite un archivio web o un altro indirizzo di
posta elettronica col quale sono iscritti.
%ifcontrol closedlist closedlistsub%
Iscriviti contattando un amministratore della lista.
%else%
Iscriviti inviando una e-mail a <$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%La lista ha controllori (gatekeeper) che verificano le richieste
di iscrizione prima di consentire l'ingresso di nuovi membri.
%endif%
%ifcontrol closedlist%
%^%%wrap%Rimuovi l'iscrizione contattando un amministratore della lista.
%else%
%^%%wrap%Rimuovi l'iscrizione inviando una e-mail a
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%I messaggi alla lista vanno inviati tramite e-mail a
<$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Solo gli iscritti, tuttavia, possono inviare messaggi alla lista.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%La lista ha moderatori che controllano previamente tutti i
messaggi diretti alla lista.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%La lista ha moderatori che controllano previamente i messaggi
diretti alla lista inviati da non iscritti.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%La lista possiede anche regole di accesso che possono coinvolgere
chi invia e quali messaggi debbano essere moderati.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Tutti
%else%
Gli iscritti
%endif%
possono ricevere un numero di messaggi N dall'archivio della lista,
inviando un messaggio a <$list+$get-N@$domain$> (cambiare la lettera N nel
numero di messaggi che si desidera ricevere).
%endif%%endif%
%^%%wrap%Per ottenere il documento delle domande ricorrenti (FAQ) relative
alla lista, invia un messaggio a <$list+$faq@$domain$>.
%^%%wrap%Per contattare il responsabile della lista, invia un messaggio a
<$list+$owner@$domain$>.
mlmmj/listtexts/it/list 0000664 0000000 0000000 00000000663 15023031135 0015545 0 ustar 00root root 0000000 0000000 Subject: Iscritti a $list$@$domain$
%text prologue%
%wrap%Di seguito l'elenco degli iscritti
%iftype all%
(a tutte le versioni della lista):
%else%
alla versione
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
della lista:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/it/moderate-post 0000664 0000000 0000000 00000003017 15023031135 0017351 0 ustar 00root root 0000000 0000000 Subject: Moderazione di $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%È stato inviato un messaggio da <$posteraddr$> con oggetto
"$subject$". Ti è stato richiesto di moderarlo
%ifreason modnonsubposts%
perché il/la richiedente non è un/a iscritto/a.
%endif%
%ifreason moderated%
perché questa è una lista moderata.
%endif%
%ifreason access%
a causa di una regola di accesso.
%endif%
Il messaggio è riportato sotto.
%wrap%Per rilasciarlo alla lista, invia un messaggio a <$releaseaddr$>, che
in genere si esegue semplicemente rispondendo al questo messaggio.
%ifcontrol subonrelease%
%^%%wrap%Se lo desideri, puoi contemporaneamente rilasciare il messaggio e
iscrivere il mittente inviando un messaggio a uno dei seguenti
indirizzi:%nowrap%
%^%- %wrap%Versione normale: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Versione digest: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Versione no-mail: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Se non vuoi eseguire nulla di tutto ciò, invia un messaggio a
<$rejectaddr$> oppure ignora questo messaggio.
Questo messaggio è stato ricevuto dai seguenti moderatori:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/it/notify 0000664 0000000 0000000 00000002202 15023031135 0016071 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Iscrizione a $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Rimozione iscrizione da $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%L'indirizzo <$subaddr$> è stato iscritto alla versione
%iftype normal% normal %endif%
%iftype digest% digest %endif%
%iftype nomail% no-mail %endif%
della lista
%ifreason request%
perché è stata ricevuta una richiesta di iscrizione.
%endif%
%ifreason confirm%
perché è stata confermata una richiesta di iscrizione.
%endif%
%ifreason admin%
dietro ordine impartito da un amministratore.
%endif%
%ifreason permit%
perché lo ha permesso un controllore.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%L'indirizzo <$subaddr$> è stato rimosso della lista
%ifreason request%
perché è stata ricevuta una richiesta di rimozione.
%endif%
%ifreason confirm%
perché è stata confermata una richiesta di rimozione.
%endif%
%ifreason admin%
dietro ordine impartito da un amministratore.
%endif%
%ifreason bouncing%
perché i messaggi sono tornati indietro per troppo tempo.
%endif%
%endif%
mlmmj/listtexts/it/probe 0000664 0000000 0000000 00000000473 15023031135 0015700 0 ustar 00root root 0000000 0000000 Subject: Messaggi in restituzione (bouncing) da $list$@$domain$
%text prologue%
Alcuni messaggi a te indirizzati potrebbero non esserti stati consegnati.
Questo messaggio è a puro scopo informativo, dato che le cose sono tornate
alla normalità.
Di seguito, l'elenco dei messaggi restituiti:
- %bouncenumbers%
mlmmj/listtexts/it/prologue 0000664 0000000 0000000 00000000131 15023031135 0016414 0 ustar 00root root 0000000 0000000 %wrap%Ciao, questo è il programma Mlmmj che gestisce la mailing list
<$list$@$domain$>.
mlmmj/listtexts/it/subrelease 0000664 0000000 0000000 00000002047 15023031135 0016722 0 ustar 00root root 0000000 0000000 %^%%wrap%Questa è, comunque, una lista aperta. Se vuoi, puoi iscriverti e
contemporaneamente rilasciare il tuo messaggio inviandone uno a
<$listsubreleaseaddr$>, azione in genere eseguita semplicemente rispondendo
a questo messaggio. L'oggetto e il corpo del messaggio possono essere vuoti.
%ifncontrol nodigestsub%
%^%%wrap%O puoi iscriverti alla versione digest della lista e
contemporaneamente rilasciare il tuo messaggio inviandone uno a
<$digestsubreleaseaddr$>; riceverai così più messaggi in un singolo
messaggio, a intervalli regolari o quando se ne sono accumulati un po'.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%O puoi iscriverti alla versione no-mail della lista e
contemporaneamente rilasciare il tuo messaggio inviandone uno a
<$nomailsubreleaseaddr$>, così da non ricevere i messaggi diretti alla
lista. Ciò comporta il fatto che non vedrai le risposte al tuo messaggio,
a meno che tu non segua la lista tramite un archivio web o un altro
indirizzo di posta con cui sei iscritto a un'altra versione della lista.
%endif%
mlmmj/listtexts/it/wait-post 0000664 0000000 0000000 00000001712 15023031135 0016515 0 ustar 00root root 0000000 0000000 Subject: In attesa di rilascio a $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Il messaggio da <$posteraddr$> con oggetto "$subject$" è stato inviato
alla lista. Tuttavia, ai moderatori è stato richiesto di controllarlo prima
di rilasciarlo,
%ifreason moderated%
perché questa è una lista moderata.
%endif%
%ifreason access%
a causa di una regola di accesso.
%endif%
%ifreason modnonsubposts%
perché non sei iscritto/a.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Il messaggio è riportato sotto.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/it/wait-sub 0000664 0000000 0000000 00000000376 15023031135 0016326 0 ustar 00root root 0000000 0000000 Subject: In attesa di permesso per l'ammissione a $list$@$domain$
%text prologue%
%wrap%La tua richiesta di iscrizione alla lista è stata ricevuta. Tuttavia,
la tua richiesta di ammissione è stata prima sottoposta al controllo degli
amministratori.
mlmmj/listtexts/pt/ 0000775 0000000 0000000 00000000000 15023031135 0014651 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/pt/confirm 0000664 0000000 0000000 00000003402 15023031135 0016230 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Confirmação de subscrição em $list$@$domain$%endif%
%ifaction unsub%Subject: Confirmação de cancelamento da subscrição em $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Um administrador
%endif%
%ifreason request%
Alguém (esperamos que você)
%endif%
solicitou que o endereço eletrónico <$subaddr$> fosse adicionado
%iftype normal%
à lista de correio normal. Isto significa que, de cada vez que uma
mensagem for enviada para a lista, você receberá uma cópia.
%endif%
%iftype digest%
à lista de correio resumida. Isto significa que você receberá diversas
mensagens numa única mensagem, em intervalos periódicos, ou quando se
acumularem um determinado conjunto de mensagens.
%endif%
%iftype nomail%
à lista de correio no-mail. Isto significa que você não receberá
quaisquer mensagens, mas é considerado como membro. Isto significa que,
por exemplo você poderá enviar mensagens para a lista na qual só os
subscritores podem enviar, enquanto segue as mensagens através de um
arquivo web ou através de outro endereço eletrónico.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Um administrador
%endif%
%ifreason request%
Alguém (esperamos que você)
%endif%
solicitou que o endereço eletrónico <$subaddr$> fosse removido da lista de
correio.
%endif%
%wrap%Para confirmar a operação, envie uma mensagem para <$confirmaddr$>
bastando, para o efeito, responder a esta mensagem. O assunto e o texto da
mensagem pode estar vazio.
Após o envio da mensagem, deve receber uma mensagem a confirmar que a
operação foi councluída com sucesso.
Se não solicitou esta operação, ignore esta mensagem.
mlmmj/listtexts/pt/deny 0000664 0000000 0000000 00000004700 15023031135 0015534 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Não foi possível subscrever em $list$@$domain$%endif%
%ifaction unsub%Subject: Não foi possível cancelar a subscrição em $list$@$domain$%endif%
%ifaction release reject%Subject: Não foi possível moderar $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Não foi possível comunicar com o administrador de $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Não foi possível concluir a subscrição à lista
%ifreason disabled%
porque a versão
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% no-mail %endif%
da lista está inativa.
%endif%
%ifreason closed%
porque os utilizadores não podem subscrever a esta lista por correio
eletrónico.
%endif%
%ifreason subbed%
porque você já subscreveu esta lista.
%endif%
%ifreason expired%
porque o administrador da lista levou muito tempo a responder ao seu
pedido.
%endif%
%ifreason obstruct%
porque o administrador da lista bloqueou a sua subscrição.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Não foi possível cancelar a sua subscrição da lista
%ifreason unsubbed%
porque você não faz parte da lista.
%^%%wrap%Se você está a receber muitas mensagens, é possível que já
tenha subscrito à lista com outro endereço eletrónico. Para descobrir
com que endereço subscreveu, consulte a mensagem de boas vindas da lista
ou procure no cabeçalho "Return-Path" de uma mensagem que tenha
recebido.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Você não consegue publicar a mensagem na lista
%endif%
%ifaction reject%
Você não consegue rejeitar a mensagem da lista
%endif%
%ifreason notfound%
porque ela não foi encontrada. É possível que outro moderador já a tenha
publicado, rejeitado ou que tenha expirado.
%endif%
%ifreason moderators%
porque você não é um moderador da lista.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Você não consegue aceitar o pedido de subscrição
%endif%
%ifaction obstruct%
Você não consegue cancelar o pedido de subscrição
%endif%
%ifreason notfound%
porque ele não foi encontrado. É possível que outro administrador da
lista já o tenha aceite, rejeitado ou que tenha expirado.
%endif%
%ifreason gatekeepers%
porque você não é um administrador desta lista.
%endif%
%endif%
mlmmj/listtexts/pt/deny-post 0000664 0000000 0000000 00000003531 15023031135 0016520 0 ustar 00root root 0000000 0000000 Subject: Mensagem para $list$@$domain$ recusada: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%A mensagem de <$posteraddr$> com o assunto "$subject$" não foi
entregue na lista
%ifreason maxmailsize%
porque excedia o tamanho máximo permitido de $maxmailsize$ bytes.
%endif%
%ifreason tocc%
porque o endereço da lista não foi encontrado no cabeçalho Para: ou CC:.
%endif%
%ifreason access%
porque causa de uma regra criada por um administrador.
%endif%
%ifreason expired%
porque já passou muito tempo sem que um moderador a publicasse.
%endif%
%ifreason reject%
porque um moderador a rejeitou.
%endif%
%ifreason subonlypost%
porque você não faz parte da lista.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Se pretender subscrever a lista, tem que contactar um
administrador. Envie uma mensagem para <$list+$owner@$domain$> para
contactar o administrador.
%endif%
%^%%wrap%Se você acha que já subscreveu à lista, é possível que tenha
indicado um endereço eletrónico diferente. Para descobrir com que endereço
subscreveu, consulte a mensagem de boas vindas da lista ou procure no
cabeçalho "Return-Path" de uma mensagem que tenha recebido.
%endif%
%ifreason maxmailsize%
%^%(O início da mensagem recusada está em baixo.)
%else%
%^%(A mensagem recusada está em baixo.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/pt/digest 0000664 0000000 0000000 00000000223 15023031135 0016050 0 ustar 00root root 0000000 0000000 Subject: Resumo de $list$@$domain$ assunto $digestissue$ ($digestinterval$)
Tópicos (mensagens $digestfirst$ a $digestlast$):
- %digestthreads%
mlmmj/listtexts/pt/faq 0000664 0000000 0000000 00000000144 15023031135 0015342 0 ustar 00root root 0000000 0000000 Subject: Perguntas frequentes de $list$@$domain$
Desculpe, mas não existem perguntas frequentes.
mlmmj/listtexts/pt/finish 0000664 0000000 0000000 00000002471 15023031135 0016060 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Cancelamento da subscrição em $list$@$domain$%endif%
%ifaction release reject%Subject: Moderação em $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Rejeição em $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Publicação em $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Agradecemos a confirmação do cancelamento da subscrição.
%endif%
%ifreason admin%
Um administrador removeu-o da lista.
%else%
Você foi removido da lista.
%endif%
%endif%
%ifaction release%
%^%%wrap%Você publicou a mensagem de <$posteraddr$> com o assunto
"$subject$".
%endif%
%ifaction reject%
%^%%wrap%Você rejeitou a mensagem de <$posteraddr$> com o assunto
"$subject$".
%endif%
%ifaction permit%
%^%%wrap%Você permitiu que <$subaddr$> fosse integrado na lista.
%endif%
%ifaction obstruct%
%^%%wrap%Você não permitiu que <$subaddr$> fosse integrado na lista.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Agradecemos a confirmação da
%endif%
%ifreason release%
O moderador publicou a
%endif%
%ifreason request%
Agradecemos a
%endif%
sua mensagem com o assunto "$subject$". Está, neste momento, a ser
publicada na lista.
%endif%
mlmmj/listtexts/pt/finish-sub 0000664 0000000 0000000 00000002436 15023031135 0016650 0 ustar 00root root 0000000 0000000 Subject: Bem vindo a $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Agradecemos o seu pedido de integração na lista.
%endif%
%ifreason confirm%
Agradecemos a confirmação da subscrição.
%endif%
%ifreason permit%
Um administrador permitiu a sua integração na lista.
%endif%
%ifreason switch%
A sua subscrição foi alterada para a versão
%else%
%ifreason admin%
Um administrador permitiu a sua subscrição na versão
%else%
Você foi adicionado(a) à versão
%endif%
%endif%
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% no-mail %endif%
da lista.
%wrap%O endereço eletrónico da sua subscrição na lista é <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Caso pretenda cancelar a subscrição, tem que contactar um
administrador da lista. Para o efeito, basta enviar uma mensagem
eletrónica para <$list+$owner@$domain$>.
%else%
%^%%wrap%Caso pretenda cancelar a subscrição, envie uma mensagem
eletrónica para <$list+$unsubscribe@$domain$>, utilizando este endereço
eletrónico. O assunto e o texto da mensagem pode estar vazio.
Posteriormente, receberá uma mensagem com as informações a seguir.
%endif%
%wrap%Para mais informações sobre a lista, envie uma mensagem eletrónica
para <$list+$help@$domain$>.
mlmmj/listtexts/pt/gatekeep-sub 0000664 0000000 0000000 00000001147 15023031135 0017153 0 ustar 00root root 0000000 0000000 Subject: Pedido de subscrição em $list$@$domain$: $subaddr$
%text prologue%
%wrap%Foi solicitado um pedido de <$subaddr$> para receber a versão
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% no-mail %endif%
da lista.
%wrap%Para confirmar a operação, envie uma mensagem para <$permitaddr$>
bastando, para o efeito, responder a esta mensagem. O assunto e o texto da
mensagem pode estar vazio.
%wrap%Se não pretende confirmar a operação, envie uma mensagem para
<$obstructaddr$> ou ignore esta mensagem.
Os seguintes administradores receberam a mensagem:
- %gatekeepers%
mlmmj/listtexts/pt/help 0000664 0000000 0000000 00000005753 15023031135 0015536 0 ustar 00root root 0000000 0000000 Subject: Informações de $list$@$domain$
%text prologue%
Abaixo são exibidas algumas informações sobre a lista.
Pode subscrever às seguintes versões da lista:
- %wrap%Versão normal: cada vez que uma mensagem seja enviada para a lista,
os subscritores recebem uma cópia.
%ifcontrol closedlist closedlistsub%
Subscrever enviando uma mensagem para o administrador da lista.
%else%
Subscrever enviando uma mensagem para <$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Versão resumida: os subscritores recebem diversas mensagens
numa única mensagem, em intervalos periódicos, ou quando se acumularem um
deteminado conjunto de mensagens.
%ifcontrol closedlist closedlistsub%
Subscrever enviando uma mensagem para o administrador da lista.
%else%
Subscrever enviando uma mensagem para
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Versão no-mail: os subscritores não recebem quaisquer
mensagens, mas são considerado como membros da lista. Isto significa que,
por exemplo, você pode enviar mensagens para a lista na qual só os
subscritores podem enviar, enquanto segue as mensagens através de um
arquivo web ou através de outro endereço eletrónico.
%ifcontrol closedlist closedlistsub%
Subscrever enviando uma mensagem para o administrador da lista.
%else%
Subscrever enviando uma mensagem para
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%A lista tem administradores que fazem a revisão dos pedidos de
subscrição antes de permitir a entrada a novos membros.
%endif%
%ifcontrol closedlist%
%^%%wrap%Cancele a subscrição contactando o admnistrador da lista.
%else%
%^%%wrap%Cancele a subscrição enviando uma mensagem para
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%As mensagens são colocadas através de <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%No entanto, só subscritores podem enviar mensagens para a lista.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%A lista tem moderadores que fazem a revisão das mensagens dos
subscritores antes de as publicarem na lista.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%A lista tem moderadores que fazem a revisão das mensagens dos
não subscritores antes de as publicarem na lista.
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%A lista também tem regras que podem afetar o envio e moderação
das mensagens.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Todos
%else%
Os subscritores
%endif%
podem obter a mensagem número X da lista, enviando uma mensagem para
<$list+$get-N@$domain$> (altere o X para o número da mensagem que
pretende).
%endif%%endif%
%wrap%Você pode aceder às perguntas frequentes da lista enviando uma
mensagem para <$list+$faq@$domain$>.
%wrap%Para contactar o proprietário da lista, envie uma mensagem para
<$list+$owner@$domain$>.
mlmmj/listtexts/pt/list 0000664 0000000 0000000 00000000653 15023031135 0015553 0 ustar 00root root 0000000 0000000 Subject: Subscritores de $list$@$domain$
%text prologue%
%wrap%Esta é lista de subscritores
%iftype all%
de todas as versões da lista:
%else%
da versão
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% no-mail %endif%
da lista:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/pt/moderate-post 0000664 0000000 0000000 00000002726 15023031135 0017366 0 ustar 00root root 0000000 0000000 Subject: Moderação em $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%A mensagem de <$posteraddr$> com o assunto "$subject$" foi enviada
para publicação. Esta mensagem requer moderação
%ifreason modnonsubposts%
porque o remetente não é um subscritor.
%endif%
%ifreason moderated%
porque esta é uma lista moderada.
%endif%
%ifreason access%
em virtude de uma regra.
%endif%
Mensagem segue em baixo.
%wrap%Para a publicar na lista, envie uma mensagem para <$releaseaddr$>
bastando, para o efeito, responder a esta mensagem.
%ifcontrol subonrelease%
%^%%wrap%Se quiser, pode publicar a mensagem e simultaneamente adicionar o
remetente à lista, enviando uma mensagem para um dos seguintes endereços
eletrónicos:%nowrap%
%^%- %wrap%Normal version: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Digest version: <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%No-mail version: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Se não o quiser fazer, envie uma mensagem para <$rejectaddr$> ou
ignore esta mensagem.
Os seguintes moderadores receberam esta mensagem:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/pt/notify 0000664 0000000 0000000 00000002115 15023031135 0016103 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Subscrição em $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Cancelamento da subscrição em $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%O endereço <$subaddr$> foi adicionado à versão
%iftype normal% normal %endif%
%iftype digest% resumida %endif%
%iftype nomail% no-mail %endif%
da lista
%ifreason request%
porque foi recebido o pedido de subscrição.
%endif%
%ifreason confirm%
porque o pedido de subscrição foi aceite.
%endif%
%ifreason admin%
porque o administrador assim o decidiu.
%endif%
%ifreason permit%
porque o administrador o permitiu.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%O endereço <$subaddr$> foi removido da lista
%ifreason request%
porque foi recebido o pedido de cancelamento de subscrição.
%endif%
%ifreason confirm%
porque o pedido de cancelamento de subscrição foi aceite.
%endif%
%ifreason admin%
porque o administrador assim o decidiu.
%endif%
%ifreason bouncing%
porque o administrador o permitiu.
%endif%
%endif%
mlmmj/listtexts/pt/probe 0000664 0000000 0000000 00000000414 15023031135 0015702 0 ustar 00root root 0000000 0000000 Subject: Mensagens pendentes de $list$@$domain$
%text prologue%
Algumas mensagens não foram entregues. Se recebeu esta mensagem, os
problemas já foram resolvidos e esta mensagem é meramente informativa.
Esta é a lista de mensagens pendentes:
- %bouncenumbers%
mlmmj/listtexts/pt/prologue 0000664 0000000 0000000 00000000141 15023031135 0016424 0 ustar 00root root 0000000 0000000 %wrap%Este é o Mlmmj, a aplicação que faz a gestão das mensagens da lista
<$list$@$domain$>.
mlmmj/listtexts/pt/subrelease 0000664 0000000 0000000 00000001654 15023031135 0016734 0 ustar 00root root 0000000 0000000 %^%%wrap%No entanto, esta é uma lista aberta. Se quiser, pode subscrever a
lista e simultaneamente publicar a mensagem, enviando uma mensagem para
<$listsubreleaseaddr$> bastando, para o efeito, responder a esta mensagem. O
assunto e o texto podem ser qualquer coisa.
%ifncontrol nodigestsub%
%^%%wrap%Pode também subscrever à versão resumida da lista e publicar a
mensagem, enviando uma mensagem para <$digestsubreleaseaddr$> e passará a
receber diversas mensagens numa única mensagem, em intervalos periódicos,
ou quando se acumularem um determinado conjunto de mensagens.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Pode também subscrever à versão no-mail da lista e publicar a
mensagem, enviando uma mensagem para <$nomailsubreleaseaddr$>. Isto
significa que você não receberá quaisquer mensagens, enquanto segue as
mensagens através de um arquivo web ou através de outro endereço
eletrónico.
%endif%
mlmmj/listtexts/pt/wait-post 0000664 0000000 0000000 00000001724 15023031135 0016527 0 ustar 00root root 0000000 0000000 Subject: Mensagem à espera de publicação em $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%A mensagem de <$posteraddr$> com o assunto "$subject$" foi enviada
para a lista. Contudo, os moderadores ainda não a publicaram pois está em
lista de espera para revisão
%ifreason moderated%
porque esta é uma lista moderada.
%endif%
%ifreason access%
em virtude de uma regra.
%endif%
%ifreason modnonsubposts%
porque você não é um subscritor.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Mensagem segue em baixo.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/pt/wait-sub 0000664 0000000 0000000 00000000356 15023031135 0016333 0 ustar 00root root 0000000 0000000 Subject: A aguardar a permissão para integrar $list$@$domain$
%text prologue%
%wrap%O seu pedido para integrar a lista foi recebido. No entanto, os
administradores ainda teem que rever a mensagem antes de permitir a sua
integração.
mlmmj/listtexts/sk/ 0000775 0000000 0000000 00000000000 15023031135 0014643 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/sk/confirm 0000664 0000000 0000000 00000003222 15023031135 0016222 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Potvrdenie prihlásenia do $list$@$domain$%endif%
%ifaction unsub%Subject: Potvrdenie odhlásenia z $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
Administrátor
%endif%
%ifreason request%
Niekto (veríme, že Vy)
%endif%
požiadal, aby Vaša emailová adresa <$subaddr$> bola pridaná
%iftype normal%
do mailovej diskusie. To znamená, že zakaždým, keď do diskusie bude
poslaná správa, dostanete jej kópiu.
%endif%
%iftype digest%
do mailovej diskusie, aby ste prijímali súhrnné správy. To znamená, že
budete dostávať viacero správ naraz v pravidelných intervaloch, alebo
keď sa zozbiera dostatočný počet správ.
%endif%
%iftype nomail%
do mailovej diskusie, bez posielania mailov. To znamená, že mailom
nebudete dostávať žiadne správy, ale budete považovaný/považovaná za
člena. Budete teda mať pávo posielať správy do diskusie, určenej len pre
členov, pričom zaslané správy budete môcť čítať v archíve diskusie alebo
na inej mailovej adrese.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
Administrátor
%endif%
%ifreason request%
Niekto (veríme, že Vy)
%endif%
požiadal, aby Vaša emailová adresa <$subaddr$> bola odstránená z mailovej
diskusie.
%endif%
%wrap%Tento úmysel môžete potvrdiť poslaním správy na <$confirmaddr$>, čo
jednoducho spravíte odpoveďou na tento mail. Na predmete a obsahu správy
nezáleží.
Následne dostanete správu s informáciou o úspešnom vykonaní operácie.
Ak sa odhlásiť nechcete, túto správu ignorujte.
mlmmj/listtexts/sk/deny 0000664 0000000 0000000 00000004474 15023031135 0015536 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Neúspešné prihlásenie do $list$@$domain$%endif%
%ifaction unsub%Subject: Neúspešné odhlásenie z $list$@$domain$%endif%
%ifaction release reject%Subject: Neúspešné moderovanie $list$@$domain$%endif%
%ifaction permit obstruct%Subject: Neúspešné spravovanie $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Vaše prihlásenie bolo neúspešné, lebo
%ifreason disabled%
%iftype normal% normálna verzia diskusie %endif%
%iftype digest% diskusia s prijímaním súhrnných správ %endif%
%iftype nomail% diskusia bez posielania správ %endif%
je vypnutá.
%endif%
%ifreason closed%
prihlasovanie mailom nie je povolené.
%endif%
%ifreason subbed%
ste už prihlásený/prihlásená.
%endif%
%ifreason expired%
uplynulo príliš veľa času bez toho, aby ho správca povolil.
%endif%
%ifreason obstruct%
lebo ho správca nepovolil.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Vaše odhlásenie z mailovej diskusie bolo neúspešné,
%ifreason unsubbed%
lebo nie ste prihlásený/prihlásená.
%^%%wrap%Tento mail ste dostali preto, lebo ste možno
prihlásený/prihlásená s inou adresou. Vašu prihlasovaciu adresu nájdete
v privítacej správe, ktorú ste z tejto diskusie dostali, alebo sa
pozrite do hlavičky správ, ktoré z tejto diskusie dostávate.
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
Vaše povolenie správy na zverejnenie nebolo úspešné
%endif%
%ifaction reject%
Vaše odmietnutie správy na zverejnenie nebolo úspešné
%endif%
%ifreason notfound%
lebo sa ju nepodarilo nájsť. Iný moderátor ju už asi povolil alebo
odmietol, alebo expirovala.
%endif%
%ifreason moderators%
lebo nie ste moderátorom tejto diskusie.
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
Vami zaslané povolenie požiadavky na prihlásenie do mailovej diskusie
zlyhalo,
%endif%
%ifaction obstruct%
Vami zaslané odmietnutie požiadavky na prihlásenie do mailovej diskusie
zlyhalo,
%endif%
%ifreason notfound%
lebo sa ju nepodarilo nájsť. Iný správca ju už asi povolil alebo
odmietol, alebo expirovala.
%endif%
%ifreason gatekeepers%
lebo nie ste správcom tejto diskusie.
%endif%
%endif%
mlmmj/listtexts/sk/deny-post 0000664 0000000 0000000 00000003531 15023031135 0016512 0 ustar 00root root 0000000 0000000 Subject: Odmietnutie príspevku $subject$ do $list$@$domain$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Správu od <$posteraddr$> s predmetom "$subject$" nebolo možné doručiť
do mailovej diskusie
%ifreason maxmailsize%
lebo prekročila maximálnu veľkosť $maxmailsize$ bytov.
%endif%
%ifreason tocc%
lebo adresa diskusie nebola v poliach hlavičky Komu: ani Kópia: nájdená.
%endif%
%ifreason access%
z dôvodu administrátorom nastavených prístupových pravidiel.
%endif%
%ifreason expired %
lebo uplynula príliš dlhá doba bez toho, aby ju povolil moderátor.
%endif%
%ifreason reject%
lebo ju moderátor nepovolil.
%endif%
%ifreason subonlypost%
lebo nie ste abonentom diskusie.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Ak sa chcete stať abonentom, kontaktujte administrátora
diskusie tak, že pošlete mail na <$list+$owner@$domain$>.
%endif%
%^%%wrap%Ak si myslíte, že ste abonentom diskusie, tak ste zrejme
prihlásený/prihlásená s inou mailovou adresou. Vašu prihlasovaciu adresu
nájdete v privítacej správe, ktorú ste z tejto diskusie dostali, alebo sa
pozrite do hlavičky správ, ktoré z tejto diskusie dostávate.
%endif%
%ifreason maxmailsize%
%^%(Úvod odmietnutej správy je uvedený nižšie.)
%else%
%^%(Odmietnutá správa je uvedená nižšie.)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/sk/digest 0000664 0000000 0000000 00000000237 15023031135 0016047 0 ustar 00root root 0000000 0000000 Subject: Súhrn mailovej diskusie $list$@$domain$ vydanie $digestissue$ ($digestinterval$)
Témy (správy $digestfirst$ až $digestlast$):
- %digestthreads%
mlmmj/listtexts/sk/faq 0000664 0000000 0000000 00000000152 15023031135 0015333 0 ustar 00root root 0000000 0000000 Subject: Často kladené otázky k mailovej diskusii $list$@$domain$
Ľutujeme, FAQ zatiaľ neexistuje.
mlmmj/listtexts/sk/finish 0000664 0000000 0000000 00000002601 15023031135 0016045 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: Dovidenia z $list$@$domain$%endif%
%ifaction release reject%Subject: Moderovanie $list$@$domain$: $subject$%endif%
%ifaction permit obstruct%Subject: Odmietnutie $list$@$domain$: $subaddr$%endif%
%ifaction post%Subject: Zverejnenie v $list$@$domain$: $subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
Ďakujeme za potvrdenie požiadavky na odhlásenie.
%endif%
%ifreason admin%
Administrátor Vás odhlásil z mailovej diskusie.
%else%
Boli ste odhlásený/odhlásená z mailovej diskusie.
%endif%
%endif%
%ifaction release%
%^%%wrap%Správu "$subject$" na zverejnenie v diskusii od <$posteraddr$>
ste úspešne povolili.
%endif%
%ifaction reject%
%^%%wrap%Správu "$subject$" na zverejnenie v diskusii od <$posteraddr$>
ste úspešne odmietli.
%endif%
%ifaction permit%
%^%%wrap%Úspešne ste povolili prihlásenie <$subaddr$> do diskusie.
%endif%
%ifaction obstruct%
%^%%wrap%Úspešne ste zakázali prihlásenie <$subaddr$> do diskusie.
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
Ďakujeme za potvrdenie Vášho príspevku
%endif%
%ifreason release%
Moderátor uvoľnil na zverejnenie príspevok
%endif%
%ifreason request%
Ďakujeme za príspevok
%endif%
s predmetom "$subject$". Príspevok bude odoslaný do mailovej diskusie.
%endif%
mlmmj/listtexts/sk/finish-sub 0000664 0000000 0000000 00000003012 15023031135 0016631 0 ustar 00root root 0000000 0000000 Subject: Vitajte v $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
Ďakujeme Vám za záujem o spoluprácu.
%endif%
%ifreason confirm%
Ďakujeme Vám za potvrdenie prihlásenia.
%endif%
%ifreason permit%
Správca odsúhlasil Vašu žiadosť o zapojenie do mailovej diskusie.
%endif%
%ifreason switch%
Typ Vášho prihlásenia bol zmenený na
%iftype normal% štandardnú verziu mailovej diskusie.%endif%
%iftype digest% mailovú diskusiu s prijímaním súhrnných správ.%endif%
%iftype nomail% mailovú diskusiu bez posielania správ.%endif%
%else%
%ifreason admin%
Administrátor Vás prihlásil do
%else%
Boli ste pridaný/pridaná do
%endif%
%iftype normal% štandardnej verzie mailovej diskusie.%endif%
%iftype digest% mailovej diskusie s prijímaním súhrnných správ.%endif%
%iftype nomail% mailovej diskusie bez posielania správ.%endif%
%endif%
%wrap%Ste prihlásený/prihlásená s mailovou adresou <$subaddr$>.
%ifcontrol closedlist%
%^%%wrap%Ak sa v budúcnosti budete chcieť odhlásiť, bude potrebné
kontaktovať administrátora. Zaslaním mailu na adresu
<$list+$owner@$domain$> sa skontaktujete so správcom tejto diskusie.
%else%
%^%%wrap%Ak sa v budúcnosti budete chcieť odhlásiť, pošlite mail na adresu
<$list+$unsubscribe@$domain$>. Na predmete a obsahu správy nezáleží.
Následne dostanete potvrdenie s ďalšími inštrukciami.
%endif%
%wrap%Pre ďalšie informácie a pomoc s touto mailovou diskusiou napíšte na
adresu <$list+$help@$domain$>.
mlmmj/listtexts/sk/gatekeep-sub 0000664 0000000 0000000 00000001215 15023031135 0017141 0 ustar 00root root 0000000 0000000 Subject: Požiadavka na prihlásenie do $list$@$domain$: $subaddr$
%text prologue%
%wrap%Z adresy <$subaddr$> prišla prihláška do
%iftype normal% normálnej verzie mailovej diskusie.%endif%
%iftype digest% mailovej diskusie so zasielaním súhrnných správ.%endif%
%iftype nomail% mailovej diskusie bez zasielania správ.%endif%
%wrap%Ak chcete prihlášku povoliť, pošlite správu na adresu <$permitaddr$>.
Spravíte tak odoslaním odpovede na tento mail.
%wrap%%Ak nechcete prihlášku povoliť, pošlite správu na adresu
<$obstructaddr$> alebo túto správu ignorujte.
Túto správu dostali nasledujúci administrátori:
- %gatekeepers%
mlmmj/listtexts/sk/help 0000664 0000000 0000000 00000006274 15023031135 0015527 0 ustar 00root root 0000000 0000000 Subject: Informácie o $list$@$domain$
%text prologue%
Informácie o používaní mailovej diskusie.
Prihlásiť sa môžete do nasledujúcich verzií:
- %wrap%Normálna verzia: Zakaždým, keď sa do diskusie pošle príspevok,
abonenti dostanú jeho kópiu v samostatnej mailovej správe.
%ifcontrol closedlist closedlistsub%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu
administrátorovi.
%else%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu na
<$list+$subscribe@$domain$>.
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%Verzia s prijímaním súhrnných správ (digest): Abonenti
dostávajú viaceré príspevky naraz v jednej mailovej správe buď v
pravidelných intervaloch, alebo keď sa zozbiera dostatočný počet správ.
%ifcontrol closedlist closedlistsub%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu
administrátorovi.
%else%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu na
<$list+$subscribe-digest@$domain$>.
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%Verzia bez posielania mailových správ: Abonenti nedostávajú
mailom žiadne správy. To znamená, že do diskusie môžu posielať príspevky
tak, ako ostatní abonenti, pričom príspevky diskusie sledujú v archíve
diskusie alebo na inej mailovej adrese, ktorou sú do diskusie už
prihlásení.
%ifcontrol closedlist closedlistsub%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu
administrátorovi.
%else%
Do tejto verzie diskusie sa možno prihlásiť poslaním mailu na
<$list+$subscribe-nomail@$domain$>.
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%Diskusia má administrátorov, ktorí každú žiadosť o pripojenie
musia odsúhlasiť.
%endif%
%ifcontrol closedlist%
%^%%wrap%Z diskusie sa možno ohlásiť poslaním mailu administrátorovi.
%else%
%^%%wrap%Z diskusie sa možno ohlásiť poslaním mailu na
<$list+$unsubscribe@$domain$>.
%endif%
%wrap%Príspevky sa posielajú na adresu <$list$@$domain$>.
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%Príspevky do diskusie môžu posielať len jej abonenti.
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%Diskusia je moderovaná. To znamená, že každý príspevok je pred
jeho zverejnením preverený moderátorom.
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%Diskusia má moderátorov, ktorí pred jeho zverejnením preveria
každý príspevok od neprihláseného odosielateľa
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%Mailová diskusia má definované prístupové pravidlá, ktoré určujú,
kto môže zasielať príspevky a ktoré príspevky sú moderované.
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
Ktokoľvek si môže
%else%
Abonenti si môžu
%endif%
vyžiadať zaslanie správy N z archívu konferencie zaslaním mailu na
<$list+$get-N@$domain$> (N treba zmeniť na číslo správy).
%endif%%endif%
%wrap%Odpovede na často kladené otázky (FAQ) si môžete vyžiadať zaslaním
mailu na <$list+$faq@$domain$>.
%wrap%Správcu mailovej diskusie môžete kontaktovať na adrese
<$list+$owner@$domain$>.
mlmmj/listtexts/sk/list 0000664 0000000 0000000 00000000767 15023031135 0015553 0 ustar 00root root 0000000 0000000 Subject: Zoznam abonentov $list$@$domain$
%text prologue%
%wrap%Zoznam abonentov
%iftype all%
(všetkých verzií mailovej diskusie):
%else%
%iftype normal% normálnej verzie mailovej diskusie:%endif%
%iftype digest% mailovej diskusie so zasielaním súhrnných správ:%endif%
%iftype nomail% mailovej diskusie bez zasielania správ:%endif%
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/sk/moderate-post 0000664 0000000 0000000 00000003136 15023031135 0017354 0 ustar 00root root 0000000 0000000 Subject: Prosba o moderovanie $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Od <$posteraddr$> bola na zverejnenie doručená správa s predmetom
"$subject$". Žiadame Vás o jej preverenie,
%ifreason modnonsubposts%
lebo jej odosielateľ nie je abonentom diskusie.
%endif%
%ifreason moderated%
lebo táto mailová diskusia je moderovaná.
%endif%
%ifreason access%
lebo to vyžaduje nastavenie prístupových pravidiel.
%endif%
Správa je pripojená nižšie.
%wrap%Ak chcete povoliť zverejnenie správy, pošlite mail na adresu
<$releaseaddr$>, čo možno spraviť odpovedaním na tento mail.
%ifcontrol subonrelease%
%^%%wrap%Ak chcete, môžete súčasne so zverejnením správy jej odosielateľa
prihlásiť do diskusie. Spravíte to tak, že pošlete mail na jednu z
nasledujúcich adries:%nowrap%
%^%- %wrap%Normálna verzia: <$listsubreleaseaddr$>%nowrap%
%^%- %wrap%Súhrnné správy (digest): <$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%Verzia bez zasielania mailov: <$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%Ak nechcete vykonať žiadnu z týchto akcií, pošlite mail na
<$rejectaddr$> alebo jednoducho túto správu ignorujte.
Túto správu dostali nasledujúci moderátori:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/sk/notify 0000664 0000000 0000000 00000002227 15023031135 0016101 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: Prihlásenie do $list$@$domain$: $subaddr$%endif%
%ifaction unsub%Subject: Odhlásenie z $list$@$domain$: $subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%Adresa <$subaddr$> bola zaradená do zoznamu abonentov
%iftype normal% normálnej verzie mailovej diskusie, %endif%
%iftype digest% mailovej diskusie s prijímaním súhrnných správ (digest) %endif%
%iftype nomail% mailovej diskusie bez zasielania správ, %endif%
%ifreason request%
lebo sme obdržali požiadavku na prihlásenie.
%endif%
%ifreason confirm%
lebo požiadavka na prihlásenie bola odsúhlasená.
%endif%
%ifreason admin%
lebo tak rozhodol administrátor.
%endif%
%ifreason permit%
lebo tak rozhodol správca.
%endif%
%endif%
%ifaction unsub%
%^%%wrap%Adresa <$subaddr$> bola vyradená do zoznamu abonentov
%ifreason request%
lebo sme obdržali požiadavku na odhlásenie.
%endif%
%ifreason confirm%
lebo požiadavka na prihlásenie bola potvrdená.
%endif%
%ifreason admin%
lebo tak rozhodol administrátor.
%endif%
%ifreason bouncing%
lebo jej overovanie trvalo príliš dlho.
%endif%
%endif%
mlmmj/listtexts/sk/probe 0000664 0000000 0000000 00000000436 15023031135 0015700 0 ustar 00root root 0000000 0000000 Subject: Nedoručené správy z $list$@$domain$
%text prologue%
Nepodarilo sa Vám doručiť viaceré správy. Ak čítate tento mail, tak situácia
sa už vrátila do normálneho stavu a jeho obsah slúži len pre Vašu
informáciu.
Zoznam nedoručených správ:
- %bouncenumbers%
mlmmj/listtexts/sk/prologue 0000664 0000000 0000000 00000000130 15023031135 0016414 0 ustar 00root root 0000000 0000000 %wrap%Ahoj, toto je program Mlmmj, ktorý spravuje mailovú diskusiu
<$list$@$domain$>.
mlmmj/listtexts/sk/subrelease 0000664 0000000 0000000 00000002120 15023031135 0016713 0 ustar 00root root 0000000 0000000 %^%%wrap%Toto je však otvorená mailová diskusia. Ak chcete, môžete sa
súčasne prihlásiť a zverejniť svoj príspevok zaslaním mailu na
<$listsubreleaseaddr$>, čo sa obvykle jednoducho dá spraviť odpoveďou na
túto správu. Na predmete a obsahu správy nezáleží.
%ifncontrol nodigestsub%
%^%%wrap%Alebo, zaslaním svojho príspevku na adresu
<$digestsubreleaseaddr$> sa súčasne s jeho zverejnením prihlásite na
prijímanie súhrnných správ. Následne budete dostávať viaceré príspevky
naraz v jednej mailovej správe buď v pravidelných intervaloch, alebo keď
sa zozbiera dostatočný počet správ.
%endif%
%ifncontrol nonomailsub%
%^%%wrap%Alebo, zaslaním svojho príspevku na adresu
<$nomailsubreleaseaddr$> sa súčasne s jeho zverejnením prihlásite v režime
bez budúceho prijímania správ. To znamená, že do diskusie budete môcť
posielať príspevky tak, ako ostatní abonenti, pričom príspevky diskusie
môžte sledovať v archíve diskusie alebo na inej mailovej adrese, ktorou
ste do diskusie už prihlásená/prihlásený.
%endif%
mlmmj/listtexts/sk/wait-post 0000664 0000000 0000000 00000001717 15023031135 0016523 0 ustar 00root root 0000000 0000000 Subject: čaká sa na zverejnenie do $list$@$domain$: $subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%Z adresy <$posteraddr$> bola do mailovej diskusie zaslaná správa s
predmetom "$subject$". Pred jej zverejnením boli moderátori požiadaní o jej
odsúhlasenie, lebo
%ifreason moderated%
ide o moderovanú mailovú diskusiu.
%endif%
%ifreason access%
to vyžadujú prístupové pravidlá diskusie.
%endif%
%ifreason modnonsubposts%
nie ste jej abonentom.
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(Správa je pripojená.)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/sk/wait-sub 0000664 0000000 0000000 00000000374 15023031135 0016325 0 ustar 00root root 0000000 0000000 Subject: čaká sa na povolenie prístupu do $list$@$domain$
%text prologue%
%wrap%Vaša žiadosť na povolenie prístupu do mailovej diskusie bola prijatá.
Správcovia diskusie boli požiadaní o preverenie Vašej žiadosti pred jej
akceptáciou.
mlmmj/listtexts/zh-cn/ 0000775 0000000 0000000 00000000000 15023031135 0015245 5 ustar 00root root 0000000 0000000 mlmmj/listtexts/zh-cn/confirm 0000664 0000000 0000000 00000002726 15023031135 0016634 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: 确认订阅 $list$@$domain$%endif%
%ifaction unsub%Subject: 确认取消订阅 $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason admin%
一位管理员
%endif%
%ifreason request%
有人(\=但愿是您\=)
%endif%
请求将您的电子邮箱地址 <$subaddr$> 添加到
%iftype normal%
此列表\=。这意味着每当有人向该列表发邮件\=,您都会收到邮件的副本\=。
%endif%
%iftype digest%
此列表\=,收取讨论汇总\=。这意味着您将在单封邮件中收到多条消息\=,间隔
一定时间\=,或达到一定数量时发送\=。
%endif%
%iftype nomail%
此列表\=,但不收取邮件\=。这意味着您将不会接收到任何发往列表的邮件\=,
但仍保持成员身份\=。也就是说\=,例如\=,您可以在只有订阅者能发送消息的
列表中发言\=,但通过网页存档或其他电邮跟踪进展\=。
%endif%
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason admin%
一位管理员
%endif%
%ifreason request%
有人(\=但愿是您\=)
%endif%
请求将您的电子邮箱地址 <$subaddr$> 从列表移除\=。
%endif%
%wrap%要确认是您的请求\=,请发邮件到 <$confirmaddr$> (\=通常可直接回复本邮
件\=)\=。邮件主题与正文任意\=。
完成后\=,您应该会收到确认操作成功的回复\=。
如果您不打算取消订阅\=,可直接忽略本邮件\=。
mlmmj/listtexts/zh-cn/deny 0000664 0000000 0000000 00000004006 15023031135 0016127 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: 无法订阅 $list$@$domain$%endif%
%ifaction unsub%Subject: 无法退订 $list$@$domain$%endif%
%ifaction release reject%Subject: 无法管理 $list$@$domain$%endif%
%ifaction permit obstruct%Subject: 无法看管 $list$@$domain$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason disabled%
由于本列表的
%iftype normal%常规%endif%
%iftype digest%汇总%endif%
%iftype nomail%无邮件%endif%
版本已经关闭\=,
%endif%
%ifreason closed%
由于本列表不允许通过邮件订阅\=,
%endif%
%ifreason subbed%
由于您已经订阅\=,
%endif%
%ifreason expired%
由于掌门人过久没有通过您的加入请求\=,
%endif%
%ifreason obstruct%
由于掌门人否决了您的加入请求\=,
%endif%
您无法订阅本列表\=。
%endif%
%ifaction unsub%
%^%%wrap%
您无法从本列表退订\=,
%ifreason unsubbed%
因为您尚未订阅本列表\=。
%^%%wrap%如果您仍然收到邮件\=,可能通过其他邮箱地址订阅了\=。要查明您订
阅的地址\=,请参考欢迎您加入列表的邮件\=,或查看您收到的列表邮件的
"Return-Path“\/头\=。
%endif%
%endif%
%ifaction release reject%
%^%%wrap%
%ifaction release%
您无法将指定帖子通过到列表
%endif%
%ifaction reject%
您无法否决指定帖子
%endif%
%ifreason notfound%
因为找不到该帖子\=。可能其他版主已经通过或否决\=,也可能已经过期\=。
%endif%
%ifreason moderators%
因为您不是本列表的版主\=。
%endif%
%endif%
%ifaction permit obstruct%
%^%%wrap%
%ifaction permit%
您无法批准指定的订阅请求
%endif%
%ifaction obstruct%
您无法否决指定的订阅请求
%endif%
%ifreason notfound%
因为找不到该请求\=。可能其他掌门人已经批准或否决\=,或者该请求已经过
期\=。
%endif%
%ifreason gatekeepers%
因为您不是本列表的掌门人\=。
%endif%
%endif%
mlmmj/listtexts/zh-cn/deny-post 0000664 0000000 0000000 00000003362 15023031135 0017116 0 ustar 00root root 0000000 0000000 Subject: 发往 $list$@$domain$ 的邮件被拒绝:$subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%来自 <$posteraddr$> 题为《\=$subject$\=》的邮件无法投递到列表\=,
%ifreason maxmailsize%
因为超出了所允许的最大邮件尺寸 $maxmailsize$ 字节\=。
%endif%
%ifreason tocc%
因为列表地址未出现在 To: 或 CC: 头部字段\=。
%endif%
%ifreason access%
因为管理员设置了权限规则\=。
%endif%
%ifreason expired%
因为过久没有版主通过\=。
%endif%
%ifreason reject%
因为有版主否决了该邮件\=。
%endif%
%ifreason subonlypost%
因为您不是列表订户\=。
%ifncontrol closedlist%%ifncontrol closedlistsub%
%text subrelease%
%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%如果您打算成为订户\=,需要联系列表管理员\=。您可以发送邮件
到 <$list+$owner@$domain$> 联系列表所有者\=。
%endif%
%^%%wrap%如果您确信自己是订户\=,可能通过不同的电子邮箱地址订阅了\=。要查
明您订阅的地址\=,请参考欢迎您加入列表的邮件\=,或查阅您所收到的列表邮件
的\/“Return-Path”\/头\=。
%endif%
%ifreason maxmailsize%
%^%(\=被回绝的邮件开头如下\=。\=)
%else%
%^%(\=被回绝的邮件如下\=。\=)
%endif%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%ifreason maxmailsize%
%^%%originalmail 300%
%else%
%^%%originalmail%
%endif%
--=_$random0$$random1$_=--
mlmmj/listtexts/zh-cn/digest 0000664 0000000 0000000 00000000277 15023031135 0016455 0 ustar 00root root 0000000 0000000 Subject: $list$@$domain$ 讨论汇总 第 $digestissue$ 期 (\=$digestinterval$\=)
%charwrap%%wide%
话题 (\=第 $digestfirst$ 至 $digestlast$ 封邮件\=)\=:
- %digestthreads%
mlmmj/listtexts/zh-cn/faq 0000664 0000000 0000000 00000000142 15023031135 0015734 0 ustar 00root root 0000000 0000000 Subject: $list$@$domain$ 的常见问题
%charwrap%%wide%
抱歉\=,尚无常见问题\=。
mlmmj/listtexts/zh-cn/finish 0000664 0000000 0000000 00000002401 15023031135 0016445 0 ustar 00root root 0000000 0000000 %ifaction unsub%Subject: $list$@$domain$ 的道别%endif%
%ifaction release reject%Subject: 已通过 $list$@$domain$:$subject$%endif%
%ifaction permit obstruct%Subject: 已处理 $list$@$domain$:$subaddr$%endif%
%ifaction post%Subject: 已发布到 $list$@$domain$:$subject$%endif%
%text prologue%
%ifaction unsub%
%^%%wrap%
%ifreason request%
%endif%
%ifreason confirm%
感谢确认您的退订\=。
%endif%
%ifreason admin%
一位版主已将您移出本列表\=。
%else%
您已经退出本列表\=。
%endif%
%endif%
%ifaction release%
%^%%wrap%您已成功通过 <$posteraddr$> 发布到本列表的题为《\=$subject$\=》
的邮件\=。
%endif%
%ifaction reject%
%^%%wrap%您已成功否决 <$posteraddr$> 发送的题为《\=$subject$\=》的邮
件\=。
%endif%
%ifaction permit%
%^%%wrap%您已成功批准 <$subaddr$> 加入本列表\=。
%endif%
%ifaction obstruct%
%^%%wrap%您已成功阻止 <$subaddr$> 加入本列表\=。
%endif%
%ifaction post%
%^%%wrap%
%ifreason confirm%
感谢您确认
%endif%
%ifreason release%
一位版主已经通过您
%endif%
%ifreason request%
感谢您发布
%endif%
题为《\=$subject$\=》的邮件\=。该邮件已分发到本列表\=。
%endif%
mlmmj/listtexts/zh-cn/finish-sub 0000664 0000000 0000000 00000002114 15023031135 0017235 0 ustar 00root root 0000000 0000000 Subject: 欢迎加入 $list$@$domain$
%text prologue%
%wrap%
%ifreason request%
感谢您申请加入我们\=。
%endif%
%ifreason confirm%
感谢您确认订阅\=。
%endif%
%ifreason permit%
一位掌门人已批准您的加入\=。
%endif%
%ifreason switch%
您的订阅已切换为
%else%
%ifreason admin%
一位管理员已将您加入本列表的
%else%
您已被加入本列表的
%endif%
%endif%
%iftype normal%常规%endif%
%iftype digest%汇总%endif%
%iftype nomail%无邮件%endif%
版本\=。
%wrap%您订阅所用的电子邮箱地址为 <$subaddr$>\=。
%ifcontrol closedlist%
%^%%wrap%如果您打算取消订阅\=,需要联系一位管理员\=。您可以发电子邮件
到 <$list+$owner@$domain$> 联系列表所有者\=。
%else%
%^%%wrap%如果您打算取消订阅\=,请使用本电子邮箱地址发邮件
到 <$list+$unsubscribe@$domain$>\=。邮件主题与正文任意\=。随后您将收到确
认或进一步说明\=。
%endif%
%wrap%要获取关于本列表的其他信息及帮助\=,请发邮件
到 <$list+$help@$domain$>。
mlmmj/listtexts/zh-cn/gatekeep-sub 0000664 0000000 0000000 00000001003 15023031135 0017536 0 ustar 00root root 0000000 0000000 Subject: 请求订阅 $list$@$domain$:$subaddr$
%text prologue%
%wrap%来自 <$subaddr$> 的地址请求订阅本列表的
%iftype normal%常规%endif%
%iftype digest%汇总%endif%
%iftype nomail%无邮件%endif%
版本\=。
%wrap%要批准该请求\=,请发送邮件到 <$permitaddr$> (\=通常可以通过直接回复
本邮件完成\=)\=。
%wrap%如果您不打算批准\=,请发送邮件到 <$obstructaddr$> 或直接忽略本邮
件\=。
下述掌门人已收到本邮件\=:
- %gatekeepers%
mlmmj/listtexts/zh-cn/help 0000664 0000000 0000000 00000004727 15023031135 0016132 0 ustar 00root root 0000000 0000000 Subject: $list$@$domain$ 信息
%text prologue%
以下是关于本列表的一些信息\=。
您可以订阅下述版本\=:
- %wrap%常规版本\=:每当有邮件发到列表\=,订户都将收到一份副本\=。
%ifcontrol closedlist closedlistsub%
请联系列表管理员订阅\=。
%else%
请发邮件到该地址订阅\=:<$list+$subscribe@$domain$>。
%endif%
%ifncontrol nodigestsub%
%^%- %wrap%汇总版本\=:订户定期或累积到一定数量时在单封邮件中收到多条帖
子\=。
%ifcontrol closedlist closedlistsub%
请联系列表管理员订阅\=。
%else%
请发邮件到该地址订阅\=:<$list+$subscribe-digest@$domain$>。
%endif%
%endif%
%ifncontrol nonomailsub%
%^%- %wrap%无邮件版本\=:订户不会收到发往列表的任何帖子\=。这意味着\=,尽
管他们能在只有订户能发帖的列表中发帖\=,但他们可以通过 web 存档或订阅该列
表的其他电子邮箱地址跟踪回应\=。
%ifcontrol closedlist closedlistsub%
请联系列表管理员订阅\=。
%else%
请发邮件到该地址订阅\=:<$list+$subscribe-nomail@$domain$>。
%endif%
%endif%
%ifcontrol submod%
%^%%wrap%列表掌门人会审阅订阅请求再批准新成员\=。
%endif%
%ifcontrol closedlist%
%^%%wrap%请联系列表管理员取消订阅\=。
%else%
%^%%wrap%请发邮件到该地址取消订阅\=:<$list+$unsubscribe@$domain$>。
%endif%
%^%%wrap%发帖请寄往 <$list$@$domain$>。
%ifcontrol subonlypost%%ifncontrol modnonsubposts%
%^%%wrap%然而\=,只有订户能在列表中发帖\=。
%endif%%endif%
%ifcontrol moderated%
%^%%wrap%本列表版主将审阅所有帖子\=,再通过到列表\=。
%else%
%ifcontrol subonlypost%%ifcontrol modnonsubposts%
%^%%wrap%本列表版主将审阅所有非订户的帖子\=,再通过到列表\=。
%endif%%endif%
%endif%
%ifcontrol access%
%^%%wrap%本列表还设有权限规则\=,可能影响用户能否发帖\=,以及哪些帖子需要
审核\=。
%endif%
%ifncontrol noget%%ifncontrol noarchive%
%^%%wrap%
%ifcontrol subonlyget%
任何人
%else%
订户
%endif%
可以通过发邮件到 <$list+$get-N@$domain$> (\=将 N 换成所需邮件的序号\=)
从列表存档提取邮件序号为 N 的邮件\=。
%endif%%endif%
%^%%wrap%您可以发邮件到 <$list+$faq@$domain$> 了解本列表的常见问题文档\=。
%^%%wrap%如需联系列表所有者\=,请发邮件到 <$list+$owner@$domain$>。
mlmmj/listtexts/zh-cn/list 0000664 0000000 0000000 00000000702 15023031135 0016142 0 ustar 00root root 0000000 0000000 Subject: $list$@$domain$ 的订阅者列表
%text prologue%
%wrap%以下为订阅者列表
%iftype all%
(\=本列表所有版本的订阅者\=)\=:
%else%
本列表
%iftype normal%常规%endif%
%iftype digest%汇总%endif%
%iftype nomail%无邮件%endif%
版本的订阅者\=:
%endif%
%iftype all normal%
%^%- %listsubs%
%endif%
%iftype all digest%
%^%- %digestsubs%
%endif%
%iftype all nomail%
%^%- %nomailsubs%
%endif%
mlmmj/listtexts/zh-cn/moderate-post 0000664 0000000 0000000 00000002572 15023031135 0017761 0 ustar 00root root 0000000 0000000 Subject: 请审核 $list$@$domain$:$subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%来自 <$posteraddr$> 题为《\=$subject$\=》的邮件已提交发布\=。
%ifreason modnonsubposts%
由于请求者不是订户\=,
%endif%
%ifreason moderated%
由于本列表为受限列表\=,
%endif%
%ifreason access%
由于权限规则\=,
%endif%
您需要处理这封邮件\=。邮件内容如下\=。
%wrap%要通过该邮件的发布\=,请发邮件到 <$releaseaddr$> (\=通常可直接回复本
邮件完成\=)\=。
%ifcontrol subonrelease%
%^%%wrap%如果您愿意\=,可以通过发送邮件到下述地址来同时通过帖子并订阅发布
者\=:
%^%- %wrap%常规版本\=:<$listsubreleaseaddr$>%nowrap%
%^%- %wrap%汇总版本\=:<$digestsubreleaseaddr$>%nowrap%
%^%- %wrap%无邮件版本\=:<$nomailsubreleaseaddr$>%nowrap%
%endif%
%wrap%如果您不打算通过\=,请发邮件到 <$rejectaddr$> 或直接忽略本邮件\=。
本邮件已发给下述版主\=:
- %moderators%
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/zh-cn/notify 0000664 0000000 0000000 00000001716 15023031135 0016505 0 ustar 00root root 0000000 0000000 %ifaction sub%Subject: 订阅 $list$@$domain$:$subaddr$%endif%
%ifaction unsub%Subject: 取消订阅 $list$@$domain$:$subaddr$%endif%
%text prologue%
%ifaction sub%
%^%%wrap%
%ifreason request%
由于收到加入请求\=,
%endif%
%ifreason confirm%
由于加入请求得到确认\=,
%endif%
%ifreason admin%
由于管理员命令\=,
%endif%
%ifreason permit%
由于掌门人批准\=,
%endif%
地址 <$subaddr$> 已成功订阅本列表的
%iftype normal%常规%endif%
%iftype digest%汇总%endif%
%iftype nomail%无邮件%endif%
版本\=。
%endif%
%ifaction unsub%
%^%%wrap%
%ifreason request%
由于收到了取消订阅的请求\=,
%endif%
%ifreason confirm%
由于取消订阅请求得到确认\=,
%endif%
%ifreason admin%
由于管理员命令\=,
%endif%
%ifreason bouncing%
由于退回过久\=,
%endif%
地址 <$subaddr$> 已成功从本列表退订\=。
%endif%
mlmmj/listtexts/zh-cn/probe 0000664 0000000 0000000 00000000340 15023031135 0016274 0 ustar 00root root 0000000 0000000 Subject: $list$@$domain$ 被退回的邮件
%text prologue%
您的部分邮件无法投递\=。如果您看到本邮件\=,说明已经恢复正常\=,仅供参
考\=。
已退回的邮件列表\=:
- %bouncenumbers%
mlmmj/listtexts/zh-cn/prologue 0000664 0000000 0000000 00000000140 15023031135 0017017 0 ustar 00root root 0000000 0000000 %charwrap%%wide%
%wrap%嗨\=,我是管理 <$list$@$domain$> 邮件列表的 Mlmmj 程序\=。
mlmmj/listtexts/zh-cn/subrelease 0000664 0000000 0000000 00000001425 15023031135 0017324 0 ustar 00root root 0000000 0000000 %^%%wrap%然而\=,这是开放列表\=。如果您愿意\=,可以发邮件
到 <$listsubreleaseaddr$> 同时订阅与发表帖子\=,通常回复本邮件即可\=。邮件
主题与正文任意\=。
%ifncontrol nodigestsub%
%^%%wrap%或者您可以发邮件到 <$digestsubreleaseaddr$> 同时订阅本列表的汇总
版本与发表帖子\=,这样您将定期或累积一定数量后在单封邮件中收到多条帖
子\=。
%endif%
%ifncontrol nonomailsub%
%^%%wrap%或者您可以发邮件到 <$nomailsubreleaseaddr$> 同时订阅本列表的无邮
件版与发表帖子\=,这样您将不会收到发往本列表的邮件\=。这意味着您可能看不
到回复内容\=,除非您通过网页存档或用其他邮箱订阅了列表的其他版本\=。
%endif%
mlmmj/listtexts/zh-cn/wait-post 0000664 0000000 0000000 00000001670 15023031135 0017123 0 ustar 00root root 0000000 0000000 Subject: 等待发布到 $list$@$domain$:$subject$
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_$random0$$random1$_="
Content-Transfer-Encoding: 8bit
--=_$random0$$random1$_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
%text prologue%
%wrap%来自 <$posteraddr$> 题为《\=$subject$\=》的邮件已提交至列表\=。然
而\=,
%ifreason moderated%
因为这是先审列表\=,
%endif%
%ifreason access%
由于访问规则\=,
%endif%
%ifreason modnonsubposts%
因为您不是订阅者\=,
%endif%
需要版主审核后才能发布到该列表\=。
%ifreason modnonsubposts%
%ifncontrol closedlist%%ifncontrol closedlistsub%
%^%%text subrelease%
%endif%%endif%
%endif%
(\=下为邮件\=。\=)
--=_$random0$$random1$_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"
%originalmail%
--=_$random0$$random1$_=--
mlmmj/listtexts/zh-cn/wait-sub 0000664 0000000 0000000 00000000260 15023031135 0016721 0 ustar 00root root 0000000 0000000 Subject: 等待批准加入 $list$@$domain$
%text prologue%
%wrap%您加入该列表的请求已收到\=。然而\=,掌门人需要审核后才能批准您加
入\=。
mlmmj/man/ 0000775 0000000 0000000 00000000000 15023031135 0012736 5 ustar 00root root 0000000 0000000 mlmmj/man/mlmmj-bounce.1 0000664 0000000 0000000 00000002776 15023031135 0015421 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-bounce 1
.Os
.Sh NAME
.Nm mlmmj-bounce
.Nd bounce handling utility for mlmmj
.Sh SYNOPSIS
.Nm
.Fl -L Ar /path/to/list
.Op Fl a Ar john=doe.org | Fl d
.Op Fl n Ar num | Fl p
.Sh DESCRIPTION
.Bl -tag -width pathXXX
.It Fl a
Address string that bounces
.It Fl d
Parse the mail to extract the address via the DSN
.Pq RFC1891
.It Fl h
Print help
.It Fl L Ar path
Full path to list directory
.It Fl n
Message number in the archive that bounced
.It Fl p
Send out a probe
.It Fl V
Print version
.El
.Pp
.Nm
is used to handle mails that are bouncing.
When a mail arrives to the system, mlmmj-bounce will register in
.Pa /bounce/
info about which number that bounced at what time.
An example of such a line could be:
.Bd -literal -offset indent
109:1094409801 # Sun Sep 5 20:43:21 2004
.Ed
.Pp
The above shows that message number 109 bounced 1094409801 seconds after epoch
which is in human date stamps is Sunday September 5th 20:43:21 2004.
.Pp
The last bounce mail received to the address is saved in
.Pa /bounce/.lastmsg .
.Pp
When the
.Fl p
option is used it sends out a probe email including info
that it's a bounce probe and a list of the bounced message numbers.
The existence of a
.Pa /bounce/.probe
file indicates that a probe have been sent out.
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
(based on html2man output)
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-list.1 0000664 0000000 0000000 00000001201 15023031135 0015077 0 ustar 00root root 0000000 0000000 .Dd April 17, 2023
.Dt mlmmj-list "1"
.Os
.Sh NAME
.Nm mlmmj-list
.Nd list people / subscribers associated with a list
.Sh SYNOPSIS
.Nm
.Fl L Ar /path/to/listdir
.Op Fl cdhmosV
.Sh DESCRIPTION
.Bl -tag -width pathXXX
.It Fl c
Count the emailaddresses
.It Fl d
Print the digesters list
.It Fl L Ar path
Full path of the list directory
.It Fl m
Print moderators for list
.It Fl -n
Print for nomail version of list
.It Fl o
Print the owner(s) of the list
.It Fl s
Print normail subscribers (default)
.It Fl V
Print version
.El
.Sh AUTHORS
This manual page was written by the following person:
.Pp
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-maintd.1 0000664 0000000 0000000 00000003010 15023031135 0015400 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-maintd 1
.Os
.Sh NAME
.Nm mlmmj-maintd
.Nd maintenance for mlmmj maintained lists
.Sh SYNOPSIS
.Nm
.Op Fl F
.Op Fl d Ar /path/to/dir | Fl L Ar /path/to/dir
.Sh DESCRIPTION
.Bl -tag -width pathXXXXX
.It Fl d Ar
Full path to directory with lists
.It Fl L Ar
Full path to list directory
.It Fl F
Don't fork, performing one maintenance run only.
.El
.Pp
This is the program doing the maintenance for an mlmmj based mailing list.
It will unsubscribe people who have bounced for long enough, send out bounce
probes, resend mails that couldn't be delivered to relayhost, clean out stale
requests for e.g. subscription, resend list mails and clean up leftover files
etc.
.Pp
If a directory containing several lists exists, the
.Fl d
can be used to
specify this, making mlmmj-maintd perform a maintenance run in every listdir
below the specified one.
.Pp
Only either
.Fl d
or
.Fl L
can be specified at the same time.
.Pp
It will run as a daemon, unless the
.Fl F
switch is specified, in which case it just runs once.
The
.Fl F
option should be used when one wants to
avoid running another daemon, and use e.g. cron to control it instead.
In case cron is used,
.Nm
should be run every 2 hours or so.
An example crontab entry:
.Bd -literal -offset indent
0 */2 * * * /usr/bin/mlmmj-maintd \-F \-L /path/to/list
.Ed
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-make-ml.1 0000664 0000000 0000000 00000001711 15023031135 0015455 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-make-ml 1
.Os
.Sh NAME
.Nm mlmmj-make-ml
.Nd create a mailing list for mlmmj
.Sh SYNOPSIS
.Nm
.Op Fl h
.Op Fl L Ar listname
.Op Fl s Ar spooldir
.Op Fl a
.Op Fl user
.Op Fl z
.Sh DESCRIPTION
.Bl -tag -width pathXXXXXXX
.It Fl h
Display help
.It Fl L Ar listname
The name of the mailing list
.It Fl s Ar spooldir
Your spool directory
.Po
default
.Pa /var/spool/mlmmj
.Pc
.It Fl a
Create the needed entries in your
.Pa /etc/aliases
file
.It Fl c
User to chown the spool directory to
.Pq default not to chown at all
.It Fl z
Do nothing for now
.El
.Pp
This is an interactive script which creates the mailing list directory and thus
the list itself for being run by mlmmj.
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
.Sh BUGS
It's not possible to create a list entirely on the command line.
mlmmj/man/mlmmj-process.1 0000664 0000000 0000000 00000003731 15023031135 0015614 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-process 1
.Os
.Sh NAME
.Nm mlmmj-process
.Nd process mail for an mlmmj managed mailinglist
.Sh SYNOPSIS
.Nm
.Fl Ar /path/to/list
.Fl m /path/to/mail
.Op Fl h
.Op Fl P
.Op Fl V
.Sh DESCRIPTION
.Bl -tag -width pathXXX
.It Fl h
Print help
.It Fl L Ar path
Full path to list directory
.It Fl m Ar mail
Full path to mail file
.It Fl P
Don't execute mlmmj-send
.Pq debugging only
.It Fl V
Print version
.El
.Pp
This is the binary which processes a mail.
Examples of what such processing is:
.Bl -tag -width 6n
.It Access control
Using the access rules specified in
.Pa /control/access
to perform access control to the list.
This is done before headers are stripped, so one can create allow rules based
on headers that are later stripped.
.It Header stripping
Headers specified in
.Pa /control/delheaders
are deleted from the mail.
.It Header addition
Headers specified in
.Pa /control/customheaders
are added to the mail.
This could be headers like
.Qq List-ID:
or
.Qq Reply-To:
.It List control
In case there's a mail with a recipient delimiter it's not a regular list mail.
Processing of these happens in mlmmj-receive as well.
.Pp
Examples of such are: subscription requests, mails to owner etc.
.Pp
It will base it's recipient delimiter detection on the
.Qq Delivered-To:
header if present. If not, the
.Qq To:
header is used.
.It Moderation
If the list is moderated, it will happen in mlmmj-process.
.El
.Pp
When processing is done, it will invoke the needed binary according to whatever
mail it is.
If it's a subscription request it will invoke mlmmj-sub, if it's a regular list
mail it will invoke
.Xr mlmmj-send 1 .
.Sh SEE ALSO
The file TUNABLES from the mlmmj source distribution or in the documentation
directory of the operating system distribution.
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-receive.1 0000664 0000000 0000000 00000002730 15023031135 0015556 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-receive 1
.Os
.Sh NAME
.Nm mlmmj-receive
.Nd receive mails for an mlmmj managed mailinglist
.Sh SYNOPSIS
.Nm
.Fl L Ar /path/to/listdir
.Op Fl h
.Op Fl V
.Op Fl P
.Op Fl F
.Sh DESCRIPTION
.Bl -tag -width pathXXXXX
.It Fl h
Print help
.It Fl F
Don't fork in the background
.Qq debugging only
.It Fl L Ar path
Full path to list directory
.It Fl P
Don't execute
.Xr mlmmj-process 1
.Qq debugging only
.It Fl V
Print version
.El
.Pp
The mlmmj-receive binary is the one specified in the mailserver configuration
file
.Pq aliases file ,
which writes the mail to the
.Pa /incoming directory
and invokes
.Xr mlmmj-process 1
unless the
.Fl P
option is specified.
On systems using mailservers supporting the
.Pa /etc/aliases
file, a line to activate an mlmmj managed mailinglist would look like this:
.Bd -literal -offset indent
list: "|/usr/bin/mlmmj-receive \-L /var/spool/mlmmj/list/"
.Ed
.Pp
It's very important to specify the full path to the binary, or the mailinglist
will not function.
.Pp
When the
.Fl F
option is used, it will not fork in the background.
The reason it forks is that if delivery of a mail takes longer time than the
mail server will allow a command to be idle before presumed dead, the mail
server would kill it.
.Sh SEE ALSO
.Xr mlmmj-process 1
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-send.1 0000664 0000000 0000000 00000003431 15023031135 0015064 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-send 1
.Os
.Sh NAME
.Nm mlmmj-send
.Nd send mail to a mailinglist or similar
.Sh SYNOPSIS
.Nm
.Op Fl L Ar /path/to/list | Fl l Ar listctrl
.Fl m Ar mail
.Op Fl aDFhorsTV
.Sh DESCRIPTION
.Bl -tag -width pathXXXXX
.It Fl a
Don't archive the mail
.It Fl D
Don't delete the mail after it's sent
.It Fl F
What to use as MAIL FROM:
.It Fl h
Print help
.It Fl l
List control variable.
.It Fl L path
Full path to list directory
.It Fl m
Full path to mail file
.It Fl o
Address to omit from distribution
.Pq normal mail only
.It Fl r
Relayhost IP address
.Pq defaults to 127.0.0.1
.It Fl R
What to use as
.Qq Reply-To:
header
.It Fl s
Subscribers file name
.It Fl T
What to use as RCPT TO:
.It Fl V
Print version
.El
.Pp
This binary is used to send all kinds of mail to mlmmj managed mailinglists,
but can potentially be used standalone for sending mails.
.Pp
The only option that is not self explanatory is the
.Fl l list control option:
.Bl -tag -width 1 -offset indent
.It Ar 1
send a single mail.
.Pp
This is used together with \fB\-F\fR and \fB\-T\fR to send one mail to one
recipient.
.It Ar 2
mail to moderators.
.Pp
Used for sending mails to the moderators of a list.
.It Ar 3
resend failed list mail
.It Ar 4
send to file with recipients
.It Ar 5
bounceprobe
.It Ar 6
single listmail to single recipient
.El
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
.Sh BUGS
This manual page is very scarce documentation of the mlmmj-send binary.
The reason for this is that it's really not supposed to be used by any human,
but only supposed to be invoked from other mlmmj binaries.
So in case more documentation is needed, please read the source.
mlmmj/man/mlmmj-sub.1 0000664 0000000 0000000 00000006027 15023031135 0014730 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-sub 1
.Os
.Sh NAME
.Nm mlmmj-sub
.Nd subscribe address to a mailinglist run by mlmmj
.Sh SYNOPSIS
.Nm
.Fl L Ar /path/to/list
.Op Fl a Ar john@doe.org | Fl m Ar str
.Op Fl cCdnfhqrRsUV
.Sh DESCRIPTION
.Bl -tag -width pathXXX
.It Fl a Ar email
Email address to subscribe
.It Fl c
Send welcome mail
.Pq unless requesting confirmation
.It Fl C
Request mail confirmation
.Pq unless switching versions
.It Fl d
Subscribe to digest version of the list
.It Fl f
Force subscription
.Pq do not moderate
.It Fl h
Print help
.It Fl L Ar path
Full path to list directory
.It Fl m Ar str
Moderation string
.It Fl n
Subscribe to nomail version of the list
.It Fl q
Be quiet
.Pq don't notify owner about the subscription
.It Fl r
Behave as if request arrived via email
.Pq internal use
.It Fl R
Behave as if confirmation arrived via email
.Pq internal use
.It Fl s
Don't send a mail to the subscriber if already subscribed
.It Fl U
Don't switch to the user id of the listdir owner
.It Fl V
Print version
.El
.Pp
This utility is used to subscribe people to the specified mailinglist.
It will write the email address in a file with the name of the beginning letter
of the email address getting subscribed in the
.Pa /subscribers.d/
directory.
.Pp
The digest version of the list is a list version where people receive postings
to the list periodically
.Pq e.g. once a day
or when a large number of posts have accumulated.
Digest subscribers are in the
.Pa /digesters.d/
directory.
.Pp
The nomail version of the list is a list version where people are subscribed
like usual, but they won't receive any postings to the list.
This is useful for
people who read the mailinglist through a news gateway, but want to be able to
post to the list.
Nomail subscribers are in the
.Pa /nomailsubs.d/
directory.
.Pp
Unless the
.Fl U
switch is used it will switch its user id to the user id owning the list
directory.
This is done to make sure that new files created are having correct permissions.
.Pp
If the given address is already subscribed to the list, but to a different
version, the subscription is switched to that version, and confirmation and
moderation are bypassed.
If the address is already subscribed to the version requested, a mail is sent
to the subscriber, unless the
.Fl s
switch is used.
.Pp
Subscription may be moderated
.Po if
.Pa /control/submod exists
.Pc
unless the
.Fl f
switch is given.
When a subscription is permitted by a gatekeeper, welcome messages are sent to
the subscriber as usual, regardless of options given now.
.Pp
To ensure subscription is silent from the point of view of the subscriber, use
.Fl f ,
but neither
.Fl c
nor
.Fl C .
To inhibit notification of the owner, use
.Fl q .
Use of
.Fl s
is recommended to ensure you don't spam already-subscribed addresses by
accident.
.Sh "SEE ALSO"
.Xr mlmmj-unsub 1 ,
.Xr setuid 2
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/man/mlmmj-unsub.1 0000664 0000000 0000000 00000004155 15023031135 0015273 0 ustar 00root root 0000000 0000000 .Dd September 1, 2004
.Dt mlmmj-unsub 1
.Os
.Sh NAME
.Nm mlmmj-unsub
.Nd unsubscribe address from a mailinglist run by mlmmj
.Sh SYNOPSIS
.Nm
.Fl L Ar /path/to/list
.Fl a Ar john@doe.org
.Op Fl cCdnNhqrRsUV
.Sh DESCRIPTION
.Bl -tag -width pathXXX
.It Fl a Ar email
Email address to unsubscribe
.It Fl c
Send goodbye mail
.It Fl C
Request mail confirmation
.It Fl d
Unsubscribe from the digest version of the list
.It Fl h
Print help
.It Fl L Ar path
Full path to list directory
.It Fl n
Unsubscribe from the nomail version of the list
.It Fl N
Unsubscribe from the normal version of the list
.It Fl q
Be quiet
.Pq don't notify owner about the unsubscribe
.It Fl r
Behave as if request arrived via email
.Pq internal use
.It Fl R
Behave as if confirmation arrived via email
.Pq internal use
.It Fl s
Don't send a mail to the address if not subscribed
.It Fl U
Don't switch to the user id of the listdir owner
.It Fl V
Print version
.El
.Pp
This utility is used to unsubscribe people from the specified mailinglist.
It will remove the specified email address from every file in the
.Pa /subscribers.d/ ,
.Pa /digesters.d/
and
.Pa /nomailsubs.d/
directories
.Po
or if the
.Fl d ,
.Fl n
or
.Fl N
switch is given, only the one relevant directory
.Pc .
.Pp
Unless the
.Fl U
switch is used it will switch its user id to the user id owning the list
directory.
This is done to make sure that new files created are having correct
permissions.
.Pp
Normally a mail is sent to the person being unsubscribed if the address is not
subscribed to the list.
If the
.Fl s
switch is used such a mail will not be sent.
.Pp
When neither
.Fl c
nor
.Fl C
is specified, unsubscription happens silently from the point of view of the
subscriber.
When
.Fl q
is specified, unsubscription happens silently from the point of view of the
list owner.
Use of
.Fl s
is recommended to ensure you don't spam unsubscribed addresses by accident.
.Sh SEE ALSO
.Xr mlmmj-sub 1
.Sh AUTHORS
This manual page was written by the following persons:
.An S\[/o]ren Boll Overgaard Aq Mt boll@debian.org
.Pq based on html2man output
.An Mads Martin J\[/o]rgensen Aq Mt mmj@mmj.dk
mlmmj/src/ 0000775 0000000 0000000 00000000000 15023031135 0012752 5 ustar 00root root 0000000 0000000 mlmmj/src/Makefile.am 0000664 0000000 0000000 00000002617 15023031135 0015014 0 ustar 00root root 0000000 0000000 #
bin_PROGRAMS = mlmmj-send mlmmj-receive mlmmj-process mlmmj-sub \
mlmmj-unsub mlmmj-bounce mlmmj-maintd mlmmj-list
noinst_LIBRARIES = libmlmmj.a
bin_SCRIPTS = mlmmj-make-ml
EXTRA_DIST = mlmmj-make-ml
libmlmmj_a_SOURCES= access.c mail-functions.c chomp.c incindexfile.c \
checkwait_smtpreply.c init_sockfd.c strgen.c \
random-int.c print-version.c log_error.c mygetline.c \
getaddrsfromfile.c readn.c \
subscriberfuncs.c find_email_adr.c dumpfd2fd.c \
listcontrol.c send_help.c prepstdreply.c \
do_all_the_voodoo_here.c log_oper.c send_list.c \
unistr.c gethdrline.c send_digest.c \
strgen.c statctrl.c \
ctrlvalue.c readn.c getlistdelim.c ctrlvalues.c \
utils.c mlmmj.c send_mail.c
mlmmj_send_SOURCES = mlmmj-send.c
mlmmj_send_LDADD= libmlmmj.a
mlmmj_receive_SOURCES = mlmmj-receive.c
mlmmj_receive_LDADD= libmlmmj.a
mlmmj_process_SOURCES = mlmmj-process.c
mlmmj_process_LDADD= libmlmmj.a
mlmmj_sub_SOURCES = mlmmj-sub.c
mlmmj_sub_LDADD= libmlmmj.a
mlmmj_unsub_SOURCES = mlmmj-unsub.c
mlmmj_unsub_LDADD = libmlmmj.a
mlmmj_bounce_SOURCES = mlmmj-bounce.c
mlmmj_bounce_LDADD = libmlmmj.a
mlmmj_maintd_SOURCES = mlmmj-maintd.c
mlmmj_maintd_LDADD = libmlmmj.a
mlmmj_list_SOURCES = mlmmj-list.c
mlmmj_list_LDADD = libmlmmj.a
install-exec-hook:
ln -f -s mlmmj-receive $(DESTDIR)$(bindir)/mlmmj-recieve
ln -f -s mlmmj-make-ml $(DESTDIR)$(bindir)/mlmmj-make-ml.sh
mlmmj/src/access.c 0000664 0000000 0000000 00000011226 15023031135 0014361 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2024 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include "mlmmj.h"
#include "xmalloc.h"
static char *action_strs[] = {
"allowed",
"sent",
"denied",
"moderated",
"discarded"
};
actions_t
do_access(strlist *rules, strlist *headers, const char *from, char **msg, char **qualifier)
{
unsigned int match;
char *rule_ptr;
char errbuf[128];
int err;
actions_t act;
unsigned int not;
regex_t regexp;
char *hdr;
size_t i = 0;
if (msg != NULL)
*msg = NULL;
if (qualifier != NULL)
*qualifier = NULL;
if (rules == NULL)
return (ACT_ALLOW);
tll_foreach(*rules, it) {
rule_ptr = it->item;
if (strncmp(rule_ptr, "allow", 5) == 0) {
rule_ptr += 5;
act = ACT_ALLOW;
} else if (strncmp(rule_ptr, "send", 4) == 0) {
rule_ptr += 4;
act = ACT_SEND;
} else if (strncmp(rule_ptr, "deny", 4) == 0) {
rule_ptr += 4;
act = ACT_DENY;
} else if (strncmp(rule_ptr, "moderate", 8) == 0) {
rule_ptr += 8;
act = ACT_MODERATE;
} else if (strncmp(rule_ptr, "discard", 7) == 0) {
rule_ptr += 7;
act = ACT_DISCARD;
} else {
errno = 0;
if (msg != NULL)
xasprintf(msg, "Unable to parse rule #%d \"%s\":"
" Missing action keyword. Denying post from \"%s\"",
i, it->item, from);
return ACT_DENY;
}
if (*rule_ptr == ' ') {
rule_ptr++;
} else if (*rule_ptr == '-') {
rule_ptr++;
const char *qual = rule_ptr;
while (*rule_ptr != ' ' && *rule_ptr != '\0')
rule_ptr++;
if (rule_ptr - qual != 0 && qualifier != NULL)
*qualifier = xstrndup(qual, rule_ptr - qual);
rule_ptr++;
} else if (*rule_ptr == '\0') {
/* the rule is a keyword and no regexp */
if (msg != NULL)
xasprintf(msg, "access -"
" A mail from \"%s\" was %s by rule #%d \"%s\"",
from, action_strs[act], i, it->item);
return act;
} else {
/* we must have space or end of string */
errno = 0;
if (msg != NULL)
xasprintf(msg, "Unable to parse rule #%d \"%s\":"
" Invalid character after action keyword."
" Denying post from \"%s\"", i, it->item, from);
return ACT_DENY;
}
if (*rule_ptr == '!') {
rule_ptr++;
not = 1;
} else {
not = 0;
}
/* remove unanchored ".*" from beginning of regexp to stop the
* regexp matching to loop so long time it seems like it's
* hanging */
if (strncmp(rule_ptr, "^.*", 3) == 0) {
rule_ptr += 3;
}
while (strncmp(rule_ptr, ".*", 2) == 0) {
rule_ptr += 2;
}
if ((err = regcomp(®exp, rule_ptr,
REG_EXTENDED | REG_NOSUB | REG_ICASE))) {
regerror(err, ®exp, errbuf, sizeof(errbuf));
regfree(®exp);
errno = 0;
if (msg != NULL)
xasprintf(msg, "regcomp() failed for rule #%d \"%s\""
" (message: '%s') (expression: '%s')"
" Denying post from \"%s\"",
i, it->item, errbuf, rule_ptr, from);
return ACT_DENY;
}
match = 0;
tll_foreach(*headers, header) {
if (regexec(®exp, header->item, 0, NULL, 0)
== 0) {
match = 1;
hdr = header->item;
break;
}
}
regfree(®exp);
if (match != not) {
if (match) {
if (msg != NULL)
xasprintf(msg, "access -"
" A mail from \"%s\" with header \"%s\" was %s by"
" rule #%d \"%s\"", from, hdr, action_strs[act],
i, it->item);
} else {
if (msg != NULL)
xasprintf(msg, "access -"
" A mail from \"%s\" was %s by rule #%d \"%s\""
" because no header matched.", from,
action_strs[act], i, it->item);
}
return act;
}
i++;
}
xasprintf(msg, "access -"
" A mail from \"%s\" didn't match any rules, and"
" was denied by default.", from);
return ACT_DENY;
}
mlmmj/src/checkwait_smtpreply.c 0000664 0000000 0000000 00000006005 15023031135 0017200 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include "xmalloc.h"
#include "checkwait_smtpreply.h"
#include "config.h"
#include "mygetline.h"
char *checkwait_smtpreply(int sockfd, int replytype)
{
char *smtpreply = NULL;
if(replytype == MLMMJ_EHLO) {
/* Consume all 8BITMIME 250- reply */
do {
free(smtpreply);
smtpreply = mygetline(sockfd);
} while (strncmp(smtpreply, "250-", 4) == 0);
} else {
smtpreply = mygetline(sockfd);
}
if(smtpreply == NULL) {
/* This will never be a valid SMTP response so will always be returned,
* but is more descriptive than an empty string. */
smtpreply = xstrdup("none / error / closed connection");
}
#if 0
printf("replytype = [%d], smtpreply = [%s]\n", replytype, smtpreply);
fprintf(stderr, "%s", smtpreply);
#endif
/* This case might seem like (and is ATM) total overkill. But it's
* easy for us to extend it later on if needed.
*/
switch(replytype) {
case MLMMJ_CONNECT:
if(smtpreply[0] != '2' || smtpreply[1] != '2')
return smtpreply;
break;
case MLMMJ_EHLO:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_HELO:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_FROM:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_RCPTTO:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_DATA:
if(smtpreply[0] != '3' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_DOT:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
case MLMMJ_QUIT:
if(smtpreply[0] != '2' || smtpreply[1] != '2')
return smtpreply;
break;
case MLMMJ_RSET:
if(smtpreply[0] != '2' || smtpreply[1] != '5')
return smtpreply;
break;
default:
break;
}
free(smtpreply);
return NULL;
}
mlmmj/src/chomp.c 0000664 0000000 0000000 00000002667 15023031135 0014237 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include "chomp.h"
char *chomp(char *str)
{
size_t i;
if(str == NULL)
return NULL;
if(*str == '\0' || *str == '\n' || *str == '\r') {
*str = '\0';
return str;
}
i = strlen(str) - 1;
while((str[i] == '\n') || (str[i] == '\r')) {
str[i] = 0;
i--;
}
return str;
}
mlmmj/src/ctrlvalue.c 0000664 0000000 0000000 00000006200 15023031135 0015115 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include "ctrlvalue.h"
#include "chomp.h"
#include "utils.h"
#include "log_error.h"
#include "xmalloc.h"
static char *
ctrlval(int ctrlfd, const char *ctrlstr, int oneline)
{
int fd;
if(ctrlfd < 0)
return NULL;
fd = openat(ctrlfd, ctrlstr, O_RDONLY|O_CLOEXEC);
if (fd == -1)
return (NULL);
return (readlf(fd, oneline));
}
char *
ctrlvalue(int ctrlfd, const char *ctrlstr)
{
return (ctrlval(ctrlfd, ctrlstr, true));
}
char *
ctrlcontent(int ctrlfd, const char *ctrlstr)
{
return (ctrlval(ctrlfd, ctrlstr, false));
}
char *
textcontent(int listfd, const char *ctrlstr)
{
int fd = openat(listfd, "text", O_DIRECTORY|O_CLOEXEC);
char *ret = ctrlval(fd, ctrlstr, false);
close(fd);
return (ret);
}
intmax_t
ctrlim(int ctrlfd, const char *ctrlstr, intmax_t min, intmax_t max,
intmax_t fallback)
{
const char *errstr;
char *val = ctrlval(ctrlfd, ctrlstr, true);
intmax_t ret;
if (val == NULL)
return (fallback);
ret = strtoim(val, min, max, &errstr);
if (errstr != NULL) {
log_error(LOG_ARGS, "Invalid value for '%s': %s", ctrlstr,
errstr);
ret = fallback;
}
free(val);
return (ret);
}
uintmax_t
ctrluim(int ctrlfd, const char *ctrlstr, uintmax_t min, uintmax_t max,
uintmax_t fallback)
{
const char *errstr;
char *val = ctrlval(ctrlfd, ctrlstr, true);
uintmax_t ret;
if (val == NULL)
return (fallback);
ret = strtouim(val, min, max, &errstr);
if (errstr != NULL) {
log_error(LOG_ARGS, "Invalid value for '%s': %s", ctrlstr,
errstr);
ret = fallback;
}
free(val);
return (ret);
}
time_t
ctrltimet(int dfd, const char *ctrlstr, time_t fallback)
{
const char *errstr;
char *val = ctrlval(dfd, ctrlstr, true);
time_t ret;
if (val == NULL)
return (fallback);
ret = strtotimet(val, &errstr);
if (errstr != NULL) {
log_error(LOG_ARGS, "Invalid value for '%s': %s", ctrlstr,
errstr);
ret = fallback;
}
free(val);
return (ret);
}
mlmmj/src/ctrlvalues.c 0000664 0000000 0000000 00000004537 15023031135 0015313 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include "xmalloc.h"
#include "ctrlvalues.h"
#include "chomp.h"
#include "mlmmj.h"
typedef int (cmpf)(const char *s1, const char *s2);
strlist *ctrlvalues(int ctrlfd, const char *ctrlstr)
{
char *line = NULL;
size_t linecap = 0;
FILE *f;
int fd;
strlist *ret;
fd = openat(ctrlfd, ctrlstr, O_RDONLY|O_CLOEXEC);
if (fd == -1 || (f = fdopen(fd, "r")) == NULL)
return (NULL);
ret = xcalloc(1, sizeof(*ret));
while (getline(&line, &linecap, f) > 0) {
chomp(line);
/* Ignore empty lines */
if (*line == '\0')
continue;
tll_push_back(*ret, xstrdup(line));
}
free(line);
fclose(f);
return ret;
}
bool
ctrlvalues_contains(int ctrlfd, const char *ctrlstr, const char *comp, bool casesensitive)
{
char *line = NULL;
size_t linecap = 0;
FILE *f;
int fd;
cmpf *cmp;
cmp = casesensitive ? strcmp : strcasecmp;
fd = openat(ctrlfd, ctrlstr, O_RDONLY|O_CLOEXEC);
if (fd == -1 || (f = fdopen(fd, "r")) == NULL)
return (false);
while (getline(&line, &linecap, f) > 0) {
chomp(line);
if (*line == '\0')
continue;
if (cmp(comp, line) == 0) {
free(line);
fclose(f);
return (true);
}
}
free(line);
fclose(f);
return (false);
}
mlmmj/src/do_all_the_voodoo_here.c 0000664 0000000 0000000 00000013635 15023031135 0017610 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2025 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include "xmalloc.h"
#include "mlmmj.h"
#include "gethdrline.h"
#include "strgen.h"
#include "ctrlvalue.h"
#include "do_all_the_voodoo_here.h"
#include "log_error.h"
#include "wrappers.h"
#include "find_email_adr.h"
bool
findit(const char *line, const strlist *headers)
{
size_t len;
tll_foreach(*headers, it) {
len = strlen(it->item);
if(strncasecmp(line, it->item, len) == 0)
return true;
}
return false;
}
/* read line and populate a struct to save a list important header see mlmmj-process.c:254 and mlmmj.h:97 */
void getinfo(const char *line, struct mailhdr *readhdrs)
{
int i = 0;
size_t tokenlen;
while(readhdrs[i].token) {
tokenlen = strlen(readhdrs[i].token);
if(strncasecmp(line, readhdrs[i].token, tokenlen) == 0) {
readhdrs[i].valuecount++;
readhdrs[i].values =
(char **)xrealloc(readhdrs[i].values,
readhdrs[i].valuecount * sizeof(char *));
readhdrs[i].values[readhdrs[i].valuecount - 1] =
xstrdup(line + tokenlen);
}
i++;
}
}
void
scan_headers(FILE *f, struct mailhdr *readhdrs, strlist *allhdrs, strlist *allunfoldeds)
{
char *hdrline, *unfolded;
/* scan all headers and populate readhdrs , allhdrs , allunfoldeds */
for (;;) {
/* hdrline contains the header in one line and unfolded contains the original data */
hdrline = gethdrline(f, &unfolded);
/* end of headers */
if(hdrline == NULL) {
break;
}
/* Do we want info from hdrs? Get it before it's gone */
if(readhdrs)
getinfo(hdrline, readhdrs);
if (allhdrs != NULL) {
/* Snatch a copy of the header */
tll_push_back(*allhdrs, xstrdup(hdrline));
}
if (allunfoldeds != NULL) {
/* Snatch a copy of unfolded */
tll_push_back(*allunfoldeds, xstrdup(unfolded));
}
free(hdrline);
free(unfolded);
}
}
int do_all_the_voodoo_here(int infd, int outfd, int hdrfd, int footfd,
const strlist *delhdrs, struct mailhdr *readhdrs,
strlist *allhdrs, const char *prefix, int replyto)
{
char *hdrline, *unfolded, *unqp;
strlist allunfoldeds = tll_init();
char *posteraddr = NULL;
bool hdrsadded = false;
bool subject_present = false;
FILE *f = fdopen(dup(infd), "r");
scan_headers(f, readhdrs, allhdrs, &allunfoldeds);
/* if we have custom headers , extract posteraddr from current header */
if(hdrfd >= 0) {
strlist fromemails = tll_init();
if ( readhdrs[0].valuecount == 1 ) {
find_email_adr(readhdrs[0].values[0], &fromemails);
posteraddr = tll_front(fromemails);
}
}
/* scan all headers from allhdrs , and do the real things */
tll_foreach(*allhdrs, a_header ) {
/* hdrline contains the unfolded value of the header and unfolded contains the original data */
hdrline=a_header->item ;
unfolded=tll_pop_front(allunfoldeds) ;
/* add extra headers before MIME* headers,
or after all headers */
if(!hdrsadded &&
( strncasecmp(hdrline, "mime", 4) == 0)) {
if(hdrfd >= 0) {
if(process_headers_fd(hdrfd,outfd,posteraddr) < 0) {
log_error(LOG_ARGS, "Could not "
"add extra headers");
tll_free_and_free(allunfoldeds, free);
return -1;
}
fsync(outfd);
}
hdrsadded = true;
}
/* Add Subject: prefix if wanted */
if(prefix) {
if(strncasecmp(hdrline, "Subject:", 8) == 0) {
subject_present = 1;
unqp = decode_qp(hdrline + 8, false);
if(strstr(hdrline + 8, prefix) == NULL &&
strstr(unqp, prefix) == NULL) {
dprintf(outfd, "Subject: %s%s\n", prefix, hdrline + 8);
free(unqp);
continue;
}
free(unqp);
}
}
/* Should it be stripped? */
if(!delhdrs || !findit(hdrline, delhdrs))
dprintf(outfd, "%s", unfolded);
/* Should Reply-To be added? */
if(replyto) {
if(strncasecmp(hdrline, "From:", 5) == 0) {
dprintf(outfd, "Reply-To:%s\n", hdrline + 5);
}
}
}
if(!hdrsadded ) {
if(hdrfd >= 0) {
if(process_headers_fd(hdrfd,outfd,posteraddr) < 0) {
log_error(LOG_ARGS, "Could not "
"add extra headers");
tll_free_and_free(allunfoldeds, free);
return -1;
}
fsync(outfd);
}
}
if (prefix && !subject_present) {
dprintf(outfd, "Subject: %s\n", prefix);
subject_present = true;
}
/* write LF */
if(dprintf(outfd, "\n") < 0) {
tll_free_and_free(allunfoldeds, free);
log_error(LOG_ARGS, "Error writing hdrs.");
return -1;
}
tll_free_and_free(allunfoldeds, free);
lseek(infd, ftello(f), SEEK_SET);
/* Just print the rest of the mail */
if(dumpfd2fd(infd, outfd) < 0) {
log_error(LOG_ARGS, "Error when dumping rest of mail");
return -1;
}
fclose(f);
/* No more, let's add the footer if one */
if(footfd >= 0)
if(dumpfd2fd(footfd, outfd) < 0) {
log_error(LOG_ARGS, "Error when adding footer");
return -1;
}
fsync(outfd);
return 0;
}
mlmmj/src/dumpfd2fd.c 0000664 0000000 0000000 00000005564 15023031135 0015003 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2023-2025 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include "config.h"
#include "log_error.h"
#include "xmalloc.h"
#include "mygetline.h"
#define DUMPBUF 4096
int
copy_file(int from, int to, size_t bufsiz)
{
char buf[bufsiz];
ssize_t r, wresid, w = 0;
char *bufp;
r = read(from, buf, bufsiz);
if (r < 0)
return (r);
for (bufp = buf, wresid = r; ; bufp += w, wresid -= w) {
w = write(to, bufp, wresid);
if (w <= 0)
break;
if (w >= (ssize_t) wresid)
break;
}
return (w < 0 ? w : r);
}
int dumpfd2fd(int from, int to)
{
#ifdef HAVE_COPY_FILE_RANGE
bool cfr = true;
#endif
int r;
do {
#ifdef HAVE_COPY_FILE_RANGE
if (cfr) {
r = copy_file_range(from, NULL, to, NULL, SSIZE_MAX, 0);
if (r < 0 && (errno == EINVAL || errno == EXDEV)) {
/* probably a non seekable FD */
cfr = false;
}
}
if (!cfr) {
#endif
r = copy_file(from, to, DUMPBUF);
#ifdef HAVE_COPY_FILE_RANGE
}
#endif
} while (r > 0);
return (r);
}
int process_headers_fd(int infd, int outfd,const char *from)
{
char *line;
int r;
while((line = mygetline(infd))) {
/* skip empty lines */
while (isspace(*line))
line++;
if (line[0] == '\0')
continue;
char *to_be_subst ; char *new_line ;
to_be_subst = strstr(line,"$posteraddr$") ;
if ( to_be_subst != NULL) {
*to_be_subst = '\0' ;
to_be_subst = to_be_subst + 12 ;
xasprintf(&new_line, "%s%s%s", line, from , to_be_subst ) ;
free(line);
line=new_line ;
}
if( (r=dprintf(outfd, "%s", line)) < 0) {
log_error(LOG_ARGS, "Could not write headers");
return r ;
}
free(line);
}
return 0 ;
}
mlmmj/src/find_email_adr.c 0000664 0000000 0000000 00000012246 15023031135 0016040 0 ustar 00root root 0000000 0000000 /* Some crap from BSD mail to parse email addresses.
*
* Neale Pickett stole these functions from FreeBSD
* ports, and reformatted them to use mlmmj's coding style. The
* original functions (skip_comment and skin) had the following
* copyright notice:
*/
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include
#include
#include
#include
#include "mlmmj.h"
#include "find_email_adr.h"
#include "xmalloc.h"
/*
* Start of a "comment".
* Ignore it.
*/
static char *
skip_comment(char *cp)
{
int nesting = 1;
for (; nesting > 0 && *cp; cp++) {
switch (*cp) {
case '\\':
if (cp[1])
cp++;
break;
case '(':
nesting++;
break;
case ')':
nesting--;
break;
}
}
return (cp);
}
/*
* Skin an arpa net address according to the RFC 822 interpretation
* of "host-phrase."
*/
static char *skin(char *name)
{
char *nbuf, *bufend, *cp, *cp2;
int c, gotlt, lastsp;
if (name == NULL)
return (NULL);
/* We assume that length(input) <= length(output) */
if (strchr(name, '(') == NULL && strchr(name, '<') == NULL
&& strchr(name, ' ') == NULL) {
return (xstrdup(name));
}
nbuf = xmalloc(strlen(name) +1);
gotlt = 0;
lastsp = 0;
bufend = nbuf;
for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) {
switch (c) {
case '(':
cp = skip_comment(cp);
lastsp = 0;
break;
case '"':
/*
* Start of a "quoted-string".
* Copy it in its entirety.
*/
while ((c = *cp) != '\0') {
cp++;
if (c == '"')
break;
if (c != '\\')
*cp2++ = c;
else if ((c = *cp) != '\0') {
*cp2++ = c;
cp++;
}
}
lastsp = 0;
break;
case ' ':
if (cp[0] == 'a' && cp[1] == 't' && cp[2] == ' ')
cp += 3, *cp2++ = '@';
else
if (cp[0] == '@' && cp[1] == ' ')
cp += 2, *cp2++ = '@';
else
lastsp = 1;
break;
case '<':
cp2 = bufend;
gotlt++;
lastsp = 0;
break;
case '>':
if (gotlt) {
gotlt = 0;
while ((c = *cp) != '\0' && c != ',') {
cp++;
if (c == '(')
cp = skip_comment(cp);
else if (c == '"')
while ((c = *cp) != '\0') {
cp++;
if (c == '"')
break;
if (c == '\\' && *cp != '\0')
cp++;
}
}
lastsp = 0;
break;
}
/* FALLTHROUGH */
default:
if (lastsp) {
lastsp = 0;
*cp2++ = ' ';
}
*cp2++ = c;
if (c == ',' && *cp == ' ' && !gotlt) {
*cp2++ = ' ';
while (*++cp == ' ')
;
lastsp = 0;
bufend = cp2;
}
}
}
*cp2 = '\0';
nbuf = (char *)xrealloc(nbuf, strlen(nbuf) + 1);
return (nbuf);
}
strlist *
find_email_adr(const char *str, strlist *retstruct)
{
char *c1 = NULL, *c2 = NULL;
char *p;
char *s;
s = xstrdup(str);
p = s;
while(p) {
char *adr;
char *cur;
cur = p;
oncemore:
p = strchr(p, ',');
if (p) {
/* If there's a comma, replace it with a NUL, so
* cur will only have one address in it. Except
* it's not in ""s */
c1 = strchr(cur, '"');
if(c1) {
c2 = strchr(c1+1, '"');
}
if(c2) {
if(*(c2-1) == '\\') {
*c2 = ' ';
c2 = NULL;
goto oncemore;
}
}
if((c1 == NULL) || (c1 > p) || (c2 && c2 < p)) {
*p = '\0';
p += 1;
} else {
*p = ' ';
goto oncemore;
}
}
while(cur && isspace(*cur)) {
cur += 1;
}
if ('\0' == *cur) {
continue;
}
adr = skin(cur);
if (adr)
tll_push_back(*retstruct, adr);
}
free(s);
return retstruct;
}
mlmmj/src/getaddrsfromfile.c 0000664 0000000 0000000 00000001034 15023031135 0016435 0 ustar 00root root 0000000 0000000 #include
#include "tllist.h"
#include "xmalloc.h"
#include "mlmmj.h"
#include "getaddrsfromfile.h"
#include "chomp.h"
int
getaddrsfromfile(strlist *slist, FILE *f, size_t max)
{
char *line = NULL;
size_t linecap = 0;
if (max == 0)
return -1;
if (f == NULL)
return -1;
if (feof(f))
return (-1);
while (getline(&line, &linecap, f) > 0) {
chomp(line);
if (*line == '\0')
continue;
tll_push_back(*slist, xstrdup(line));
if (tll_length(*slist) >= max)
break;
}
if (feof(f))
return (0);
return (1);
}
mlmmj/src/gethdrline.c 0000664 0000000 0000000 00000004672 15023031135 0015254 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2004 Mads Martin Joergensen
* Copyright (C) 2006 Morten K. Poulsen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include "xmalloc.h"
#include "gethdrline.h"
#include "strgen.h"
#include "wrappers.h"
#include "log_error.h"
#include "chomp.h"
char *gethdrline(FILE *f, char **unfolded)
{
char *line = NULL, *retstr = NULL, *oldretstr = NULL, *oldunfolded = NULL;
int ch;
size_t linecap = 0;
if (getline(&line, &linecap, f) <= 0) {
if (unfolded != NULL)
*unfolded = NULL;
return NULL;
}
if (unfolded != NULL)
*unfolded = xstrdup(line);
chomp(line);
/* end-of-headers */
if (*line == '\0') {
if (unfolded != NULL) {
free(*unfolded);
*unfolded = NULL;
}
free(line);
return NULL;
}
retstr = xstrdup(line);
for(;;) {
/* look ahead one char to determine if we need to fold */
ch = fgetc(f);
if (ch == EOF)
goto out;
ungetc(ch, f);
if ((ch != '\t') && (ch != ' ')) /* no more folding */
goto out;
if (getline(&line, &linecap, f) <= 0)
goto out;
if (unfolded != NULL) {
oldunfolded = *unfolded;
xasprintf(unfolded, "%s%s",
oldunfolded != NULL ? oldunfolded : "", line);
free(oldunfolded);
}
chomp(line);
oldretstr = retstr;
xasprintf(&retstr, "%s%s",
oldretstr != NULL ? oldretstr : "", line);
free(oldretstr);
}
out:
free(line);
return (retstr);
}
mlmmj/src/getlistdelim.c 0000664 0000000 0000000 00000002743 15023031135 0015612 0 ustar 00root root 0000000 0000000 /*
* Copyright 2005 Joel Aelwyn
* Copyright 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include "xmalloc.h"
#include "mlmmj.h"
#include "getlistdelim.h"
#include "ctrlvalue.h"
char *getlistdelim(int ctrlfd)
{
char *delimstr;
delimstr = ctrlvalue(ctrlfd, "delimiter");
if (delimstr == NULL || *delimstr == '\0') {
free(delimstr);
return (xstrdup(DEFAULT_RECIPDELIM));
}
return (delimstr);
}
mlmmj/src/incindexfile.c 0000664 0000000 0000000 00000004477 15023031135 0015573 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "incindexfile.h"
#include "log_error.h"
#include "xmalloc.h"
#include "utils.h"
int incindexfile(int listfd)
{
int fd, index = 0;
FILE *fp;
char *line = NULL;
size_t linecap = 0;
const char *errstr;
fd = openat(listfd, "index", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
if(fd == -1 && !lock(fd, true)) {
log_error(LOG_ARGS, "Error opening index file");
return 0;
}
fp = fdopen(fd, "r+");
if (fp == NULL) {
log_error(LOG_ARGS, "Error fdopening index file");
close(fd);
return (0);
}
index = 0;
if (getline(&line, &linecap, fp) > 0) {
/* eliminate everything which is not a number */
line[strspn(line, "0123456789")] = '\0';
index = strtoim(line, 0, INT_MAX, &errstr);
if (errstr != NULL) {
log_error(LOG_ARGS, "Error reading index file: invalid "
"line: %s", line);
free(line);
return (0);
}
free(line);
}
index++;
rewind(fp);
fprintf(fp, "%d", index);
fclose(fp); /* Lock is also released */
return index;
}
mlmmj/src/init_sockfd.c 0000664 0000000 0000000 00000004541 15023031135 0015416 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2002, 2003 Mads Martin Joergensen
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "init_sockfd.h"
#include "log_error.h"
void init_sockfd(int *sockfd, const char *relayhost, unsigned short port)
{
int on, sd = -1;
struct addrinfo *ai = NULL, *curai, hints = { 0 };
char srv[NI_MAXSERV];
*sockfd = -1;
hints.ai_socktype = SOCK_STREAM;
hints.ai_family = PF_UNSPEC;
snprintf(srv, sizeof(srv), "%d", port);
if (getaddrinfo(relayhost, srv, &hints, &ai) != 0) {
log_error(LOG_ARGS, "Unable to lookup for relayhost %s:%s",
relayhost, srv);
return;
}
for (curai = ai; curai != NULL; curai = curai->ai_next) {
if ((sd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0) {
continue;
}
if (connect(sd, ai->ai_addr, ai->ai_addrlen) != 0) {
close(sd);
sd = -1;
continue;
}
break;
}
freeaddrinfo(ai);
if (sd == -1) {
log_error(LOG_ARGS, "Could not connect to %s", relayhost);
return;
}
*sockfd = sd;
on = 1;
if(setsockopt(*sockfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&on,
sizeof(on)) < 0)
log_error(LOG_ARGS, "Could not set SO_KEEPALIVE");
}
mlmmj/src/listcontrol.c 0000664 0000000 0000000 00000044767 15023031135 0015514 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2003 Mads Martin Joergensen
* Copyright (C) 2023 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "xmalloc.h"
#include "mlmmj.h"
#include "listcontrol.h"
#include "prepstdreply.h"
#include "send_help.h"
#include "send_list.h"
#include "send_mail.h"
#include "log_error.h"
#include "statctrl.h"
#include "chomp.h"
#include "log_oper.h"
#include "ctrlvalues.h"
#include "ctrlvalue.h"
#include "subscriberfuncs.h"
#include "utils.h"
/* Must match the enum. CAREFUL when using commands that are substrings
* of other commands. In that case the longest one have to be listed
* first to match correctly. */
/* A closed list doesn't allow subscribtion and unsubscription
A closed list "sub" only dissallows subscription, not unsub. */
static struct ctrl_command ctrl_commands[] = {
{ "subscribe-digest", false, false, false, CTRL_SUBSCRIBE_DIGEST },
{ "subscribe-nomail", false, false, false, CTRL_SUBSCRIBE_NOMAIL },
{ "subscribe-both", false, false, false, CTRL_SUBSCRIBE_BOTH },
{ "subscribe", false, false, false, CTRL_SUBSCRIBE },
{ "confsub-digest", true , false, true , CTRL_CONFSUB_DIGEST },
{ "confsub-nomail", true , false, true , CTRL_CONFSUB_NOMAIL },
{ "confsub-both", true , false, true , CTRL_CONFSUB_BOTH },
{ "confsub", true , false, true , CTRL_CONFSUB },
{ "unsubscribe-digest", false, false, true , CTRL_UNSUBSCRIBE_DIGEST },
{ "unsubscribe-nomail", false, false, true , CTRL_UNSUBSCRIBE_NOMAIL },
{ "unsubscribe", false, false, true , CTRL_UNSUBSCRIBE },
{ "confunsub-digest", true , false, true , CTRL_CONFUNSUB_DIGEST },
{ "confunsub-nomail", true , false, true , CTRL_CONFUNSUB_NOMAIL },
{ "confunsub", true , false, true , CTRL_CONFUNSUB },
{ "bounces", true , true , true , CTRL_BOUNCES },
{ "release", true , true , true , CTRL_RELEASE },
{ "reject", true , true , true , CTRL_REJECT },
{ "permit", true , true , true , CTRL_PERMIT },
{ "obstruct", true , true , true , CTRL_OBSTRUCT },
{ "moderate", true , true , true , CTRL_MODERATE },
{ "help", false, true , true , CTRL_HELP },
{ "faq", false, true , true , CTRL_FAQ },
{ "get", true , true , true , CTRL_GET },
{ "list", false, true , true , CTRL_LIST }
};
struct listcontrol {
const char *fromemail;
const char *mlmmjsend;
bool subconfirm;
};
struct sub {
const char *typereq;
const char *ctrlstr;
const char *type;
const char *typedeny;
enum subtype typesub;
};
static bool
is_valid_email(const char *email, const char *log)
{
if (strchr(email, '@') == NULL) {
errno = 0;
log_error(LOG_ARGS, "%s request was "
" sent with an invalid From: header."
" Ignoring mail", log);
return (false);
}
return (true);
}
__dead2 static void
lc_sub(struct listcontrol *lc, struct ml *ml, struct sub *sub)
{
if (!is_valid_email(lc->fromemail, sub->typereq))
exit(EXIT_FAILURE);
if (sub->ctrlstr != NULL && statctrl(ml->ctrlfd, sub->ctrlstr)) {
char *queuefilename;
text *txt;
errno = 0;
log_error(LOG_ARGS, "%s request was denied", sub->typereq);
txt = open_text(ml->fd, "deny", "sub", "disabled",
sub->type, sub->typedeny);
MY_ASSERT(txt);
register_default_unformatted(txt, ml);
register_unformatted(txt, "subaddr", lc->fromemail);
queuefilename = prepstdreply(txt, ml, "$listowner$",
lc->fromemail, NULL);
MY_ASSERT(queuefilename);
close_text(txt);
send_help(ml, queuefilename, lc->fromemail);
}
log_oper(ml->fd, OPLOGFNAME, "mlmmj-sub: request for %s"
" subscription from %s", sub->type, lc->fromemail);
struct subscription subc = { 0 };
subc.subconfirm = lc->subconfirm;
subc.send_welcome_email = true;
subc.reasonsub = SUB_REQUEST;
subc.typesub = sub->typesub;
subc.gensubscribed = true;
exit(do_subscribe(ml, &subc, lc->fromemail) ? EXIT_SUCCESS : EXIT_FAILURE);
}
struct ctrl_command *
get_ctrl_command(const char *controlstr, char **param)
{
size_t cmdlen;
unsigned int ctrl;
for (ctrl=0; ctrl < NELEM(ctrl_commands); ctrl++) {
cmdlen = strlen(ctrl_commands[ctrl].command);
if (strncmp(controlstr, ctrl_commands[ctrl].command, cmdlen)
!= 0)
continue;
if (ctrl_commands[ctrl].accepts_parameter) {
if (controlstr[cmdlen] != '-') {
errno = 0;
log_error(LOG_ARGS, "Command \"%s\""
" requires a parameter, but no"
" parameter was given."
" Ignoring mail",
ctrl_commands[ctrl].command);
return (NULL);
}
if (strchr(controlstr + cmdlen + 1, '/')) {
errno = 0;
log_error(LOG_ARGS, "Slash (/) in"
" list control request,"
" discarding mail");
return (NULL);
}
*param = xstrdup(controlstr + cmdlen + 1);
} else {
if (controlstr[cmdlen] != '\0') {
errno = 0;
log_error(LOG_ARGS, "Command \"%s\""
" does not accept a parameter,"
" but a parameter was given."
" Ignoring mail",
ctrl_commands[ctrl].command);
return (NULL);
}
*param = NULL;
}
return (&ctrl_commands[ctrl]);
}
return (NULL);
}
int listcontrol(strlist *fromemails, struct ml *ml, const char *controlstr,
const char *mlmmjsend, const char *mailname)
{
char *bouncenr, *tmpstr;
char *param = NULL, *moderatefilename, *gatekeepfilename;
char *omitfilename;
char *omit = NULL;
char *c, *archivefilename, *sendfilename, *tosend;
text *txt;
char *queuefilename;
enum subtype ts = SUB_NONE;
const char *subtypename = NULL;
bounce_t bret;
struct ctrl_command *cc;
struct listcontrol lc = { 0 };
struct sub sub = { 0 };
struct subscription subc = { 0 };
lc.subconfirm = !statctrl(ml->ctrlfd, "nosubconfirm");
#if 0
log_error(LOG_ARGS, "controlstr = [%s]\n", controlstr);
log_error(LOG_ARGS, "tll_front(*fromemails) = [%s]\n",
tll_front(*fromemails));
#endif
cc = get_ctrl_command(controlstr, ¶m);
if (cc == NULL)
return (-1);
if(tll_length(*fromemails) != 1 && cc->type != CTRL_BOUNCES) {
errno = 0;
log_error(LOG_ARGS, "Ignoring mail with invalid From: "
"which was not a bounce: %d", tll_length(*fromemails));
return -1;
}
if (tll_length(*fromemails) >= 1)
lc.fromemail = tll_front(*fromemails);
lc.mlmmjsend = mlmmjsend;
/* We only need the control mail when bouncing, to save bounced msg */
if (cc->type != CTRL_BOUNCES)
unlink(mailname);
if (statctrl(ml->ctrlfd, "closedlist") && !cc->valid_when_closed_list) {
errno = 0;
log_error(LOG_ARGS, "A %s request was sent to a closed list. "
"Ignoring mail", cc->command);
return -1;
}
if (statctrl(ml->ctrlfd, "closedlistsub") && !cc->valid_when_closed_sub) {
errno = 0;
log_error(LOG_ARGS, "A %s request was sent to a subscription "
"closed list. Ignoring mail", cc->command);
return -1;
}
switch (cc->type) {
/* listname+subscribe-digest@domain.tld */
case CTRL_SUBSCRIBE_DIGEST:
sub.typereq = "A subscribe-digest";
sub.ctrlstr = "nodigestsub";
sub.type = "digest";
sub.typesub = SUB_DIGEST;
sub.typedeny = "sub-deny-digest";
__attribute__ ((fallthrough));
/* listname+subscribe-nomail@domain.tld */
case CTRL_SUBSCRIBE_NOMAIL:
if (sub.typereq == NULL) {
sub.typereq = "A subscribe-nomail";
sub.ctrlstr = "nomailsub";
sub.typesub = SUB_NOMAIL;
sub.type = "nomail";
sub.typedeny = "sub-deny-nomail";
}
__attribute__ ((fallthrough));
/* listname+subscribe-both@domain.tld */
case CTRL_SUBSCRIBE_BOTH:
if (sub.typereq == NULL) {
sub.typereq = "A subscribe-both";
sub.ctrlstr = "nodigestsub";
sub.typesub = SUB_BOTH;
sub.type = "both";
sub.typedeny = "sub-deny-digest";
}
__attribute__ ((fallthrough));
/* listname+subscribe@domain.tld */
case CTRL_SUBSCRIBE:
if (sub.typereq == NULL) {
sub.typereq = "A subscribe";
sub.ctrlstr = NULL;
sub.type = "regular";
sub.typesub = SUB_NORMAL;
}
lc_sub(&lc, ml, &sub);
break;
/* listname+subconf-digest-COOKIE@domain.tld */
case CTRL_CONFSUB_DIGEST:
subc.typesub = SUB_DIGEST;
subtypename = "digest";
__attribute__ ((fallthrough));
/* listname+subconf-nomail-COOKIE@domain.tld */
case CTRL_CONFSUB_NOMAIL:
if (subtypename == NULL) {
subc.typesub = SUB_NOMAIL;
subtypename = "nomail";
}
__attribute__ ((fallthrough));
/* listname+subconf-both-COOKIE@domain.tld */
case CTRL_CONFSUB_BOTH:
if (subtypename == NULL) {
subc.typesub = SUB_BOTH;
subtypename = "both";
}
__attribute__ ((fallthrough));
/* listname+subconf-COOKIE@domain.tld */
case CTRL_CONFSUB:
if (subtypename == NULL) {
subc.typesub = SUB_NORMAL;
subtypename = "regular list";
}
tmpstr = get_subcookie_content(ml->fd, false, param);
if (tmpstr == NULL) {
/* invalid COOKIE */
errno = 0;
log_error(LOG_ARGS, "A subconf request was"
" sent with a mismatching cookie."
" Ignoring mail");
return -1;
}
subc.send_welcome_email = true;
subc.reasonsub = SUB_CONFIRM;
subc.gensubscribed = true;
subc.mlmmjsend = lc.mlmmjsend;
log_oper(ml->fd, OPLOGFNAME, "mlmmj-sub: %s confirmed"
" subscription to %s", tmpstr, subtypename);
exit(do_subscribe(ml, &subc, tmpstr) ? EXIT_SUCCESS : EXIT_FAILURE);
/* DEPRECATED: listname+unsubscribe-digest@domain.tld */
case CTRL_UNSUBSCRIBE_DIGEST:
/* DEPRECATED: listname+unsubscribe-nomail@domain.tld */
case CTRL_UNSUBSCRIBE_NOMAIL:
/* listname+unsubscribe@domain.tld */
case CTRL_UNSUBSCRIBE:
if (!is_valid_email(lc.fromemail, "An unsubscribe"))
return -1;
log_oper(ml->fd, OPLOGFNAME, "mlmmj-unsub: %s requests"
" unsubscribe", lc.fromemail);
do_unsubscribe(ml, lc.fromemail, SUB_ALL, SUB_REQUEST,
false, lc.subconfirm, false, lc.subconfirm);
exit(EXIT_SUCCESS);
break;
/* listname+unsubconf-digest-COOKIE@domain.tld */
case CTRL_CONFUNSUB_DIGEST:
ts = SUB_DIGEST;
subtypename = "-digest";
__attribute__ ((fallthrough));
/* listname+unsubconf-nomail-COOKIE@domain.tld */
case CTRL_CONFUNSUB_NOMAIL:
if (ts == SUB_NONE) {
ts = SUB_NOMAIL;
subtypename = "-nomail";
}
__attribute__ ((fallthrough));
/* listname+unsubconf-COOKIE@domain.tld */
case CTRL_CONFUNSUB:
if (ts == SUB_NONE) {
ts = SUB_ALL;
subtypename = "";
}
tmpstr = get_subcookie_content(ml->fd, true, param);
if (tmpstr == NULL) {
/* invalid COOKIE */
errno = 0;
log_error(LOG_ARGS, "An unsubconf%s request was"
" sent with a mismatching cookie."
" Ignoring mail", subtypename);
return -1;
}
do_unsubscribe(ml, tmpstr, ts, SUB_CONFIRM,
false, false, false, true);
exit(EXIT_SUCCESS);
break;
/* listname+bounces-INDEX-user=example.tld@domain.tld */
case CTRL_BOUNCES:
bouncenr = param;
c = strchr(param, '-');
if (!c) { /* Exec with dsn parsing, since the addr is missing */
c = dsnparseaddr(mailname);
if (c == NULL)
exit(EXIT_SUCCESS);
char *tmp = strrchr(c, '@');
MY_ASSERT(tmp);
*tmp = '=';
} else {
*c++ = '\0';
}
bret = bouncemail(ml->fd, lowercase(c), bouncenr);
if (bret == BOUNCE_DONE)
save_lastbouncedmsg(ml->fd, c, mailname);
if (bret == BOUNCE_FAIL)
exit(EXIT_FAILURE);
unlink(mailname);
exit(EXIT_SUCCESS);
break;
/* listname+release-COOKIE@domain.tld */
case CTRL_RELEASE:
/* DEPRECATED: listname+moderate-COOKIE@domain.tld */
/* DEPRECATED: listname+moderate-subscribeCOOKIE@domain.tld */
case CTRL_MODERATE:
/* Subscriber moderation; DEPRECATED */
if(strncmp(param, "subscribe", 9) == 0) {
tmpstr = xstrdup(param + 9);
free(param);
param = tmpstr;
goto permit;
}
xasprintf(&moderatefilename, "moderation/%s", param);
xasprintf(&sendfilename, "%s.sending", moderatefilename);
/* Rename it to avoid mail being sent twice */
if(renameat(ml->fd, moderatefilename, ml->fd, sendfilename) != 0) {
if (errno == ENOENT) {
errno = 0;
log_error(LOG_ARGS, "A release request was"
" sent with a mismatching cookie."
" Ignoring mail");
} else {
log_error(LOG_ARGS, "Could not rename to .sending");
}
free(sendfilename);
free(moderatefilename);
return (-1);
}
xasprintf(&omitfilename, "%s.omit", moderatefilename);
errno = 0;
omit = ctrlvalue(ml->fd, omitfilename);
if (omit != NULL || errno != ENOENT)
unlinkat(ml->fd, omitfilename, 0);
free(omitfilename);
free(moderatefilename);
log_oper(ml->fd, OPLOGFNAME, "%s released %s", lc.fromemail, param);
xasprintf(&tosend, "%s/%s", ml->dir, sendfilename);
if (omit != NULL)
exec_or_die(mlmmjsend, "-L", ml->dir, "-o", omit,
"-m", tosend, NULL);
exec_or_die(mlmmjsend, "-L", ml->dir, "-m", tosend, NULL);
break;
/* listname+reject-COOKIE@domain.tld */
case CTRL_REJECT:
xasprintf(&moderatefilename, "moderation/%s", param);
if (unlinkat(ml->fd, moderatefilename, 0) != 0) {
if (errno == ENOENT) {
errno = 0;
log_error(LOG_ARGS, "A reject request was"
" sent with a mismatching cookie."
" Ignoring mail");
} else {
log_error(LOG_ARGS, "Could not unlink %s",
moderatefilename);
}
free(moderatefilename);
return -1;
}
log_oper(ml->fd, OPLOGFNAME, "%s rejected %s", lc.fromemail, param);
free(moderatefilename);
xasprintf(&moderatefilename, "moderation/%s.omit", param);
unlinkat(ml->fd, moderatefilename, 0);
free(moderatefilename);
free(param);
break;
/* listname+permit-COOKIE@domain.tld */
case CTRL_PERMIT:
permit:
xasprintf(&gatekeepfilename, "moderation/subscribe%s", param);
if (faccessat(ml->fd, gatekeepfilename, F_OK, 0) < 0) {
free(gatekeepfilename);
/* no mail to moderate */
errno = 0;
log_error(LOG_ARGS, "A permit request was"
" sent with a mismatching cookie."
" Ignoring mail");
return -1;
}
log_oper(ml->fd, OPLOGFNAME, "%s permitted %s",
lc.fromemail, param);
subc.modstr = param;
subc.send_welcome_email = true;
subc.gensubscribed = true;
subc.reasonsub = SUB_PERMIT;
subc.mlmmjsend = lc.mlmmjsend;
exit(do_subscribe(ml, &subc, NULL) ? EXIT_SUCCESS : EXIT_FAILURE);
break;
/* listname+obstruct-COOKIE@domain.tld */
case CTRL_OBSTRUCT:
xasprintf(&gatekeepfilename, "moderation/subscribe%s", param);
if (unlinkat(ml->fd, gatekeepfilename, 0) != 0) {
if (errno == ENOENT) {
errno = 0;
log_error(LOG_ARGS, "An obstruct request was"
" sent with a mismatching cookie."
" Ignoring mail");
} else {
log_error(LOG_ARGS, "Could not unlink %s/%s",
ml->dir, gatekeepfilename);
}
free(param);
free(gatekeepfilename);
return -1;
}
log_oper(ml->fd, OPLOGFNAME, "%s obstructed %s",
tll_front(*fromemails), param);
free(param);
free(gatekeepfilename);
break;
/* listname+help@domain.tld */
case CTRL_HELP:
if (!is_valid_email(tll_front(*fromemails), "A help"))
return -1;
log_oper(ml->fd, OPLOGFNAME, "%s requested help",
tll_front(*fromemails));
txt = open_text(ml->fd, "help", NULL, NULL, NULL, "listhelp");
MY_ASSERT(txt);
register_default_unformatted(txt, ml);
queuefilename = prepstdreply(txt, ml,
"$listowner$", tll_front(*fromemails), NULL);
MY_ASSERT(queuefilename);
close_text(txt);
send_help(ml, queuefilename, tll_front(*fromemails));
break;
/* listname+faq@domain.tld */
case CTRL_FAQ:
if (!is_valid_email(tll_front(*fromemails), "A faq"))
return -1;
log_oper(ml->fd, OPLOGFNAME, "%s requested faq",
tll_front(*fromemails));
txt = open_text(ml->fd, "faq", NULL, NULL, NULL, "listfaq");
MY_ASSERT(txt);
register_default_unformatted(txt, ml);
queuefilename = prepstdreply(txt, ml,
"$listowner$", tll_front(*fromemails), NULL);
MY_ASSERT(queuefilename);
close_text(txt);
send_help(ml, queuefilename, tll_front(*fromemails));
break;
/* listname+get-INDEX@domain.tld */
case CTRL_GET:
if (statctrl(ml->ctrlfd, "noget")) {
errno = 0;
log_error(LOG_ARGS, "A get request was sent to a list"
" with the noget option set. Ignoring mail");
return -1;
}
if (statctrl(ml->ctrlfd, "subonlyget")) {
if(is_subbed(ml->fd, tll_front(*fromemails), 0) ==
SUB_NONE) {
errno = 0;
log_error(LOG_ARGS, "A get request was sent"
" from a non-subscribed address to a"
" list with the subonlyget option set."
" Ignoring mail");
return -1;
}
}
/* sanity check--is it all digits? */
if (param[strspn(param, "0123456789")] != '\0') {
errno = 0;
log_error(LOG_ARGS, "The get request contained"
" non-digits in index. Ignoring mail");
return -1;
}
int index = strtoim(param, 0, INT_MAX, NULL);
xasprintf(&archivefilename, "archive/%d", index);
int fd = openat(ml->fd, archivefilename, O_RDONLY|O_CLOEXEC);
if (fd == -1) {
log_error(LOG_ARGS, "Unable to open archive file");
free(archivefilename);
return -1;
}
struct mail mail = { 0 };
mail.to = tll_front(*fromemails);
mail.from = get_bounce_from_adr(mail.to, ml, index);
mail.fp = fdopen(fd, "r");
log_oper(ml->fd, OPLOGFNAME, "%s got archive/%s",
tll_front(*fromemails), param);
if (!send_single_mail(&mail, ml, true)) {
/* TODO: save to queue */
return (-1);
}
break;
/* listname+list@domain.tld */
case CTRL_LIST:
if(statctrl(ml->ctrlfd, "nolistsubsemail"))
return -1;
const char *owner = tll_front(*fromemails);
if (!ctrlvalues_contains(ml->ctrlfd, "owner", owner, false)) {
errno = 0;
log_error(LOG_ARGS, "A list request was sent to the"
" list from a non-owner address."
" Ignoring mail");
return -1;
}
send_list(ml, owner);
break;
/* listname+???@domain.tld */
default:
errno = 0;
log_error(LOG_ARGS, "Unknown command \"%s\". Ignoring mail",
controlstr);
return -1;
}
return 0;
}
mlmmj/src/log_error.c 0000664 0000000 0000000 00000006045 15023031135 0015115 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2004 Morten K. Poulsen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include "xmalloc.h"
#include "log_error.h"
#include "config.h"
#ifdef HAVE_SYSLOG_H
#include
#endif
static char *log_name = NULL;
static bool syslog_is_open = false;
#ifdef HAVE_SYSLOG
static int syslog_logopt = LOG_PID|LOG_CONS;
#endif
static void
_openlog(bool reopen)
{
#ifdef HAVE_SYSLOG
if (!reopen) {
if (syslog_is_open)
return;
} else {
if (!syslog_is_open)
closelog();
}
openlog(log_name, syslog_logopt, LOG_MAIL);
syslog_is_open = true;
#endif
}
void log_set_name(const char* name)
{
free(log_name);
log_name = xstrdup(name);
_openlog(true);
}
void
log_activate_stderr(void)
{
#ifdef HAVE_SYSLOG
syslog_logopt |= LOG_PERROR;
_openlog(true);
#endif
}
void
log_set_namef(const char *fmt, ...)
{
char *buf;
va_list ap;
int i;
va_start(ap, fmt);
i = vasprintf(&buf, fmt, ap);
va_end(ap);
if (i < 0 || buf == NULL)
abort();
free(log_name);
log_name = buf;
_openlog(true);
}
void log_free_name(void)
{
free(log_name);
}
void
log_err(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
#ifdef HAVE_SYSLOG
_openlog(false);
vsyslog(LOG_ERR, fmt, ap);
#else
char *buf;
i = vasprintf(&buf, fmt, ap);
fprintf(stderr, "%s[%d]: %s\n", log_name, (int) getpid(), buf);
free(buf);
#endif
va_end(ap);
}
void log_error(const char *file, int line, const char *errstr,
const char *fmt, ...)
{
char *buf;
va_list ap;
int i;
va_start(ap, fmt);
i = vasprintf(&buf, fmt, ap);
va_end(ap);
if (i < 0 || buf == NULL)
abort();
if (!log_name) log_name = "mlmmj-UNKNOWN";
#ifdef HAVE_SYSLOG
_openlog(true);
syslog(LOG_ERR, "%s:%d: %s: %s", file, line, buf, errstr);
#else
fprintf(stderr, "%s[%d]: %s:%d: %s: %s\n", log_name, (int)getpid(),
file, line, buf, errstr);
#endif
free(buf);
}
mlmmj/src/log_oper.c 0000664 0000000 0000000 00000005177 15023031135 0014736 0 ustar 00root root 0000000 0000000 /* Copyright (C) 2005 Mads Martin Joergensen < mmj AT mmj DOT dk >
*
* $Id$
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "xmalloc.h"
#include "mlmmj.h"
#include "log_error.h"
#include "log_oper.h"
#include "wrappers.h"
#include "utils.h"
int log_oper(int listfd, const char *basename, const char *fmt, ...)
{
int fd, statres;
char ct[26], *tmp;
struct stat st;
time_t t;
va_list ap;
statres = fstatat(listfd, basename, &st, AT_SYMLINK_NOFOLLOW);
if(statres < 0 && errno != ENOENT) {
log_error(LOG_ARGS, "Could not stat logfile %s", basename);
return -1;
}
if(statres >= 0 && st.st_size > (off_t)OPLOGSIZE) {
xasprintf(&tmp, "%s.rotated", basename);
if(renameat(listfd, basename, listfd, tmp) < 0) {
log_error(LOG_ARGS, "Could not rename %s,%s",
basename, tmp);
}
free(tmp);
}
fd = openat(listfd, basename, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR);
if(fd < 0 && !lock(fd, true)) {
log_error(LOG_ARGS, "Could not open %s", basename);
return -1;
}
if((time(&t) == (time_t)-1) || (ctime_r(&t, ct) == NULL))
strncpy(ct, "Unknown time", sizeof(ct));
else
ct[24] = '\0';
va_start(ap, fmt);
if (dprintf(fd, "%s ", ct) < 0)
log_error(LOG_ARGS, "Could not write to %s", basename);
if (vdprintf(fd, fmt, ap) <0)
log_error(LOG_ARGS, "Could not write to %s", basename);
if (dprintf(fd, "\n") < 0)
log_error(LOG_ARGS, "Could not write to %s", basename);
va_end(ap);
close(fd);
return 0;
}
mlmmj/src/mail-functions.c 0000664 0000000 0000000 00000007554 15023031135 0016061 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2002, 2003 Mads Martin Joergensen
* Copyright (C) 2022 Baptiste Daroussin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include