[Mailman-Users] Re: Editing the posting

Tom Neff tneff at bigfoot.com
Mon Sep 18 20:25:04 CEST 2000


Thomas Gramstad <thomas at ifi.uio.no> asked:
> How can I edit a posting that is to be approved -- e.g., removing
> an attachment?  Or is it impossible to do this?

I patched 1.1 to let me do this.  The patch is not perfect because if you
edit the posting any comments are ignored (that 'elif'); fixing this is
straightforward, I just didn't need to.

*** admindb.py.orig Sun Jun 13 04:10:09 1999
--- admindb.py  Mon Jan 17 01:14:50 2000
***************
*** 196,202 ****
        # We already handled this request.
        continue
    comment_key = 'comment-%d' % request_id
!   if form.has_key(comment_key):
        list.HandleRequest(request, v, form[comment_key].value)
    else:
        list.HandleRequest(request, v)
--- 196,205 ----
        # We already handled this request.
        continue
    comment_key = 'comment-%d' % request_id
!   contents_key = 'contents-%d' % request_id
!   if form.has_key(contents_key):
!       list.HandleRequest(request, v, None,
contents=form[contents_key].value)
!   elif form.has_key(comment_key):
        list.HandleRequest(request, v, form[comment_key].value)
    else:
        list.HandleRequest(request, v)
***************
*** 241,247 ****
    FontSize("+1", Bold('Contents:'))
          ])
      form.AddItem(t)
!     form.AddItem(Preformatted(val[2][1]))
      form.AddItem('<p>')


--- 244,252 ----
    FontSize("+1", Bold('Contents:'))
          ])
      form.AddItem(t)
!     # form.AddItem(Preformatted(val[2][1]))
!     form.AddItem(TextArea("contents-%d" % val[0], rows=30, cols=85,
!                  text=val[2][1]))
      form.AddItem('<p>')




