[Mailman-Users] maiman3 demo and VM?

2015-07-05 Thread Sylvain Viart
Hi,


Could you point me to some mailman3 online demo, please?

I would like to play with turnkey https://www.turnkeylinux.org/ VM
image, I discovered recently, may be it will be a good challenge to have
a working mailman3 image in that format?

Is there a wiki page or something uptodate with such way how to quickly
setup such visualized environment?

Regards,
Sylvain.


signature.asc
Description: OpenPGP digital signature
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Scrub_nondigest questions may be attachment-move custom handler

2014-06-23 Thread Sylvain Viart
Hi Peter,

I programmed a custom handler that complete or replace Scrub_nondigest
handler:

AttachmentMove


You can test or try it here:
http://mailman.opensource-expert.com/mailman/listinfo/attachment-move

Hosting in done in France and could be slow to reach from foreign
countries.
This running version is not commited yet, minor i8n changes.
It's also working in production of a customer with a list of 930
subscribers since 3 weeks.

The code and the doc : https://github.com/Sylvain303/mailman-AttachmentMove


Le 23/06/2014 10:03, Peter Shute a écrit :
 If anyone who's using this option could forward me a message from their list 
 with a linked image so I can check how well it works, that would be greatly 
 appreciated

AttachmentMove  keeps embedded images, they could be moved as well.
The remote hosting for attachment can be same or a different one that
the server running mailman.

To reply to your first post:

 We're considering enabling the scrub_nondigest option for our list. The aim 
 is to allow members to send jpg files to the list (currently filtered) and 
 have mailman include a link to them in messages instead of the actual 
 attachment.

That is the purpose of AttachmentMove.

 I believe it will store the scrubbed images in the archives. We have 
 archiving turned off. Do we need to turn them on to allow the images to be 
 placed there, or will it happen anyway?

Attachment are stored locally and on a remote hosting. The local
storage (on the mailman server) is not the archive. And it is used to
avoid duplicate file name when uploaded on the webserver.

 Once we have images stored in the archives, how easy is it for members to 
 access them when they click on the links in the messages? Will they need a 
 password to see them?

AttachmentMove, publish the image on a different hosting no password are
required, the goal was to keeps user away for technical details.

 Will we be able to selectively delete images when our disk space begins to 
 fill up? Or will they all be stored in a single archive file? We're using 
 cpanel, if that matters.

Not storage management is coded yet, a cron with the good find -mtime
could do the trick.
It's in my idea to handle that too.

 If anyone who's using this option could forward me a message from their list 
 with a linked image so I can check how well it works, that would be greatly 
 appreciated.

I sent you an example we have made on the test list.


Let me know if that meet your needs.

Regards,
Sylvain.

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Scrub_nondigest questions may be attachment-move custom handler

2014-06-23 Thread Sylvain Viart
Hi Peter,

Le 23/06/2014 12:57, Peter Shute a écrit :
 I was testing that for you a few weeks ago. I just tried again, and it seems 
 to work smoothly now.

That's true, thanks. :-)
You did just send a non html mail, right?

AttachmentMove also support html formating.

 Could that be made to automatically resize images? E.g. maximum dimensions 
 800x800 pixels.

Yes it could.

At the stage where the image is detached it can be manipulated,
including stored on some image cloud storage with other feature, like
albums for example. Given that storage as an API that a programmer can
use to store the image remotely.

With linux server there's  plenty of tools for resizing image, with and
without python.

If you don't need the remote simplification of AttachmentMove, you may
also look at ThunderBird cloud storage FileLink extension.

Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Formatting the Welcome Message

2014-06-12 Thread Sylvain Viart

Le 11/06/2014 18:01, Larry Kuenning a écrit :
Thus _this is important_ will be underlined in Thunderbird, _but this 
is also important_ will not (at least if the line break falls within 
the markers, as it did when I tested this by sending it to myself). 


Yep it doesn't work. Is a ticket opened on the Thunderbird's bug tracker?

Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Setting uo a closed list

2014-06-05 Thread Sylvain Viart

Le 05/06/2014 14:12, BONNET, Frank a écrit :

I need to setup a closed list. That is a list where only members
can post AND cannot unsubscribe , this would be an emergency list
so it is really important that users do not unsubscribe !


Looks like:

Privacy options...
[Subscription rules]

What steps are required for subscription?

(Details for subscribe_policy)

Require approval at least…

But they may be able to disable delivery… Even if they are still subscribed.

Googling :  mailman closed list
Seems to give some result too.


Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] testing attachment-move custom handler

2014-06-03 Thread Sylvain Viart

Hi,

Le 03/06/2014 06:18, Mark Sapiro a écrit :

