| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Add the ContentFilter gui component.
|
| |
|
|
| |
options.
|
| | |
|
| |
|
|
|
| |
NewVars(): Add attributes filter_mime_types, filter_content, and
convert_html_to_plaintext if they are missing.
|
| |
|
|
|
| |
DATA_FILE_VERSION: Bump to pick up the new content filtering
attributes.
|
| |
|
|
|
| |
InitVars(): Add attributes filter_mime_types, filter_content, and
convert_html_to_plaintext.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
HTML_TO_PLAIN_TEXT_COMMAND: A command invoked through os.popen() which
can convert from html to plain text. The default is to use lynx -dump.
GLOBAL_PIPELINE: Add the MimeDel handler.
ADMIN_CATEGORIES: Add the contentfilter category just before the
topics category.
DEFAULT_FILTER_CONTENT: A flag which sets the system-wide default for
whether lists will filter MIME content or not. Defaults to 0 (until
this is tried-and-true).
DEFAULT_FILTER_MIME_TYPES: A list of strings of format
maintype/subtype or maintype which are the MIME types to filter. By
default, it's empty.
DEFAULT_CONVERT_HTML_TO_PLAINTEXT: A flag which specifies whether,
after normal content filtering is done, text/html parts should be
converted to text/plain.
|
| | |
|
| |
|
|
|
| |
may occur if the address requesting a change has been removed before
the change was confirmed. This closes SF bug #445961.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
still caught. Inspired by SF patch # 538983 by David Abrahams.
|
| | |
|
| |
|
|
| |
SF patch # 538983
|
| | |
|
| |
|
|
|
| |
setup.py command. This will avoid the confusing, but ignorable
warnings that distutils insists on emitting even with the -q option.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with indented text. Fixes,
process(): Fix short-circuit test for mlist.topics_enabled instead of
mlist.topics.
scanbody(): We don't need to do much more than filter out the blank
lines when creating a mini-message to look for Subject: and Keywords:
fields in the body. We /do/ need to create a subclassed
_ForgivingParser which simply stops processing instead of throwing
exceptions when it hits a line that's neither a header nor a
continuation. WIBNI if we didn't have to cut-n-paste the bulk fo the
_parseheaders() method?
|
| | |
|
| |
|
|
| |
return the lang description as a non-selectable string.
|
| |
|
|
| |
stderr.
|
| |
|
|
| |
sure why that is, but let's filter them out anyway.
|
| |
|
|
|
|
|
|
|
|
|
| |
attributes have been processed. This allows for the gui component to
do sanity checks across inter-dependent values. Default is no-op.
handleForm(): We don't need the `tag' arguments to addError() since
the default is 'Error: '. Also, rearrange the exception logic so that
the _setValue() call happens in an else and the except clauses don't
need to return. This allows the gui component to still get a chance
at _postValidate(), even if there were errors.
|
| |
|
|
|
|
|
| |
reply_to_address and reply_goes_to_list is valid, resetting and
spitting out an error if not.
_setValue(): Don't use <p> tags in the error message.
|
| |
|
|
|
|
|
|
| |
situation got set: there's an empty (after stripping)
reply_to_address, and reply_goes_to_list is set to "explicit
address". This isn't a legal combination (but could have gotten this
way through legacy settings or bad bin/withlist manners), so reset
both values.
|
| |
|
|
|
|
|
| |
comparison. The online help says:
If a posting has this number, or more, of recipients, it is held
for admin approval. Use 0 for no ceiling.
|
| |
|
|
|
| |
in the set_payload() call. multipart/*'s never need a charset
parameter.
|
| |
|
|
|
| |
first, remove any trailing slash, second surround the url in angle
brackets.
|
| | |
|
| |
|
|
|
| |
make sense any more, many needed changing, etc. I really should run
these more often (and add to them!)
|
| | |
|
| | |
|
| |
|
|
| |
for the deprecated add_payload().
|
| |
|
|
| |
deprecated in favor of formataddr().
|
| | |
|
| | |
|
| |
|
|
|
|
| |
deprecated in email 2.0. For calls on the mimemsg, change them into
attach() calls. For calls on the rfc1153msg, change them into
set_payload() calls.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
a `body' attribute, but we're already getting the flat string of the
message, so we just need to record it's length (since this is all that
we log.
These changes are untested, although they should be correct.
Sendmail.py is highly discouraged anyway, so I don't intend to do any
testing of it.
Closes SF bug #511020
|
| |
|
|
|
|
|
|
|
| |
delivery module (i.e. SMTPDirect) when it couldn't connect to the smtp
server. When this happens, log an error message, but only do it once
so we don't fill up logs/error with a message-per-second. We keep a
self.__logged flag which is set when we log the error and reset in the
class constructor, and when the process() function returned
successfully.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SMTP_MAX_SESSIONS_PER_CONNECTION. Specifically,
sendmail(): We can't return directly from the try-clause because then
the decrement of __numsessions won't be executed. Instead, stash the
results in a local variable, twiddle numsessions, and then return the
results.
process(): When doing bulkdeliver, be sure to only decorate the
message once. This prevents multiple headers and footers if the
message is requeued because of some temporary delivery problem.
Note: we don't need to do this for verpdeliver because each message is
crafted uniquely anyway.
Also, get rid of an unused local variable.
|
| |
|
|
|
|
| |
Loewis. This is necessary because the Japanese codecs are provided by
third parties, and don't integrate themselves correctly in earlier
Pythons.
|
| |
|
|
|
|
| |
trolling through user_options), we must continue after deleting the
entry in user_options, otherwise the subsequent getMemberOption() call
will fail.
|
| |
|
|
| |
timestamp implies we're up-to-date. Otherwise our state gets zapped!
|
| |
|
|
|
| |
import error. This probably would have helped Brett Delmage debug his
problem easier.
|
| |
|
|
|
| |
Barry) which correctly checks for the prefix in encoded Subject:
headers.
|
| | |
|
| | |
|