Reading news with Mutt (was: reply-to alternatives)
On Thu, 03 Oct 2002 at 07:09:37PM +0200, Hanspeter Roth wrote: Which newsreader is most similar to mutt? Mutt with a NNTP patch. Here's one that doesn't require any external programs: http://www.ing.umu.se/~connor/programs/mutt.html Regards, -rex -- The actual user of the PC -- someone who can do anything they want -- is the enemy. - David Aucsmith, Intel security http://www.zdnet.co.uk/news/1999/8/ns-7129.html
Re: [Bounga@altern.org: Les news avec mutt ?]
Le Mon, Sep 23, 2002 at 05:28:10PM +0200, Aurélien Beaujean écrivait : On a dit se tromper de mailing list :-) : Hu hu, en effet j'ai mis un fr en trop :-) Merci d'avoir forwardé. -- Mail : [EMAIL PROTECTED]
News about Mutt - guckes.net/mutt/news.html
I have finally moved all the news items about mutt from my main page about mutt to an extra page. So now you can bookmark it and have NetMind send you an update notice when the page changes. further news welcome, of course. :-) and for those of you who cannot read the table with lynx - well, time to try the links browser. ;-) Sven -- Sven [EMAIL PROTECTED] [mutt-versions] Latest versions: MUTT http://www.mutt.org/ news:comp.mail.mutt mutt-1.2.5 [000729] MUTT http://www.math.fu-berlin.de/~guckes/mutt/ mutt-1.3.27 [020122] MUTT MUTT - *the* mailer for UNIX with color, threading, IMAP+MIME+PGP+POP
Re: News about Mutt - guckes.net/mutt/news.html
On Wed, 6 Mar 2002, Sven Guckes wrote: I have finally moved all the news items about mutt from my main page about mutt to an extra page. So now you can bookmark it and have NetMind send you an update notice when the page changes. further news welcome, of course. :-) perhaps you should send the url in your email (the one in your signature is usable with lynx, so you probably aren't talking about that). -- T.E.Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: News about Mutt - guckes.net/mutt/news.html
* On Wed, 6 Mar 2002, Sven Guckes wrote: I have finally moved all the news items about mutt from my main page about mutt to an extra page. * Thomas E. Dickey [EMAIL PROTECTED] [020306 13:41]: perhaps you should send the url in your email (the one in your signature is usable with lynx, so you probably aren't talking about that). huh? the URL is in the Subject: line... anyway - here it is again: http://guckes.net/mutt/news.html - http://www.math.fu-berlin.de/~guckes/mutt/news.html mind you - the announcements of new versions are available via mutt-dev and also on the History Page - guckes.net/mutt/hist.html . Sven
Re: News about Mutt - guckes.net/mutt/news.html
On Wed, 6 Mar 2002, Sven Guckes wrote: * On Wed, 6 Mar 2002, Sven Guckes wrote: I have finally moved all the news items about mutt from my main page about mutt to an extra page. * Thomas E. Dickey [EMAIL PROTECTED] [020306 13:41]: perhaps you should send the url in your email (the one in your signature is usable with lynx, so you probably aren't talking about that). huh? the URL is in the Subject: line... anyway - here it is again: http://guckes.net/mutt/news.html - http://www.math.fu-berlin.de/~guckes/mutt/news.html shrug - you're using a table where a list works just as well. either way, it's readable. -- T.E.Dickey [EMAIL PROTECTED] http://invisible-island.net ftp://invisible-island.net
Re: News about Mutt - guckes.net/mutt/news.html
* Sven Guckes [EMAIL PROTECTED] [03-06-02 08:25] crowed: I have finally moved all the news items about mutt from my main page about mutt to an extra page. So now you can bookmark it and have NetMind send you an update notice when the page changes. further news welcome, of course. :-) NetMind became a subscription service (PAY) effective 15 Jan 02. -- Pat Shanahan Registered Linux User #207535 Registered at: http://counter.li.org
News and Mutt
Hello Now that I have joined the mutt fan club I would like also to somehow read news messages with it.. Is this feasible ? Is it ridiculous ? -- Regards Cliff
Re: News and Mutt
Cliff -- ...and then Cliff Sarginson said... % Hello Hi again! % Now that I have joined the mutt fan club I would like also to *grin* % somehow read news messages with it.. Check out the nntp patches; there are two or three out there. % Is this feasible ? Yep. After all, it's mutt, even if it does require *some* patching :-) % Is it ridiculous ? Some think so, actually, but YMMV. % % -- % Regards % Cliff % :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! PGP signature
Reading USENET news with mutt
Hi everybody! I'm a newbie in mutt. And my English isn't good, so please, be patient ;) As I know, I can read the USENET news from spool like a MH mailbox, but I have no idea how to post and/or followup discussion. Please point me in right direction. Tnx. -- Dennis Melentyev C/C++ programmer @ Mebius-KB, Kiev, Ukraine [EMAIL PROTECTED]
Re: news with mutt
On Jun/10/2000, Janek Richter wrote: i want to know if it is possible to read newsgroups in mutt. Yep! It's possible. But not simple :-) I do it with several Perl scripts of my own. I plan to tidy up and release them when I've solved some problems (as, for example, using them with another MTA different from QMail :-)). The process, once installed, is quite transparent: you get articles from the news server with a script, and configure which newsgroups to get with a .newsrc, similar to the one used by slrn. And to reply, you reply to a fake adddress containing the name of the group. It works, though I'm yet giving it the last polishing touches :-) But anyway, it's not trivial. I can give you the scripts to try for yourself, but I think they're not ready for general use yet. -- Roberto Suarez Soto · Fidonet in Spain: [EMAIL PROTECTED]· http://welcome.to/probbs Corgo/Lugo/Galicia/Spain · http://www.ctv.es/USERS/jtarrio
posting news with mutt
I have a, possibly, unusual question. I find it convenient to fetch news from a remote server in large batches and store them as mbox folders, for reading with mutt. Threading works fine, so why not? Now, the question is, can I use mutt's reply to compose a good followup message? Obviously I don't expect mutt to post it -- I'll pipe it to a posting program with 'set sendmail' or something like that -- but I need it to preserve/generate the needed headers. The Newsgroups: header is less of a problem, I can generate it automatically or even manually, but I wonder if there are additional Xref- or other news-related fields that mutt will or won't be able to create. Does anyone have any advice to offer on this? -- Anatoly Vorobey, [EMAIL PROTECTED] http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton
Re: posting news with mutt
I actually found a patch to mutt that someone has done to do this with mutt. Gets all the headers and stores them in mboxs. http://www.ing.umu.se/~connor/programs/mutt.html Note from page: What does it do? Same thing as any other news-reader, really. Except in the sense that most readers work in an online mode, where you are constantly connected to the news-server, getting each post as you read it. mutt-nntp works a little differently. It downloads all new posts in each group in your feed, and store them in folders of your liking, letting you manipulate them as any other mailbox. Posts, on the other hand, are sent to the server as soon as they are written, except when mutt works in offline mode, and just spools them to a file, for an external program to post them later. I have added a special composing menu and prompt-set for news-articles and a menu to work with the newsfeed and decide which groups to get and where to store the articles. Other than that, it is a perfectly normal mutt, version 1.0.1 and 1.2. If compiled without NNTP support, it behaves exactly like the 'real' version. If compiled with NNTP, the extra functionality is enabled without removing any of the mail-capabilities. Worth noting is that so far I have not modified the internal editor to be aware of news-articles, thus you will not be able to modify newsgroups from within the editor. I use vim myself, so it hasn't come up yet. I might get around to it one day, if I'm bored enough. On Thu, Jun 15, 2000 at 04:21:25PM +0300, Anatoly Vorobey uttered: | I have a, possibly, unusual question. I find it convenient | to fetch news from a remote server in large batches and | store them as mbox folders, for reading with mutt. Threading | works fine, so why not? Now, the question is, can I use | mutt's reply to compose a good followup message? | | -- | Anatoly Vorobey, | [EMAIL PROTECTED] http://pobox.com/~mellon/ | "Angels can fly because they take themselves lightly" - G.K.Chesterton -- /helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36
Re: news with mutt
anyone ever tried to exploit the coarse resemblance between imap and the classic structure in spool/news? clemens
Quoting (was: news with mutt)
On 2000-06-11 16:45:56 +0930, Brian Salter-Duke wrote: What does this macro and script achieve that slrn can not do already. I can already reply and forward from inside slrn. Am I missing something important? Yes. A short course on writing mail (http://members.aol.com/intwg/guide.htm), especially the part about quoting. HTH. HAND. Martin -- Martin Schröder, [EMAIL PROTECTED] ArtCom GmbH, Grazer Straße 8, D-28359 Bremen Voice +49 421 20419-44 / Fax +49 421 20419-10
Re: news with mutt
On 2000-06-11 16:45:56 +0930, Brian Salter-Duke wrote: What does this macro and script achieve that slrn can not do already. I can already reply and forward from inside slrn. Am I missing something important? My reason for writing (and using) it is that I prefer to have the same set of aliases (and other settings) pretty much everywhere where I send mail. This does, for instance, include things like FCCs, encryption/signature settings, and more. I just don't like the idea to have to use (and configure) different programs for the same purpose. -- http://www.guug.de/~roessler/
Re: news with mutt
On Tue, Jun 13, 2000 at 02:35:57PM +0200, Thomas Roessler wrote: On 2000-06-11 16:45:56 +0930, Brian Salter-Duke wrote: What does this macro and script achieve that slrn can not do already. I can already reply and forward from inside slrn. Am I missing something important? My reason for writing (and using) it is that I prefer to have the same set of aliases (and other settings) pretty much everywhere where I send mail. This does, for instance, include things like FCCs, encryption/signature settings, and more. I just don't like the idea to have to use (and configure) different programs for the same purpose. OK. I understand this. I installed the macro and script. It seems that the default settings for "r" and "F" override the ones set in the macro. If I change the settings in the macro to "x" for reply and "X" for forward, then I can use mutt for reply and forward. I do not understand this, but it now works. Cheers, Brian. -- Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED] School of Biological, Environmental and Chemical Sciences, SITE, Northern Territory University, Darwin, NT 0909, Australia. Phone 08-89466702. Fax 08-89466847 http://www.smps.ntu.edu.au/school/compchem.html
Re: news with mutt
On Sat, Jun 10, 2000 at 07:36:50AM +0200, Wilhelm Wienemann wrote: Hello Janek! On Sat, 10 Jun 2000, Janek Richter wrote: i want to know if it is possible to read newsgroups in mutt. AFAIK there is a patch for an older version of mutt, but I prefer a solution which will use slrn in combination with mutt (reply and forwarding). This was posted by Thomas Roessler [EMAIL PROTECTED] on the end of january 2000 on this list. It's using the attached slrn macro file, plus the attached shell script wrapper. Note that this solution requires formail (1) from the procmail package. Thank you very much, Thomas!! :-))) What does this macro and script achieve that slrn can not do already. I can already reply and forward from inside slrn. Am I missing something important? Cheers, Brian. --- cut here - % % replacement forward and reply functions for slrn. % these will drop you to your normal mail user agent. % variable mua_script="/home/roessler/bin/slrn-mua"; define my_reply_to_article () { pipe_article (Sprintf ("%s -reply", mua_script, 1)); } define my_forward_article () { pipe_article (Sprintf ("%s -forward", mua_script, 1)); } definekey ("my_reply_to_article", "r", "article"); definekey ("my_forward_article", "F", "article"); ## #!/bin/sh -- # # A small script which is used to reply to or forward an # article from within slrn. # # The article is expected to come on stdin, while $1 is either # -reply or -forward. # # where is mutt located? MUTT=/usr/local/bin/mutt # where is formail? FORMAIL=/usr/bin/formail TMPDIR=${TMPDIR-/tmp}/`basename $0`.$$ mkdir -m 0700 $TMPDIR || { echo "can't create $TMPDIR!" 2 ; exit ; } trap "rm -rf $TMPDIR; trap '' 0; exit" 0 1 2 3 4 cat $TMPDIR/article # get various headers SUBJECT="`formail -z -x Subject: $TMPDIR/article`" DATE="`formail -z -x Date: $TMPDIR/article`" FROM="`formail -z -x From: $TMPDIR/article`" REPLY_TO="`formail -z -x Reply-To: $TMPDIR/article`" MESSAGE_ID="`formail -z -x Message-ID: $TMPDIR/article`" REFERENCES="`formail -z -x References: $TMPDIR/article`" exec $TMPDIR/template # # functions # prepare_reply () { if [ -n "$REPLY_TO" ] ; then echo "To: $REPLY_TO" else echo "To: $FROM" fi if [ -n "$MESSAGE_ID" ] ; then echo "In-Reply-To: $MESSAGE_ID" echo "References: $REFERENCES $MESSAGE_ID" fi echo -n "Subject: " if [ -z "$SUBJECT" ] ; then echo "Re: your mail" else echo -n "Re: " echo "$SUBJECT" | sed -e 's/^Re: *//' fi echo echo "On $DATE, $FROM wrote:" | fmt sed -e 's/^/ /' $TMPDIR/article } prepare_forward () { echo "Subject: Fwd: $SUBJECT" echo echo "- Forwarded message -" cat $TMPDIR/article echo echo " End forwarded message-" } # # main # case "$1" in -reply) prepare_reply ;; -forward) prepare_forward ;; *) echo "usage: `basename $0` {-reply|-forward}" 2 exit 1 ;; esac exec /dev/tty $MUTT -H $TMPDIR/template /dev/tty --- cut here - Enjoy it! bye - Wilhelm -- Wilhelm Wienemann __ / /__ _ _ _ _ __ __ (° (o- / /__ / / / \// //_// \ \/ / -°) -°) //\ //\ // /_/ /_/\/ /___/ /_/\_\ /\\ /\\ V_/_ v_/_ # Enjoy Linux and the Power of Open Source # _\_V _\_V -- Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED] School of Biological, Environmental and Chemical Sciences, SITE, Northern Territory University, Darwin, NT 0909, Australia. Phone 08-89466702. Fax 08-89466847 http://www.smps.ntu.edu.au/school/compchem.html
Re: news with mutt
Jason Helfman writes: This worked out wonderful. I wonder though, when I replied to a message, it did use mutt fine, but all the headers from slrn news file went into the reply. Is their a way to filter this out? Also what feature of mutt can be used? It looked like it just used mutt to deliver, is this correct? On Sat, Jun 10, 2000 at 10:28:54PM +0200, Wilhelm Wienemann muttered: | Hello Jason! [173 lines deleted] Gents, can you please trim your replies? Thank you.
Re: news with mutt
Hello Jason! On Sat, 10 Jun 2000, Jason Helfman wrote: This worked out wonderful. I wonder though, when I replied to a message, it did use mutt fine, but all the headers from slrn news file went into the reply. Is their a way to filter this out? Maybe, but with a good editor you are be able to delete it in few seconds. Also what feature of mutt can be used? IIRC all features of mutt. Which feature of mutt wont be work on your box? Maybe the question is: 'Which features of mutt can't be used on this way?' bye - Wilh -- .~. ___ _ _ ___ ___ __ __ Wilhelm Wienemann /V\ | |(_) | __ \ | | | | \ \/ / Amselweg 10 // \\ | |__ | | | | | | | |_| | || D-47546 Kalkar/Germany /( )\|| |_| |_| |_| \| /_/\_\ ^`~'^ powered by Linux - solutions for smart penguins
Re: news with mutt
Hello Janek! On Sat, 10 Jun 2000, Janek Richter wrote: i want to know if it is possible to read newsgroups in mutt. AFAIK there is a patch for an older version of mutt, but I prefer a solution which will use slrn in combination with mutt (reply and forwarding). This was posted by Thomas Roessler [EMAIL PROTECTED] on the end of january 2000 on this list. It's using the attached slrn macro file, plus the attached shell script wrapper. Note that this solution requires formail (1) from the procmail package. Thank you very much, Thomas!! :-))) --- cut here - % % replacement forward and reply functions for slrn. % these will drop you to your normal mail user agent. % variable mua_script="/home/roessler/bin/slrn-mua"; define my_reply_to_article () { pipe_article (Sprintf ("%s -reply", mua_script, 1)); } define my_forward_article () { pipe_article (Sprintf ("%s -forward", mua_script, 1)); } definekey ("my_reply_to_article", "r", "article"); definekey ("my_forward_article", "F", "article"); ## #!/bin/sh -- # # A small script which is used to reply to or forward an # article from within slrn. # # The article is expected to come on stdin, while $1 is either # -reply or -forward. # # where is mutt located? MUTT=/usr/local/bin/mutt # where is formail? FORMAIL=/usr/bin/formail TMPDIR=${TMPDIR-/tmp}/`basename $0`.$$ mkdir -m 0700 $TMPDIR || { echo "can't create $TMPDIR!" 2 ; exit ; } trap "rm -rf $TMPDIR; trap '' 0; exit" 0 1 2 3 4 cat $TMPDIR/article # get various headers SUBJECT="`formail -z -x Subject: $TMPDIR/article`" DATE="`formail -z -x Date: $TMPDIR/article`" FROM="`formail -z -x From: $TMPDIR/article`" REPLY_TO="`formail -z -x Reply-To: $TMPDIR/article`" MESSAGE_ID="`formail -z -x Message-ID: $TMPDIR/article`" REFERENCES="`formail -z -x References: $TMPDIR/article`" exec $TMPDIR/template # # functions # prepare_reply () { if [ -n "$REPLY_TO" ] ; then echo "To: $REPLY_TO" else echo "To: $FROM" fi if [ -n "$MESSAGE_ID" ] ; then echo "In-Reply-To: $MESSAGE_ID" echo "References: $REFERENCES $MESSAGE_ID" fi echo -n "Subject: " if [ -z "$SUBJECT" ] ; then echo "Re: your mail" else echo -n "Re: " echo "$SUBJECT" | sed -e 's/^Re: *//' fi echo echo "On $DATE, $FROM wrote:" | fmt sed -e 's/^/ /' $TMPDIR/article } prepare_forward () { echo "Subject: Fwd: $SUBJECT" echo echo "- Forwarded message -" cat $TMPDIR/article echo echo " End forwarded message-" } # # main # case "$1" in -reply) prepare_reply ;; -forward) prepare_forward ;; *) echo "usage: `basename $0` {-reply|-forward}" 2 exit 1 ;; esac exec /dev/tty $MUTT -H $TMPDIR/template /dev/tty --- cut here - Enjoy it! bye - Wilhelm -- Wilhelm Wienemann __ / /__ _ _ _ _ __ __ (° (o- / /__ / / / \// //_// \ \/ / -°) -°) //\ //\ // /_/ /_/\/ /___/ /_/\_\ /\\ /\\ V_/_ v_/_ # Enjoy Linux and the Power of Open Source # _\_V _\_V
Re: news with mutt
This is wonderful, but I am a bit of a newbie when it comes to scripting and whatnot. Is the first part of this a patch? How would I go about exectuing all of this...? On Sat, Jun 10, 2000 at 07:36:50AM +0200, Wilhelm Wienemann muttered: | Hello Janek! | | On Sat, 10 Jun 2000, Janek Richter wrote: | | i want to know if it is possible to read newsgroups in mutt. | | AFAIK there is a patch for an older version of mutt, but I | prefer a solution which will use slrn in combination with | mutt (reply and forwarding). This was posted by Thomas Roessler | [EMAIL PROTECTED] on the end of january 2000 on this list. | It's using the attached slrn macro file, plus the attached shell | script wrapper. | | Note that this solution requires formail (1) from the procmail | package. | | Thank you very much, Thomas!! :-))) | | --- cut here - | % | % replacement forward and reply functions for slrn. | % these will drop you to your normal mail user agent. | % | | variable mua_script="/home/roessler/bin/slrn-mua"; | | define my_reply_to_article () | { | pipe_article (Sprintf ("%s -reply", mua_script, 1)); | } | | define my_forward_article () | { | pipe_article (Sprintf ("%s -forward", mua_script, 1)); | } | | definekey ("my_reply_to_article", "r", "article"); | definekey ("my_forward_article", "F", "article"); | | ## | | #!/bin/sh -- | | # | # A small script which is used to reply to or forward an | # article from within slrn. | # | # The article is expected to come on stdin, while $1 is either | # -reply or -forward. | # | | # where is mutt located? | MUTT=/usr/local/bin/mutt | | # where is formail? | FORMAIL=/usr/bin/formail | | TMPDIR=${TMPDIR-/tmp}/`basename $0`.$$ | mkdir -m 0700 $TMPDIR || { echo "can't create $TMPDIR!" 2 ; exit ; } | | trap "rm -rf $TMPDIR; trap '' 0; exit" 0 1 2 3 4 | | cat $TMPDIR/article | | # get various headers | | SUBJECT="`formail -z -x Subject: $TMPDIR/article`" | DATE="`formail -z -x Date: $TMPDIR/article`" | FROM="`formail -z -x From: $TMPDIR/article`" | REPLY_TO="`formail -z -x Reply-To: $TMPDIR/article`" | MESSAGE_ID="`formail -z -x Message-ID: $TMPDIR/article`" | REFERENCES="`formail -z -x References: $TMPDIR/article`" | | exec $TMPDIR/template | | # | # functions | # | | prepare_reply () { | if [ -n "$REPLY_TO" ] ; then | echo "To: $REPLY_TO" | else | echo "To: $FROM" | fi | | if [ -n "$MESSAGE_ID" ] ; then | echo "In-Reply-To: $MESSAGE_ID" | echo "References: $REFERENCES $MESSAGE_ID" | fi | | echo -n "Subject: " | | if [ -z "$SUBJECT" ] ; then | echo "Re: your mail" | else | echo -n "Re: " | echo "$SUBJECT" | sed -e 's/^Re: *//' | fi | | echo | | echo "On $DATE, $FROM wrote:" | fmt | | sed -e 's/^/ /' $TMPDIR/article | } | | prepare_forward () { | echo "Subject: Fwd: $SUBJECT" | echo | echo "- Forwarded message -" | cat $TMPDIR/article | echo | echo " End forwarded message-" | } | | # | # main | # | | | case "$1" in | -reply) | prepare_reply | ;; | -forward) | prepare_forward | ;; | *) | echo "usage: `basename $0` {-reply|-forward}" 2 | exit 1 | ;; | esac | | exec /dev/tty | | $MUTT -H $TMPDIR/template /dev/tty | | --- cut here - | | Enjoy it! | | bye - Wilhelm | | -- | Wilhelm Wienemann __ | / /__ _ _ _ _ __ __ | (° (o- / /__ / / / \// //_// \ \/ / -°) -°) | //\ //\ // /_/ /_/\/ /___/ /_/\_\ /\\ /\\ | V_/_ v_/_ # Enjoy Linux and the Power of Open Source # _\_V _\_V -- /helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36
Re: news with mutt
Hello Jason! On Sat, 10 Jun 2000, Jason Helfman wrote: On Sat, Jun 10, 2000 at 07:36:50AM +0200, Wilhelm Wienemann muttered: This is wonderful, but I am a bit of a newbie when it comes to scripting and whatnot. Is the first part of this a patch? No, it's a macro-file. On my box I've all my macros in the $HOME/.slrn directory and here it is called .slrn-mua.sl To load (interpret) it with my $HOME/.slrnrc file I have to add a line like interpret ".slrn/.slrn-mua.sl" --- cut here - % % replacement forward and reply functions for slrn. % these will drop you to your normal mail user agent. % variable mua_script="/usr/local/bin/slrn-mua.sh"; define my_reply_to_article () { pipe_article (Sprintf ("%s -reply", mua_script, 1)); } define my_forward_article () { pipe_article (Sprintf ("%s -forward", mua_script, 1)); } definekey ("my_reply_to_article", "r", "article"); definekey ("my_forward_article", "F", "article"); - How would I go about exectuing all of this...? The following shell script wrapper is located as slrn-mua.sh in the directory /usr/local/bin/ --- #!/bin/sh -- # # A small script which is used to reply to or forward an # article from within slrn. # # The article is expected to come on stdin, while $1 is either # -reply or -forward. # # where is mutt located? MUTT=/usr/bin/mutt # where is formail? FORMAIL=/usr/bin/formail TMPDIR=${TMPDIR-/tmp}/`basename $0`.$$ mkdir -m 0700 $TMPDIR || { echo "can't create $TMPDIR!" 2 ; exit ; } trap "rm -rf $TMPDIR; trap '' 0; exit" 0 1 2 3 4 cat $TMPDIR/article # get various headers SUBJECT="`formail -z -x Subject: $TMPDIR/article`" DATE="`formail -z -x Date: $TMPDIR/article`" FROM="`formail -z -x From: $TMPDIR/article`" REPLY_TO="`formail -z -x Reply-To: $TMPDIR/article`" MESSAGE_ID="`formail -z -x Message-ID: $TMPDIR/article`" REFERENCES="`formail -z -x References: $TMPDIR/article`" exec $TMPDIR/template # # functions # prepare_reply () { if [ -n "$REPLY_TO" ] ; then echo "To: $REPLY_TO" else echo "To: $FROM" fi if [ -n "$MESSAGE_ID" ] ; then echo "In-Reply-To: $MESSAGE_ID" echo "References: $REFERENCES $MESSAGE_ID" fi echo -n "Subject: " if [ -z "$SUBJECT" ] ; then echo "Re: your mail" else echo -n "Re: " echo "$SUBJECT" | sed -e 's/^Re: *//' fi echo echo "On $DATE, $FROM wrote:" | fmt sed -e 's/^/ /' $TMPDIR/article } prepare_forward () { echo "Subject: Fwd: $SUBJECT" echo echo "- Forwarded message -" cat $TMPDIR/article echo echo " End forwarded message-" } # # main # case "$1" in -reply) prepare_reply ;; -forward) prepare_forward ;; *) echo "usage: `basename $0` {-reply|-forward}" 2 exit 1 ;; esac exec /dev/tty $MUTT -H $TMPDIR/template /dev/tty --- cut here - Note: The Shell-script needs the executable permissions for its users. This is usually done by a 'chmod -v 755 slrn-mua.sh' as root in the destination directory. Now every time you use a 'r' to do a reply or a 'F' to do a forwarding in slrn it will use 'mutt'. Enjoy it! :-)) bye - Wilhelm -- -- _ _ __ __ Wilhelm Wienemann [EMAIL PROTECTED] | (_)_ __ _ _\ \/ / - For a better taste - Linux Inside | | | '_ \| | | |\ /- Blue screens for Linux background only | | | | | | |_| |/ \- Enjoy Linux and the Power of Open Source |_|_|_| |_|\__,_/_/\_\ Registered-Linux-User: 70712 http://counter.li.org/
Re: news with mutt
This worked out wonderful. I wonder though, when I replied to a message, it did use mutt fine, but all the headers from slrn news file went into the reply. Is their a way to filter this out? Also what feature of mutt can be used? It looked like it just used mutt to deliver, is this correct? On Sat, Jun 10, 2000 at 10:28:54PM +0200, Wilhelm Wienemann muttered: | Hello Jason! | | On Sat, 10 Jun 2000, Jason Helfman wrote: | On Sat, Jun 10, 2000 at 07:36:50AM +0200, Wilhelm Wienemann muttered: | | This is wonderful, but I am a bit of a newbie when it comes to | scripting and whatnot. Is the first part of this a patch? | | No, it's a macro-file. On my box I've all my macros in the | $HOME/.slrn directory and here it is called .slrn-mua.sl | To load (interpret) it with my $HOME/.slrnrc file I have to | add a line like | | interpret ".slrn/.slrn-mua.sl" | | --- cut here - | % | % replacement forward and reply functions for slrn. | % these will drop you to your normal mail user agent. | % | | variable mua_script="/usr/local/bin/slrn-mua.sh"; | | define my_reply_to_article () | { | pipe_article (Sprintf ("%s -reply", mua_script, 1)); | } | | define my_forward_article () | { | pipe_article (Sprintf ("%s -forward", mua_script, 1)); | } | | definekey ("my_reply_to_article", "r", "article"); | definekey ("my_forward_article", "F", "article"); | | - | | How would I go about exectuing all of this...? | | The following shell script wrapper is located as slrn-mua.sh | in the directory /usr/local/bin/ | | --- | #!/bin/sh -- | | # | # A small script which is used to reply to or forward an | # article from within slrn. | # | # The article is expected to come on stdin, while $1 is either | # -reply or -forward. | # | | # where is mutt located? | MUTT=/usr/bin/mutt | | # where is formail? | FORMAIL=/usr/bin/formail | | TMPDIR=${TMPDIR-/tmp}/`basename $0`.$$ | mkdir -m 0700 $TMPDIR || { echo "can't create $TMPDIR!" 2 ; exit ; } | | trap "rm -rf $TMPDIR; trap '' 0; exit" 0 1 2 3 4 | | cat $TMPDIR/article | | # get various headers | | SUBJECT="`formail -z -x Subject: $TMPDIR/article`" | DATE="`formail -z -x Date: $TMPDIR/article`" | FROM="`formail -z -x From: $TMPDIR/article`" | REPLY_TO="`formail -z -x Reply-To: $TMPDIR/article`" | MESSAGE_ID="`formail -z -x Message-ID: $TMPDIR/article`" | REFERENCES="`formail -z -x References: $TMPDIR/article`" | | exec $TMPDIR/template | | # | # functions | # | | prepare_reply () { | if [ -n "$REPLY_TO" ] ; then | echo "To: $REPLY_TO" | else | echo "To: $FROM" | fi | | if [ -n "$MESSAGE_ID" ] ; then | echo "In-Reply-To: $MESSAGE_ID" | echo "References: $REFERENCES $MESSAGE_ID" | fi | | echo -n "Subject: " | | if [ -z "$SUBJECT" ] ; then | echo "Re: your mail" | else | echo -n "Re: " | echo "$SUBJECT" | sed -e 's/^Re: *//' | fi | | echo | | echo "On $DATE, $FROM wrote:" | fmt | | sed -e 's/^/ /' $TMPDIR/article | } | | prepare_forward () { | echo "Subject: Fwd: $SUBJECT" | echo | echo "- Forwarded message -" | cat $TMPDIR/article | echo | echo " End forwarded message-" | } | | # | # main | # | | | case "$1" in | -reply) | prepare_reply | ;; | -forward) | prepare_forward | ;; | *) | echo "usage: `basename $0` {-reply|-forward}" 2 | exit 1 | ;; | esac | | exec /dev/tty | | $MUTT -H $TMPDIR/template /dev/tty | | --- cut here - | | Note: The Shell-script needs the executable permissions for | its users. This is usually done by a 'chmod -v 755 slrn-mua.sh' | as root in the destination directory. | | Now every time you use a 'r' to do a reply or a 'F' to do a | forwarding in slrn it will use 'mutt'. | | Enjoy it! :-)) | | bye - Wilhelm | | -- | -- _ _ __ __ Wilhelm Wienemann [EMAIL PROTECTED] | | (_)_ __ _ _\ \/ / - For a better taste - Linux Inside | | | | '_ \| | | |\ /- Blue screens for Linux background only | | | | | | | |_| |/ \- Enjoy Linux and the Power of Open Source | |_|_|_| |_|\__,_/_/\_\ Registered-Linux-User: 70712 http://counter.li.org/ | -- /helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36
news with mutt
hi, i want to know if it is possible to read newsgroups in mutt. Regards, Janek Richter -- )\_)\Janek Richter [EMAIL PROTECTED] - 0xEA6525D5(GnuPG) (o,o) __ \~/freebsd the power to serve.. http://www.freebsd.org --\/ http://ukug.uk.freebsd.org/~janek/ ~~ d d
Re: news with mutt
Janek Richter proclaimed on mutt-users that: i want to know if it is possible to read newsgroups in mutt. There is a patch available for an old version of mutt at http://www.mutt.org - or you can download something like newsfetch (rpm available at contrib.redhat.com - search google for the source) Better still, download and compile slrn - it's just like mutt ;) -- Suresh Ramasubramanian + [EMAIL PROTECTED] However, never daunted, I will cope with adversity in my traditional manner ... sulking and nausea. -- Tom K. Ryan