Of course it introduces storage and inode fillup…
= Is there some cron or scheduled code available?

To do what?


Purging old files.

I'm digging the way I should document the installation process. As this 
Handler is suppose to introduce easiness, after this installation, 
installing it is quite hard. So, I guess I should also provide a purge. 
A single oneliner bash script may accomplish this goal.


Note that if you are thinking about i18n from the point of view of 
your process being ultimately incorporated into the Mailman 
distribution, I think your use case is not of sufficient general 
interest to warrant that. 


The purpose of attachment-move is to:

   Integrate remotely (server side) the behavior of hosting the
   attached file online (cloud hosting if you want). Mailman doesn't
   provide yet a /simple way/ to do that. But I found the behavior of
   the whole mailing list very powerful, but very complicated for basic
   user.

   User who knows how to attach a document, but certainly not how to
   upload it somewhere, and even know less how to link it back in the
   email. And even lesser the impact of sending this attachment to
   hundred or thousand peoples… No to speak about the headache of the
   administrator to keep is hosting delivering email…


Your advise about i18n are good thanks. My question was more about how 
to translate part of the text inserted in the mail. As I use the Handler 
for French an English on the same server…


Your indication seems to confirm, that integrating translation on an 
external Handler seems hard enough to make it fail most list administrator.


By the way, your reply on gettext an make command is excellent, an would 
probably help googling for such topic.
Given this information and also because of the text I use is so small, I 
may pass it by the list configuration first.


mlist.translation_attachment_moved = 'Attachment available here:'

Of course if the list is multi-language it wont work. But it can be a 
good start.


Thank you, for your valuable help.
Regards,
Sylvain.
__

I'm looking for beta tester for this custom mailman's Handler.
http://mailman.opensource-expert.com/mailman/listinfo/attachment-move
Hosting in done in France and could be slow to reach from foreign 
countries.

Open Source code and installation doc here:
https://github.com/Sylvain303/mailman-AttachmentMove



--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] testing attachment-move custom handler

2014-06-02 Thread Sylvain Viart

Hi,

We have done some tests. Thanks people testing it.

Le 01/06/2014 11:38, Sylvain Viart a écrit :

I'm looking for beta tester for my custom Handler.
http://mailman.opensource-expert.com/mailman/listinfo/attachment-move


Hosting in done in France and could be slow to reach from foreign countries.

I've updated the code and the doc
https://github.com/Sylvain303/mailman-AttachmentMove

The remaining problems:

= content encoding.
If you send an email encoded in us-ascii it is rewritten in utf-8 to 
handle the text footer.


For some unknown reason (to me) the part are now base64 encoded (may be 
due to multi-byte characters).

Is it a bad thing for spam detection that the content is base64?
Or should I let it that way.


I've disabled the use of the borrowed calculate_attachments_dir(mlist, 
msg, msgdata) function. As it creates unique name but only for a single 
message. Attachment are now stored locally on a dedicated folder 
'attachments-moved' next to 'attachments' used by Scrubber.py.


This ensure unique filename on the remote storage.

Of course it introduces storage and inode fillup…
= Is there some cron or scheduled code available?

There's a crontab.in  an also one installed by the debian package.

= About translation of the footer, what is the procedure?
I found a huge:
http://wiki.list.org/display/DEV/Managing+Translations
http://wiki.list.org/display/DEV/i18nhowto

I don't know if I will manage to write a human bearable procedure to 
install translation as well…


Regards,
Sylvain.

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] looking for beta tester: attachment-move custom handler

2014-06-01 Thread Sylvain Viart

Hi,

I'm looking for beta tester for my custom Handler.
Before to put it in production for my client.

I've setup a list here:

http://mailman.opensource-expert.com/mailman/listinfo/attachment-move

Subscribe and post attachment.
They're supposed to be detached and posted to a remote hosting.

The email content is modified, a link to the moved content is added in 
txt and html.


Give it a try.
I faced a bug with mixed encoding. Normally this is corrected.
You can make it crash… Go ahead.
If it crashes nothing is delivered.

The handler is installed in the pipeline that way:

 # inserting in the pipeline
mlist.pipeline = [
'SpamDetect',
'Approve',
'Replybot',
'Moderate',
'Hold',
# inserting the Handler here.
'AttachmentMove',
'MimeDel',
'Scrubber',
'Emergency',
'Tagger',
'CalcRecips',
'AvoidDuplicates',
'Cleanse',
'CleanseDKIM',
'CookHeaders',
'ToDigest',
'ToArchive',
'ToUsenet',
'AfterDelivery',
'Acknowledge',
'ToOutgoing',
]

