Re: Mutt and vim enhancment
On Fri, Oct 13, 2000 at 09:00:05AM +0800 or thereabouts, Bevan Broun wrote: on Wed, Oct 11, 2000 at 12:39:46PM -0400, Peter Solodov [EMAIL PROTECTED] wrote: Is it useful for someone besides me? :-) Im using it. I modified the first one to include the Subject but then the 2nd one arrived and I started to modify again but decided to wait for the finished version. There is room in my title bar for the subject, what about yours? Yes, but where do I put the function? TIA -- Conor Daly Met Eireann, Glasnevin Hill, Dublin 9, Ireland Ph +353 1 8064217 Fax +353 1 8064275
OT: grep
At 8:17 PM EDT on Oct. 11 Aaron Schrab brought me out of hibernation for this: At 09:23 +0930 12 Oct 2000, Brian Salter-Duke [EMAIL PROTECTED] wrote: On Wed, Oct 11, 2000 at 04:38:31PM -0700, Bruce J.A. Nourish wrote: if ps -U $LOGNAME | grep realmutt /dev/null Be careful about using grep to search the output of ps. For example $ ps ax | grep lemming 16004 tty1 S 0:00 grep lemming Y'see? Grep makes a match on its own process. It works OK on AIX 3.2.5 ps. If you add the -f flag it finds the grep line, but it does'nt without it. Same here on GNU/Linux (Red Hat 6.2) and Solaris 2.5.1, but ps's options notoriously vary between flavors of UNIX. Or you could just make a minor modification to the grep pattern: ps -U $LOGNAME | grep 'r[e]almutt' /dev/null That way grep won't be able to match itself. It works, but I don't understand why. Shouldn't 'r[e]almutt' just parse to "realmutt"? And just to play devil's advocate: Which costs more: | grep -v grep or the difference between grep regex and grep plain_old_string? Thanks for the tip. -- Cynic, n. A blackguard who sees things as they are, not as they ought to be. - Ambrose Bierce, The Devil's Dictionary Robert I. Reid [EMAIL PROTECTED] http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: OT: grep
On Fri, Oct 13, 2000 at 05:51:22AM -0400, Rob Reid [EMAIL PROTECTED] wrote: It works, but I don't understand why. Shouldn't 'r[e]almutt' just parse to "realmutt"? Yes, it's the same as matching with the regex 'realmutt'. However, the grep process will appear in the ps listing as "grep r[e]almutt", which doesn't match the regex because of the square brackets. And just to play devil's advocate: Which costs more: | grep -v grep or the difference between grep regex and grep plain_old_string? I'd still have to say the extra process caused by "grep -v grep". Unless grep has some short-circuit check enabled, I'm guessing it still makes calls to regcomp and regexec in either case, and the performance probably doesn't vary that much. That said, I've alway used "grep -v grep", and unless you are calling this repeatedly, it's unlikely you'll see a difference in practice. -- Bob Bell [EMAIL PROTECTED] - "Felten, who examined the secret "source code" for Windows 98 under a court order, said he had found 3,000 bugs marked by Microsoft programmers in the portion of Windows 98 he had examined -- and he had looked at only one-seventh of it." -- http://www.zdnet.com/zdnn/stories/news/0,4586,2273581,00.html
self-destruction
Hey, I'm having a lot of fun with the hooks in mutt, but--- Is it possible that using hooks to generate different cyber-egos for different recipients could inadvertently shut me out of a news group that I was subscribed to? Could I somehow have set things in .muttrc so that a news group no longer recognizes my postings as coming from me? (Why I'm asking: since I've switched to mutt, I've had several folks tell me they are not getting my emails...). TIA/x
Re: self-destruction
On Fri, Oct 13, 2000 at 10:21:12AM -0500, the/eXtreme wrote: Is it possible that using hooks to generate different cyber-egos for different recipients could inadvertently shut me out of a news group that I was subscribed to? Could I somehow have set things in .muttrc so that a news group no longer recognizes my postings as coming from me? (Why I'm asking: since I've switched to mutt, I've had several folks tell me they are not getting my emails...). First you talk about news groups, then you talk about email. What exactly is your problem and how does it manifest itself? -- Take a look in Hagbard's World: | mutt.octet.filter - autoview octet-streams http://www.hagbard.demon.co.uk/ | mutt.vcard.filter - autoview simple vcards http://www.acemake.com/hagbard/ | muttrc2html - muttrc - HTML utility Free software, including| muttrc.sl - Jed muttrc mode
Re: self-destruction
On Fri, Oct 13, 2000 at 08:45:39PM +0100, Conor Daly muttered: On Fri, Oct 13, 2000 at 06:10:42PM +0100 or so it is rumoured hereabouts, Dave Pearson thought: On Fri, Oct 13, 2000 at 10:21:12AM -0500, the/eXtreme wrote: Is it possible that using hooks to generate different cyber-egos for different recipients could inadvertently shut me out of a news group that I was subscribed to? Could I somehow have set things in .muttrc so that a news group no longer recognizes my postings as coming from me? (Why I'm asking: since I've switched to mutt, I've had several folks tell me they are not getting my emails...). First you talk about news groups, then you talk about email. What exactly is your problem and how does it manifest itself? and have you seen a shrink about it? Probably not, but his email obviously has. -- -- C^2 No windows were crashed in the making of this email. Looking for fine software and/or web pages? http://w3.trib.com/~ccurley PGP signature
pgp signatures
People are complaining to me that my pgp signatures show up as unidentified attachments which freaks them out (MS users). Is there a way to force the signature to identify itself as being what it is? I also know a few outlook users which say that my signed messages turn up as a blank message with two attachments, one the text message and the other the unidentified signature. Anyone know a way to correct this apart from surgically removing outlook ;-) -- Darrin Mison -- Life is a series of rude awakenings. -- R.V. Winkle PGP signature