Re: mutt -- was Re: Why use fakeroot when compiling kernel?
On Thu, Jun 28, 2001 at 10:03:15PM -0500, will trillich wrote: ... -- DEBIAN NEWBIE TIP #56 from Vineet Kumar [EMAIL PROTECTED] : Troubled by DOS-FORMAT OR MAC-FORMAT TEXT FILES? Here's another way to deal with those troublesome ^M characters: a simple tr -d '\015' dos.file should do the trick. While we're on the subject, a Mac file can be converted with tr '\015' '\012' mac.file You can do all your CR/LF translations with tr as long as you can remember that macs use CRs, *nices use LFs, and DOS uses CRLF. I object to classifying this as a NEWBIE tip:) There are better and simpler ways to achieve this, the tip as is will only scare people, fails to deal with the eof char, and doesn't *replace* the original file (the thing newbies are likely to expect). Better advice to use one of the many special programs for this simply task. -- groetjes, carel
Re: mutt -- was Re: Why use fakeroot when compiling kernel?
On Wed, Jun 27, 2001 at 11:05:51PM +0200, Carel Fellinger wrote: On Wed, Jun 27, 2001 at 01:34:19PM -0500, will trillich wrote: ... hmm. maybe there's a scoring mechanism, coupled with a macro, that you could cobble together to have mutt work that way? hoped for someone to have done it for me:) mutt's awful paarful, don' be dissin' my main mua! ... -- DEBIAN NEWBIE TIP #51 from Will Trillich [EMAIL PROTECTED] : Interested in CUSTOMIZING MUTT to work the way you'd like? are you *sure* those newbie tips are randomly added to your anwsers? announcement -- okay, people, i DO have my tip-script-sig accept a collection of arguments that it uses to pare down the list from which the actual shown tip is selected. but often i find that a pertinent tip is chosen randomly -- and when that happens, i mention the serendipity factor. when it doesn't provide a germane* tip i can force it to do so, as i did in this case. so, no, in this case, i skewed the curve towards a mutt-specific tip. # ...my perl 'select-a-tip' algorithm... my $match = join ,map{return 0 unless /\Q$_\E/io;\n} @ARGV; $match = eval sub {local \$_ = shift;\n$match return 1;\n} if $match; $match = sub { 1 } unless $match; my $txt = '?'; my $tip = 0; my $num = 0; my $ct = 0; while ( DATA ) { $tip++; if ( $match-($_) ) { # matches all commandline args (if any) if ( rand() 1 / ++$ct ) { chomp($txt = $_); $num = $tip; } } } * by the way -- speaking of filtering 'randomized' signatures based on message content, is there any way to have mutt pipe a quoted reply-to message through a script before sending it to the editor? it'd be nice to have my ~/.signature-debian script scan the message for key words and then pick an appropriate tip automatically... who's got the mutt clue stick? -- DEBIAN NEWBIE TIP #22 from Will Trillich [EMAIL PROTECTED] : SECURITY-CONSCIOUS? Good! Here's how you can use apt-get to keep your system up-to-date with the latest security patches: in /etc/apt/sources.list include these lines-- deb http://security.debian.org/debian-security potato/updates main contrib non-free deb http://security.debian.org/debian-non-US potato/non-US main contrib non-free deb http://security.debian.org potato/updates main contrib non-free Thereafter, a quick apt-get update apt-get upgrade is all you need to keep the gremlins at bay. Also see http://newbieDoc.sourceForge.net/ ...
Re: mutt -- was Re: Why use fakeroot when compiling kernel?
will trillich [EMAIL PROTECTED] writes: * by the way -- speaking of filtering 'randomized' signatures based on message content, is there any way to have mutt pipe a quoted reply-to message through a script before sending it to the editor? There may be a specific way, but you could always just define your editor to be a script which scans the message for keywords, appends a sig, and pops up your real editor. -- Alan Shutko [EMAIL PROTECTED] - In a variety of flavors! E Pluribus Unix
Re: mutt -- was Re: Why use fakeroot when compiling kernel?
On Thu, Jun 28, 2001 at 02:22:44PM -0400, Alan Shutko wrote: will trillich [EMAIL PROTECTED] writes: * by the way -- speaking of filtering 'randomized' signatures based on message content, is there any way to have mutt pipe a quoted reply-to message through a script before sending it to the editor? There may be a specific way, but you could always just define your editor to be a script which scans the message for keywords, appends a sig, and pops up your real editor. hey, i went to college and everything, and i would have thought of that eventually. stop snickering, or i'll throw a tantrum! blush sheesh. /blush thanks for the idea! -- DEBIAN NEWBIE TIP #56 from Vineet Kumar [EMAIL PROTECTED] : Troubled by DOS-FORMAT OR MAC-FORMAT TEXT FILES? Here's another way to deal with those troublesome ^M characters: a simple tr -d '\015' dos.file should do the trick. While we're on the subject, a Mac file can be converted with tr '\015' '\012' mac.file You can do all your CR/LF translations with tr as long as you can remember that macs use CRs, *nices use LFs, and DOS uses CRLF. Also see http://newbieDoc.sourceForge.net/ ...
Re: mutt -- was Re: Why use fakeroot when compiling kernel?
On Wed, Jun 27, 2001 at 01:34:19PM -0500, will trillich wrote: ... hmm. maybe there's a scoring mechanism, coupled with a macro, that you could cobble together to have mutt work that way? hoped for someone to have done it for me:) mutt's awful paarful, don' be dissin' my main mua! ... -- DEBIAN NEWBIE TIP #51 from Will Trillich [EMAIL PROTECTED] : Interested in CUSTOMIZING MUTT to work the way you'd like? are you *sure* those newbie tips are randomly added to your anwsers? -- groetjes, carel