Feedback are welcome.

The github repository doesn't host the last revision yet.
The documentation for installation needs update too.

Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] mailman-AttachmentMove: completely remove moved attachment?

2014-05-15 Thread Sylvain Viart

Hi,

What'd be the trouble if I completely remove attachment from the message?

First I've copied the behavior of the Handler Scrubber.py  and 
ThunderBird filelink module.

It wipes the attachment but sill send a fake one. Which looks like:

--020101070601020108020001
X-Mozilla-Cloud-Part: cloudFile; url=http://remotelocation/remotefile; 
name=original_name.pdf
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit


Regards,
Sylvain
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] count members?

2014-05-08 Thread Sylvain Viart

document.write('927');

Hi,

Is there some simple way to just get a counter of the number member 
subscribed in a list?


So it can be put back in some html content.

I've a script for another tool which outputs JavaScript for example:

document.write('927');


(not related, searching the word counter gave me this page : 
http://wiki.list.org/display/~valium I suppose you can safely remove it)



Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] count members?

2014-05-08 Thread Sylvain Viart

On 08/05/2014 12:07, Sajan Parikh wrote:
You could on a cron write the output of the following command to a 
file somewhere in your web root, then use your Javascript to read the 
contents of that file.


root@mailman:/var/lib/mailman# ./bin/list_members discuss | wc -l
16
root@mailman:/var/lib/mailman#



Thanks.

I also found:

http://literalbarrage.org/blog/2011/11/14/export-mailman-subscriber-address-lists-without-sshshell-access/

And:

https://mail.python.org/pipermail/mailman-users/2010-October/070389.html

Is there some simple way to just get a counter of the number member 
subscribed in a list?




I don't have shell access on the mailman server, me neither.

So I wrote:

wget -O - --post-data adminpw=${adminpw}  \
${listserv}/cgi-bin/mailman/admin/${listname}/members  out

And started to hack with sed…

This gives some partial result:

sed -n '/td COLSPAN=11 BGCOLOR=#ddcenterem/ { 
s/[^]\+//g  ; s/[^0-9 ]\+//g p }' out | awk '{print $2}'

927

The output stored in out have some accentuated character not matching 
the current locale of my bash session. So it seems complicated to 
perform the match with sed only…


I've rewritten it in PHP for the web purpose. It is simpler to match number.
I share it here, in case of some interest:

https://gist.github.com/Sylvain303/e012b2a0beec0ffbb6f0


Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] web search members criteria mod

2014-05-08 Thread Sylvain Viart

Hi,

Is it possible to use the member management form, or some tricks, to 
filter members authorized to post to an announce list?


newsletter : How do I create a newsletter/announcement/one-way list?
http://wiki.list.org/pages/viewpage.action?pageId=4030685


May be not…
Should I use : accept_these_nonmembers  and moderate everyone including 
the poster?



I know the trick about

  Approved: password

But I'm sure every post will bounce once, and the poster will forget it 
every time… :-\


Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] web search members criteria mod

2014-05-08 Thread Sylvain Viart

On 08/05/2014 15:47, Sylvain Viart wrote:
Is it possible to use the member management form, or some tricks, to 
filter members authorized to post to an announce list?


newsletter : How do I create a newsletter/announcement/one-way list?
http://wiki.list.org/pages/viewpage.action?pageId=4030685


Self reply of the question above, it seems you cant:

http://www.mail-archive.com/mailman-users%40python.org/msg55941.html
http://www.mail-archive.com/mailman-users%40python.org/msg42090.html

Only, form command line…

Good keywords: mod or moderator

May be by hacking the cgi with curl… (sick)

Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] #Mailman on twitter

2014-04-25 Thread Sylvain Viart

Hi,


Le 24/04/2014 22:37, Barry Warsaw a écrit :

What the hashtag #mailman stand for?


I know about IRC, thanks.
My question was about twitter's related topic found on this #hashtag.

https://twitter.com/search?q=%23mailmansrc=typd

I think it's related to the mail man, or postman, the guy who's deliver 
the post mail.

Not related to opensource software at all.

Pretty funny, understandable topics… :-)
(for me)

Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] #Mailman

2014-04-24 Thread Sylvain Viart

Amusing.

What the hashtag #mailman stand for?

I don't understand any topic, not mailman related at all…

Hey, great job for mailman 3! Congrats.

Regards,
Sylvain.


--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Mailman 2.1.18 release

2014-04-18 Thread Sylvain Viart

Hi,


Le 17/04/2014 20:32, Mark Sapiro a écrit :

I am pleased to announce the first release candidate for Mailman 2.1.18.