> -----Original Message-----
> From: mailman-users-admin at python.org
> [mailto:mailman-users-admin at python.org]On Behalf Of
> mailman-users-request at python.org
> Sent: Monday, September 18, 2000 12:02 PM
> To: mailman-users at python.org
> Subject: Mailman-Users digest, Vol 1 #759 - 11 msgs
>
>
> Send Mailman-Users mailing list submissions to
> 	mailman-users at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.python.org/mailman/listinfo/mailman-users
> or, via email, send a message with subject or body 'help' to
> 	mailman-users-request at python.org
>
> You can reach the person managing the list at
> 	mailman-users-admin at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mailman-Users digest..."
>
>
> Today's Topics:
>
>    1. Renaming lists (Al Snell)
>    2. Editing the posting (Thomas Gramstad)
>    3. Re: Editing the posting (Chuq Von Rospach)
>    4. Another bug in Mailman (Zeljko Vrba)
>    5. Re: Another bug in Mailman (Chuq Von Rospach)
>    6. Re: Another bug in Mailman (Christopher P. Lindsey)
>    7. Re: Another bug in Mailman (Zeljko Vrba)
>    8. One passwd for one user over many mailinglists (Gerhard den
> Hollander)
>    9. How do you edit an archive? (Joe)
>   10. PHP WML (Nathalie Ducaud)
>   11. Re: Footers not appearing in messages. (alex wetmore)
>
> --__--__--
>
> Message: 1
> Date: Sun, 17 Sep 2000 20:21:12 +0100 (BST)
> From: Al Snell <alaric at alaric-snell.com>
> To: mailman-users at python.org
> Subject: [Mailman-Users] Renaming lists
>
>
> How might I rename a list? The usual channels about list naming complain
> bitterly that I mustn't use them to do anything other than alter
> capitalisation because that name is used as the email address, but if I
> changed the aliases to fit, would changing the list name with config_list
> work?
>
> TIA,
>
> ABS
>
> --
>
>  http://www.alaric-snell.com/  http://RF.Cx/  http://www.warhead.org.uk/
>    Any sufficiently advanced technology can be emulated in software
>
>
>
> --__--__--
>
> Message: 2
> Date: Mon, 18 Sep 2000 00:35:22 +0200
> From: Thomas Gramstad <thomas at ifi.uio.no>
> Reply-To: thomas at ifi.uio.no
> To: mailman-users at python.org
> Subject: [Mailman-Users] Editing the posting
>
> How can I edit a posting that is to be approved -- e.g., removing
> an attachment?  Or is it impossible to do this?  I tried to remove
> a HTML-attachment from a posting, deleting it from the approval
> window -- but when I let the message through, the attachment had
> returned...
>
> How can I get a copy of a posting that I do not approve?  If I
> reject or discard the posting it is gone.  If I approve it, it
> goes to the list.  But suppose I want a copy of the posting from
> the web page to my own mailbox, without or before I approve it.
> How do I do that?  Or is that impossible too?
> (is cut-and-paste and mail to myself the only way??)
>
> Perhaps I should just tell people to post to the owner-listname
> address instead of the list address.  That way I get to approve it
> using my favorite email client and editor.
>
> Thomas Gramstad
> thomas at ifi.uio.no
>
>
> --__--__--
>
> Message: 3
> Date: Sun, 17 Sep 2000 17:01:25 -0700
> To: thomas at ifi.uio.no, mailman-users at python.org
> From: Chuq Von Rospach <chuqui at plaidworks.com>
> Subject: Re: [Mailman-Users] Editing the posting
>
> At 12:35 AM +0200 9/18/00, Thomas Gramstad wrote:
> >How can I edit a posting that is to be approved -- e.g., removing
> >an attachment?
>
> right now you can't.
>
> >How can I get a copy of a posting that I do not approve?
>
> Use the "preserve posting" checkbox on the approval page.
>
> --
> Chuq Von Rospach - Plaidworks Consulting (mailto:chuqui at plaidworks.com)
> Apple Mail List Gnome (mailto:chuq at apple.com)
>
> And they sit at the bar and put bread in my jar
> and say 'Man, what are you doing here?'"
>
>
> --__--__--
>
> Message: 4
> Date: Mon, 18 Sep 2000 08:49:33 +0200
> From: Zeljko Vrba <zvrba at iskon.hr>
> To: mailman-users at python.org
> Subject: [Mailman-Users] Another bug in Mailman
>
> If there is a single dot on the line, Mailman does not deliver the rest
> of the message (beta5).
>
> Also, could someone tell me what does exit value 67 from sendmail mean?
> Mailman redelivers messages when sendmail returns 67, however
> those messages
> are already delivered. The result is that all members get
> duplicate messages
> every minute. (I'm using Sendmail method instead SMTPDirect). I
> had to patch
> up the code not to redeliver messages when it gets 67.
>
>
> After this line there is a single dot on a line and more text.
> .
> Text, text....
>
>
>
> --__--__--
>
> Message: 5
> Date: Mon, 18 Sep 2000 00:04:49 -0700
> To: Zeljko Vrba <zvrba at iskon.hr>, mailman-users at python.org
> From: Chuq Von Rospach <chuqui at plaidworks.com>
> Subject: Re: [Mailman-Users] Another bug in Mailman
>
> At 8:49 AM +0200 9/18/00, Zeljko Vrba wrote:
> >If there is a single dot on the line, Mailman does not deliver the rest
> >of the message (beta5).
>
> that is almost definitely your sendmail configuration, not mailman.
>
> --
> Chuq Von Rospach - Plaidworks Consulting (mailto:chuqui at plaidworks.com)
> Apple Mail List Gnome (mailto:chuq at apple.com)
>
> And they sit at the bar and put bread in my jar
> and say 'Man, what are you doing here?'"
>
>
> --__--__--
>
> Message: 6
> Date: Mon, 18 Sep 2000 02:11:38 -0500
> From: "Christopher P. Lindsey" <lindsey at mallorn.com>
> To: Zeljko Vrba <zvrba at iskon.hr>
> Cc: mailman-users at python.org
> Subject: Re: [Mailman-Users] Another bug in Mailman
>
> > If there is a single dot on the line, Mailman does not deliver the rest
> > of the message (beta5).
>
> Sounds like a sendmail misconfiguration.  Look at the "IgnoreDots"
> options or the -oi commandline option.
>
> > Also, could someone tell me what does exit value 67 from sendmail mean?
> > Mailman redelivers messages when sendmail returns 67, however
> those messages
> > are already delivered. The result is that all members get
> duplicate messages
> > every minute. (I'm using Sendmail method instead SMTPDirect). I
> had to patch
> > up the code not to redeliver messages when it gets 67.
>
> Take a look at /usr/include/sysexits.h on your system.  It lists all of
> the standard exit codes for programs.  On a Linux 2.0.35 system I
> have:
>
>    #define EX_NOUSER       67      /* addressee unknown */
>
> And further up:
>
>    *      EX_NOUSER -- The user specified did not exist.  This might
>    *              be used for mail addresses or remote logins.
>
> Are you sure sendmail is returning a 67, or is it your local delivery
> agent?
>
> > After this line there is a single dot on a line and more text.
> > .
> > Text, text....
>
> Umm...
>
> Chris
>
>
> --__--__--
>
> Message: 7
> Date: Mon, 18 Sep 2000 09:43:58 +0200
> From: Zeljko Vrba <zvrba at iskon.hr>
> To: "Christopher P. Lindsey" <lindsey at mallorn.com>
> Cc: mailman-users at python.org
> Subject: Re: [Mailman-Users] Another bug in Mailman
>
> On Mon, Sep 18, 2000 at 02:11:38AM -0500, Christopher P. Lindsey wrote:
> >
> >    *      EX_NOUSER -- The user specified did not exist.  This might
> >    *              be used for mail addresses or remote logins.
> >
> > Are you sure sendmail is returning a 67, or is it your local delivery
> > agent?
> >
> It's sendmail returning 67. Isn't this a serious bug: to repeatedly send
> mail every minute to all 100 recipients on a list when only one
> is unknown?
> Now it's hardcoded in my local installation to ignore 67 exit status.
>
>
>
> --__--__--
>
> Message: 8
> Date:   Mon, 18 Sep 2000 13:27:50 +0200
> From: Gerhard den Hollander <gerhard at jason.nl>
> To: mailman-users at python.org
> Reply-To: Gerhard den Hollander <gdenhollander at jasongeo.com>
> Subject: [Mailman-Users] One passwd for one user over many mailinglists
>
> Situation:
>
> I maintain (with mailman) a number (20-ish going to be 100-ish)
> mailinglists for our internal users.
>
> When I create a new mailinglist I usually add a number of users
>
> This means that these users get yet another default mailman passwd.
>
> What I want is to synchronise all user:passwd combinations over all the
> lists.
>
> e.g. currently I have
>
> List 1	(user:passwd)
> 	A:asdf
> 	B:sdfg
> 	C:dfgh
>
> List 2
> 	A:erty
> 	C:rtyu
> 	D:ytur
>
> List 3
> 	A:lkjh
> 	D:moiu
>
> What I want is someway to get this to be
>
> List 1	(user:passwd)
> 	A:asdf
> 	B:sdfg
> 	C:dfgh
>
> List 2
> 	A:asdf
> 	C:dfgh
> 	D:ytur
>
> List 3
> 	A:asdf
> 	D:ytur
>
>
> Unfortunately I have 0 experience in programming python.
> I looked through the clone_member program in the bin directory and it
> looks like what I want is indeed possible provided I know enough python.
>
> If some kind soul could give me 2 scripts
> 1 : that lists (given a mailinglist) all users and passwords
> and
> 2 : that given a mailinglist, and a list of username/passwords
> 	sets the password for the listed user to be the one listed in that
> 	file.
>
> than I would already be fuly helped.
>
> Of course, ideally someone else has already bumped into this problem and
> solved it the python way, in which case I'd be very grateful for this
> program.
>
> TIA
>
>
>
> 	Gerhard,  <@jasongeo.com>   == The Acoustic Motorbiker ==
> --
>    __O	Standing above the crowd, he had a voice so strong and loud
>  =`\<,			we'll miss him
> (=)/(=)	Ranting and pointing his finger, At everything but his heart
> 			we'll miss him
>
>
>
> --__--__--
>
> Message: 9
> Date: Mon, 18 Sep 2000 09:10:23 -0500 (CDT)
> From: Joe <curly at apollo.wuacc.edu>
> To: mailman-users at python.org
> Subject: [Mailman-Users] How do you edit an archive?
>
>
> Hi,
>
> I have an archive that needs to be redone, but the bin/arch utility
> doesn't seem to use the mbox to regenerate the archive as the
> documentation suggests that it will do.
>
> Any recipes on rebuilding an archive using existing tools?
>
> Any ideas will be greatly appreciated,
> Joe
>
>
>
> --__--__--
>
> Message: 10
> Date: Mon, 18 Sep 2000 15:56:04 +0100
> From: Nathalie Ducaud <nathalie.ducaud at i-dmedia.com>
> Organization: I-D Media Ltd.
> To: mailman-users at python.org
> Subject: [Mailman-Users] PHP WML
>
> How do you combine PHP3 and WML ?
>
>
>
> --__--__--
>
> Message: 11
> From: "alex wetmore" <alex at phred.org>
> To: "Brian D. Beers" <bdbeers at digiscents.com>,
> 	<mailman-users at python.org>
> Subject: Re: [Mailman-Users] Footers not appearing in messages.
> Date: Mon, 18 Sep 2000 07:35:19 -0700
>
> Are you sending messages that are HTML formatted (or otherwise use
> MIME)?  The footer gets tacked on past the end of the MIME portion of
> the message, and won't be shown by most email clients.
>
> On my list I use a tool (http://www.phred.org/~alex/stripmime.pl) to
> remove all MIME from my list messages.  Most importantly this insures
> that everyone can properly read the messages and that the archives are
> not polluted with MIME/HTML.  Secondarily this insures that every
> message has the footer.
>
> alex
>
> ----- Original Message -----
> From: "Brian D. Beers" <bdbeers at digiscents.com>
> To: <mailman-users at python.org>
> Sent: Friday, September 15, 2000 9:55 PM
> Subject: [Mailman-Users] Footers not appearing in messages.
>
>
> > The footer (like below) is not appearing in the messages. Does anyone
> know
> > why?  I have not changed the default footer at all.  Does one of the
> > management choices disable the footer?
> >
> > > ------------------------------------------------------
> > > Mailman-Users maillist  -  Mailman-Users at python.org
> > > http://www.python.org/mailman/listinfo/mailman-users
> >
> >
> > ------------------------------------------------------
> > Mailman-Users maillist  -  Mailman-Users at python.org
> > http://www.python.org/mailman/listinfo/mailman-users
> >
>
>
>
>
> --__--__--
>
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users
>
>
> End of Mailman-Users Digest
>




More information about the Mailman-Users mailing list