Re: Using Mutt to present mailing lists on-line similar to forums?
On Mon, Jan 10, 2011 at 05:15:01PM -0800, John Magolske wrote: > I'm wondering if Mutt could be used to present mailing lists in > an on-line accessible way somewhat similar to forums, basically > by providing a server that people could SSH into and run a remote > instance of Mutt for browsing list archives and replying to posts. Replying might be problematic if spammers find your host. > The mailbox files would be read-only to all except list moderators, > who could use Mutt to fix broken threads, delete dupes, etc. List > subscribers could SSH in using a terminal, or Mutt could be displayed > in a web browser using an AJAX terminal emulator like ShellInABox... > maybe even with some clicky-gui buttons around it. Users would have > the option of uploading their own muttrc, but a config file on the > server would override certain commands like delete, break-thread, > link-threads, etc so they don't even show up as options. I don't think it's possible to secure a mutt instance so that it can't write to a mailbox (or execute programs under the current user); there's -R but I wouldn't consider that secure. A better approach would be to use a user which has only read-access to the files so nobody could alter them (for example put all users in a group and allow read access to that group). Admins could get write-access. > Has anyone tried something like this? Does it seem viable? > > John I haven't tried it but the idea sounds good. Only problem is that most users who use mutt already have the list locally (or know a way to get them) and other users can't or don't want to use a console only client. Regards, Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 pgpOj0I55931S.pgp Description: PGP signature
Re: How to pass To:'s Firstname into Vim in order to dynamically create the first greeting line?
On Wed, Jan 12, 2011 at 09:46:25PM -0400, Xlii wrote: > Hi mutt, > > I want to dynamically form a greeting line base on the "To:" field. > > [snip] > > Does anybody know a simple way to do that in mutt? > Thanks! > Xlii Hi, I don't know a way to handle that directly in mutt, but what's wrong with using Vim for that? You could use Vim's skeleton option (:h skeleton) and use a mutt hook for special people which changes $editor (vim -c 'command-here' ..) which then runs the necessary skeleton. Or you could do it completely in Vim. Maybe with an autocmd so that it automatically happens when you open the mail in Vim. Regards, Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 pgpgyE6zvkZbY.pgp Description: PGP signature
text/plain to text/html
Hi When i use in interface option cntrl T to switch from text/plain to text/html and putting html code in body it is working fine. But If I use in command line it is not.why? Here is the commande I do Mutt -e "my_hdr Content-Type: text/html" -s subject emailadresse
Re: How to pass To:'s Firstname into Vim in order to dynamically create the first greeting line?
* On 12 Jan 2011, Xlii wrote: > Hi mutt, > > I want to dynamically form a greeting line base on the "To:" field. Use piped commands as format strings. For example: set attribution='custom_script "%n" "%[%c]" |' custom_script: #!/bin/sh name="$1" case "$name" in *larry*)custom="Bonk!";; *moe*) custom="Eyepoke!";; *curly*)custom="Noink noink noink!";; *) custom="Hi $name,";; esac echo $custom echo echo "On $2, you wrote:" I have not tested any of this. -- David Champion * d...@uchicago.edu * IT Services * University of Chicago
Re: Using Mutt to present mailing lists on-line similar to forums?
* On 10 Jan 2011, John Magolske wrote: > I'm wondering if Mutt could be used to present mailing lists in > an on-line accessible way somewhat similar to forums, basically > by providing a server that people could SSH into and run a remote > instance of Mutt for browsing list archives and replying to posts. I agree with Simon Ruderich in general. Sounds tricky. Years ago when I ran out campus mailing list server I hated the web-based archives interface, so I built a few simple scripts that let an IMAP server read directly from the archive files. I created a public, read-only account so that people could browse archives, reply, etc. using any IMAP mail reader. It was pretty nice, and easy to implement. The hardest part was protecting private mailing lists so that only authenticated subscribers could read them, but that might not be a concern for you. > The mailbox files would be read-only to all except list moderators, > who could use Mutt to fix broken threads, delete dupes, etc. List You could use mutt in this fashion for trusted moderators by declaring all the security issues policy problems. -- David Champion * d...@uchicago.edu * IT Services * University of Chicago
converting quoted-printable to plain text?
I've been wanting to filter a message that is in quoted-printable format to and convert it plain text. Anyone know of a way I can do this that is suitable for a Unix-style filter? -- Will Fiveash
Re: converting quoted-printable to plain text?
On Thu, Jan 13, 2011 at 05:56:05PM -0600, Will Fiveash wrote: > I've been wanting to filter a message that is in quoted-printable format > to and convert it plain text. Anyone know of a way I can do this that > is suitable for a Unix-style filter? Nevermind, I just read about the pipe_decode config option which does what I want. -- Will Fiveash Oracle Austin, TX, USA
Re: converting quoted-printable to plain text?
On Thu, Jan 13, 2011 at 05:56:05PM -0600, Will Fiveash wrote: > I've been wanting to filter a message that is in quoted-printable format > to and convert it plain text. Anyone know of a way I can do this that > is suitable for a Unix-style filter? > I believe this should do it (untested): -=-=-=- #!/usr/bin/perl use strict; use warnings; # Either of these should work, AFAIK, but you may need to get them... #use MIME::QuotedPrint; use MIME::QuotedPrint::Perl; my @input = ; my $input = join("", @input); print decode_qp($input); -=-=-=- -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpe6hh4zFzKE.pgp Description: PGP signature
Re: converting quoted-printable to plain text?
On Thu, Jan 13, 2011 at 06:28:14PM -0600, Derek Martin wrote: > On Thu, Jan 13, 2011 at 05:56:05PM -0600, Will Fiveash wrote: > > I've been wanting to filter a message that is in quoted-printable format > > to and convert it plain text. Anyone know of a way I can do this that > > is suitable for a Unix-style filter? > > > > I believe this should do it (untested): And, FWIW, the equivalent python: -=-=-=- #!/usr/bin/python import sys, quopri quopri.decode(sys.stdin,sys.stdout) -=-=-=- Love python. It loves you! -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgprCw9fpR6HT.pgp Description: PGP signature