http://www.list.org
http://www.gnu.org/software/mailman
http://mailman.sourceforge.net/


No topic are presented about the fresh release on those website, right?

So a postable url about this announce would be?

http://www.mail-archive.com/mailman-users%40python.org/msg64098.html

Is there a better one?

Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Emails from yahoo members, are getting rejected by yahoo, Service Unavailable.

2014-04-18 Thread Sylvain Viart

Hi,

I may have missed some topic, but why SRS 
(http://en.wikipedia.org/wiki/Sender_Rewriting_Scheme) doesn't come to 
rescue here?


It isn't its original purpose?
Resigning outgoing messages with messaging server own DKIM's key.

Seem to be available by setuping  mm_cfg.py:

 - ALLOW_FROM_IS_LIST = Yes
 - REMOVE_DKIM_HEADERS = Yes
 - FROM_IS_LIST = 1


Did I miss something?

Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Emails from yahoo members, are getting rejected by yahoo, Service Unavailable.

2014-04-18 Thread Sylvain Viart

Le 18/04/2014 09:41, Alain Williams a écrit :

I may have missed some topic, but why SRS
(http://en.wikipedia.org/wiki/Sender_Rewriting_Scheme) doesn't come to rescue 
here?

SRS rewrites the *envelope* sender.

My understanding is that the YAHOO DKIM uses the From: header, not the envelope 
sender.


Oh I see. Thanks.
So to use mail's Header terminology, only the Return-path: is modified, 
not the From:


Is this related to DMARC in general?
May be not corrected by SRS, because of DMARC is more recent than SRS…

Or this is a yahoo challenging with a somewhat too strong configuration?
I mean, did they configure to specifically check the From: header?

Regards,
Sylvain.

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] handler to auto detach attachment and link it to a website keeping html

2014-04-15 Thread Sylvain Viart

Hi,

Le 13/04/2014 17:55, Mark Sapiro a écrit :

withlist is the tool for this. +
http://www.msapiro.net/scripts/test_handler.py

I also updated the FAQ at http://wiki.list.org/x/l4A9 to point to this script.


Thanks, it saves me a lot of re-testing boring emails. Especially useful 
as I never programmed in Python before.

And I do perform some SyntaxError!

I borrowed a code from Mailman/Handlers/MimeDel.py

def reset_payload(msg, txt, fname, url):
# Reset payload of msg to contents of subpart, and fix up content 
headers

msg.set_payload(txt)
del msg['content-type']
del msg['content-transfer-encoding']
del msg['content-disposition']
del msg['content-description']

msg.add_header('X-Mailman-Part', 'Attachment-moved', url=url)
msg.add_header('Content-Type', 'text/plain', charset='UTF-8', 
name=fname)

msg.add_header('Content-Transfer-Encoding', '8bit')
msg.add_header('Content-Disposition', 'attachment', filename=fname)
msg.add_header('Content-Description', Attachment-moved by Mailman)


Is it the correct way to use email.message.Message 
https://docs.python.org/2/library/email.message.htmlhttps://docs.python.org/2/library/email.message.html 
in order to replace an attachment with a dummy text file containing the 
link?


No other way to, remove all header in oneshot, or replace with a fresh 
parsed attachment?


A thunderbird Filelink 
https://support.mozilla.org/en-US/kb/filelink-large-attachments 
extension produced for example:


   X-Mozilla-Cloud-Part: cloudFile; url=http://ovh.to/someurl;
   name=crazy_heavy_to_much.pdf
   Content-Type: application/octet-stream
   Content-Transfer-Encoding: 7bit


I took this behavior and started to develop some parts.
I will limit the feature to my own context, not covering all case of mix 
of nested part attached…

But I will publish the source.

Is there a preferred repository or procedure?
Or is it ok to push it on git hub?

Regards,
Sylvain.

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] handler to auto detach attachment and link it to a website?

2014-04-11 Thread Sylvain Viart

Hi,


Le 28/03/2014 16:58, Mark Sapiro a écrit :
 As it says in that post, scrub_nondigest is an all or nothing feature.

I may code the behavior I've described for my need :

Detaching attachment, storing, linking back into the original mail.


4.67. How do I implement a custom handler in Mailman 
http://wiki.list.org/pages/viewpage.action?pageId=4030615



Following instruction here, I've started to develop my custom handler, 
as Scrubber is scrubbing too strong for my purpose.


Development question, is there a way to test the handler against a mail 
content, outside of the full mailman context?


Something like:

$ python -some-useful-switch-here MyHandler.py  mymail_withheader.txt

Is it more appropriate to post such question to mailman-developers list?

I've found: http://pythonhosted.org/mailman/src/mailman/docs/DEVELOP.html


Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] handler to auto detach attachment and link it to a website?

2014-03-29 Thread Sylvain Viart

Hi,

Thanks for the information.
In fact, topics I've found about scrubbing, or detaching attachment, are 
pretty old, related to computer science…


That's why I'm asking for fresh 2014 confirmation. :-)

Le 28/03/2014 16:58, Mark Sapiro a écrit :
As it says in that post, scrub_nondigest is an all or nothing feature. 
There is no current mechanism for scrubbing only those attachments 
greater than a given size. 


Hum, I will experiment it.
I may code the behavior I've described for my need :

Detaching attachment, storing, linking back into the original mail.

Which is supposed to be already mostly part of Scrubber.py handler.

I will probably requiring coding help, as I'm python new-bee (yes, a 
voluntary honey gift 8-) ).



4.82 How do I filter or scrub content before checking if a message is
too big? http://wiki.list.org/pages/viewpage.action?pageId=7602227


Is it related to archiving only, or does it perform what I've described?


That FAQ is about applying content filtering and/or scrubbing before
testing the message for a too big hold. It does nothing about only
scrubbing attachments over some size.


Is it not the same goal?
If you switch the order. Big attachment will be scrubbed so the 
message wont be too big anymore.


Oh, you're right I see… You mean you cant select the size of the 
attachment which will be detached by the scrubbing process. All 
attachment will be detached, no size checking.


I will let you informed.

Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] handler to auto detach attachment and link it to a website?

2014-03-28 Thread Sylvain Viart

Hi Mark,

Le 26/03/2014 20:32, Mark Sapiro a écrit :

My question is:

Is there any handler that I can setup in the pipeline to:

   * detach an attachment
   * post it to a webservice (or run a script uploading it to an online
 storage)
   * modify the content of the mail, linking it to the online stored
 attachment

How about just setting the list's web admin Non-digest options -
scrub_nondigest to Yes.


I've also found this option here, I didn't notice it before.

Any attachments larger than that size, I'd like to be scrubbed and a 
link url inserted 
https://mail.python.org/pipermail/mailman-users/2010-July/069955.html


4.82 How do I filter or scrub content before checking if a message is 
too big? http://wiki.list.org/pages/viewpage.action?pageId=7602227



Is it related to archiving only, or does it perform what I've described?
I didn't know that word 'scrub', it's used in the meaning of deep 
washing, right?



I must specify, is that the web server hosting the detached part of the 
message, will probably be a different server that the one hosting the 
mailman.


I may start to look at the code of Mailman/Handlers/Scrubber.py, right?

Thanks pointing me on this feature.
Regards,
Sylvain.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] handler to auto detach attachment and link it to a website?

2014-03-26 Thread Sylvain Viart

Hi,

I've a project to setup a mailman for newsletter.

I've found many interesting links about it. I will post them as a 
reminder at the end of this message, as it can help someone else.



My question is:

Is there any handler that I can setup in the pipeline to:

 * detach an attachment
 * post it to a webservice (or run a script uploading it to an online
   storage)
 * modify the content of the mail, linking it to the online stored
   attachment

?

Or a good base to program it.

The goal to achieve, is to permit restricted sender to write mail with 
attachment but do not replicate it to all member of the list.


Also for non technical writer, uploading the attachment and linking may 
be too painful.



Regards,
Sylvain.



Reference links, some may be pretty old.

newsletter : How do I create a newsletter/announcement/one-way list?
http://wiki.list.org/pages/viewpage.action?pageId=4030685

personalisation VERP exemple de mail, simple piste :
https://mail.python.org/pipermail/mailman-users/2003-February/026008.html

4.48. How can I change the HTML (or .txt) templates used by my mailing 
lists?

http://wiki.list.org/pages/viewpage.action?pageId=4030605

4.33. How do I put a subscribe form for my list on a web page? 
http://wiki.list.org/pages/viewpage.action?pageId=4030596


3.40. I want to completely customize the look and feel of Mailman – how 
do I do that? http://wiki.list.org/pages/viewpage.action?pageId=4030560


What is the largest list Mailman can run? 
http://wiki.list.org/pages/viewpage.action?pageId=4030518


[Mailman-Users] Keeping the Publich_HTML subscription page from popping 
up. http://www.mail-archive.com/mailman-users%40python.org/msg24296.html


[Mailman-Users] Editing confirm page 
http://www.mail-archive.com/mailman-users%40python.org/msg32261.html


Mailman processes incoming messages through a pipeline of handlers which 
each do parts of the message processing 
http://wiki.list.org/pages/viewpage.action?pageId=7602227



--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org