Re: Colour loss when running via an exec command...
At 3:11 PM EST on January 20 Jamie Novak sent off: > Eterm --trans --shade "40%" -T Mutt -n "Electronic Mail" -e mutt > What happens, though, is that mutt defaults to a monochrome colour > scheme when I open it via an exec like that. (It does the same for rxvt > terms, etc., as well.) I do something similar and never had any problems. Are you running in 8 bit color and running out of colors, perhaps? If not, try compiling with SLang and setting COLORTERM and COLORFGBG. -- Do they sterilize the needles for lethal injections? - Jack Handey Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: [Q] attaching PDF file
At 12:13 PM EST on January 24 Boryeu Mao sent off: > > I'm a `old mutt' user (mutt-0.74) and need to attach a > PDF file for an out-going mail. Quickly checked doc's for > mutt-0.74 and mutt home page, but didn't find immediate info > on whether this is possible or how. IIRC, you should be able to attach any file with "a" in the compose menu. As always, if you've changed key bindings, use "?" to set yourself straight. (Unless you remapped "?" ;-) -- Frustra laborant quotquot se calculationibus fatigant pro inventione quadraturae circuli - Michael Stifel (1544) Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Mutt Mode?
At 9:28 AM EST on February 11 Ben H sent off: > i, like many a mutt user, have seen Mutt modes for jed and vi and the > beloved emacs. As i dont use any of these editors (/usr/bin/joe is the way) > What am i missing out on? I can speak for emacs' post mode, albeit from hazy memory since it's been far too long since I've worked on it. - Syntax highlighting, i.e. color, bold, and/or italics for different levels of quoting and headers. - Quick commands for handling quoted and doubly quoted text (i.e. deleting, dequoting, requoting, rewrapping). - Signature selection doodads - (Unportable) Emboldening and underlining. - A reminder to actually attach that file you said you were going to attach. My apologies to the other post developers if I've forgotten anything (alias expansion?). There's more in it than I personally use on a regular basis. -- Defame, v.t. To lie about another. To tell the truth about another. - A. 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: Mutt Mode?
At 4:32 PM EST on February 11 Alisdair McDiarmid sent off: > > - A reminder to actually attach that file you said you were going to attach. > > Ooh, how does that work? Well, you get http://astro.utoronto.ca/~reid/mutt/post.el.gz and follow the instructions. Less cryptically, when you finish editing it scans the body for the apperance of "attach". If it appears, and you haven't already attached anything, it asks if you would like to do so. Sorry, no AI involved, but since this is Emacs that wouldn't be that hard... I wrote it because I was always telling people I'd attached something, then forgetting to attach it. Now I can still forget to tell them in the body and not get reminded, but that's not so embarassing because then the recipient doesn't know I forgot anything. -- Because we don't think about future generations, they will never forget us. - Henrik Tikkanen Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Merging post.el and mutt-alias.el
Hi, Stephan Helma sent me the following patch to merge mutt-alias.el into post.el and provide menus for expaing aliases inside emacs. I prefer to expand aliases inside mutt instead of my editor, so I have not folded it into post, or tested it myself. Is editor alias expansion a must have for a lot of you out there? Please email me off the list if you have an opinion. Speaking of more appropriate places to discuss post.el, I suppose I could set up a post mailing list, but I haven't. I have saved correspondance from everybody who emailed me about it in an mbox file, which probably isn't everyone who uses post. Can anybody think of a quick way off the top of their head for extracting all the From addresses in that file and then mailing them or putting them into an alias? Whoever comes up with the best solution wins a free copy of post ;-) - Forwarded message from Stephan Helma <[EMAIL PROTECTED]> - *** post.el.origThu Dec 2 10:05:22 1999 *** *** 367,372 comment-region" :group 'post) + ;; START mutt-alias + (defgroup mutt-alias nil + "Lookup mutt mail aliases." + :group 'post + :prefix "mutt-alias-") + + (defcustom mutt-alias-file-list '("~/.mutt_mail_aliases") + "*List of files that contain your mutt aliases." + :type '(repeat (file :must-exist t)) + :group 'mutt-alias) + + (defcustom mutt-alias-cache t + "*Should we cache the aliases?" + :type '(choice (const :tag "Always cache the alias list" t) + (const :tag "Always re-load the alias list" nil)) + :group 'mutt-alias) + ;; END mutt-alias + ;;; ;;; ;;; Customizable Faces *** *** 471,476 (defvar post-has-attachment nil "Whether the message has an attachment.") + ;; START mutt-alias + (defvar mutt-alias-aliases nil + "\"Cache\" of aliases.") + ;; END mutt-alias + ;;; ;;; ;;; Interactive Commands *** *** 791,796 (description (string-read "Description: "))) (header-attach-file file description + ;; START mutt-alias + (defun mutt-alias-load-aliases () + "Load aliases from files defined in `mutt-alias-file-list'. + + The resulting list is an assoc list where the car is a string representation + of the alias and the cdr is the expansion of the alias. Note that no attempt + is made to handle aliases-in-expansions or continued lines." + (unless (and mutt-alias-aliases mutt-alias-cache) + (with-temp-buffer + (loop for file in mutt-alias-file-list do (insert-file-contents file)) + (setf (point) (point-min)) + (setq mutt-alias-aliases + (loop while (search-forward-regexp "^[ \t]*alias +" nil t) + collect (mutt-alias-grab-alias) + mutt-alias-aliases) + + (defun mutt-alias-grab-alias () + "Convert an alias line into a cons where the car is the alias and the cdr + is the expansion. Note that no attempt is made to handle continued lines." + (let ((old-point (point)) + (end-point) + (alias) + (expansion)) + (end-of-line) + (setq end-point (point)) + (setf (point) old-point) + (search-forward-regexp "[ \t]" nil t) + (setq alias (buffer-substring-no-properties old-point (1- (point + (search-forward-regexp "[^ \t]" nil t) + (setq expansion (buffer-substring-no-properties (1- (point)) end-point)) + (setf (point) old-point) + (cons alias expansion))) + + (defun mutt-alias-expand (alias) + "Attempt to expand an alias." + (let ((expansion (assoc alias (mutt-alias-load-aliases + (when expansion + (cdr expansion + + (put 'mutt-alias-interactive 'lisp-indent-function 3) + + (defmacro mutt-alias-interactive (name alias expansion doc &rest body) + "Generate a function that asks for an alias (placed into variable named by + ALIAS) and gets the expansion (placed into variable named by EXPANSION). If + there is an expansion BODY will be evaluated otherwise an error is + reported. The function will be given a doc string of DOC." + `(defun ,name (,alias) ,doc + (interactive (list (completing-read "Alias: " (mutt-alias-load-aliases + (let ((,expansion (mutt-alias-expand ,alias))) +(if ,expansion +(progn + ,@body) + (error "Unknown alias \"%s\"" ,alias) + + (mutt-alias-interactive mutt-alias-insert alias expansion + "Insert the expansion for ALIAS into the current buffer." + (insert expansion)) + + (mutt-alias-interactive mutt-alias-lookup alias expansion + "Lookup and display the expansion for ALIAS." + (message "%s: %s" alias expansion)) + ;; STOP mutt-alias + ;;; ;;; ;;; Post Header Mode *** *** 1018,1023 "" ["Quote region" post-quote-
Re: dogs
At 2:15 PM EST on February 17 Erik Jacobsen sent off: > Or, from the OpenBSD man pages: > > The biff command appeared in 4.0BSD. biff was Heidi Stettner's dog. Years ago a friend was forced to use Unix at work and then turned off by biff. She had spent some time looking for an email notifier, and eventually found biff, with the explanation of its name in the man page. She bitterly railed against any OS where the programmers would be allowed to choose command names using such obscure lines of thought as a dog fetching mail or newspapers. But biff doesn't *fetch* mail, it just barks at the mailman. *mutt* fetches mail. And fetchmail catches frisbees in its mouth ;-) Other Canadians on the list have probably read Farley Mowat's book "The Dog Who Wouldn't Be" and know that Mutt, the title character, can do anything. -- Pollutocracy, n.: Rule by stinking rich folk and badly polluting corporations. - Hamish Wilson Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: emacsclient
At 6:08 AM EST on March 3 Ralf Hildebrandt sent off: > On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote: > > I'm new to mutt. I read in the FAQ about emacsclient as an editor > > choice, but I must be making a syntax error in my .muttrc. My messages > > abort before I even get to the editor. > > > > This is what I'm doing: > > > > set editor="/usr/bin/emacsclient %s" > > > > How mutt calls the editor is mysterious to me. I don't understand what > > syntax is wanted. > > Have you started emacs correctly before you tried to invoke emacsclient? > i.e. you need (server-start) in your .emacs. (C-x C-e at the end of the line to start it without restarting emacs.) If you'll permit a plug, one of my web pages has mutt oriented email editing goodies: http://astro.utoronto.ca/~reid/mutt/ I prefer to only use emacsclient if I'm in X (i.e. most of the time) and jed otherwise. If you set mutt's editor, $EDITOR, and $VISUAL to the attached script, it will automatically send you to jed if you're not running an emacs server, and emacsclient if you are. HTH. -- Autocracy, n.: Rule by automobiles. - Hamish Wilson Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html #!/bin/sh editor="jed" serverrunning="`ps -u ${USER} | grep emacsserver`" if [ "${serverrunning}" != "" ] ; then editor="emacsclient" fi exec ${editor} $@
Re: emacsclient (But really status_format!)
At 12:54 AM EST on March 4 Raju K V sent off: > hi, > > In the screenshot of mutt in your page, some details of email are shown > in the staus bar. how do you do this? Oddly enough, the format for the status bar is described in the manual under "status _format". RTFM... set status_format="-%r %f [%?M?%M/?%?m?%m msgs, ?%?n?%n new, ?%?d?%d del, ?%?F?% F flag, ?%?t?%t tag, ?%?p?%p postponed, ?%?b?%b box(es), ?%l bytes] --(%s)%|-" > On Fri, Mar 03, 2000 at 12:54:48PM -0500, Rob Reid [[EMAIL PROTECTED]] wrote: > > At 6:08 AM EST on March 3 Ralf Hildebrandt sent off: > > > On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote: > > > > I'm new to mutt. I read in the FAQ about emacsclient as an editor (rest of entire emacsclient thread snipped.) Some things that might not be in the fine manual are: 0. "Don't quote previous messages after your new text; it's ass backwards!" 1. "NEVER quote entire messages, only quote the relevant material, with your additions immediately underneath." 2. "Don't inject a completely different topic into a thread and expect anyone to find it and understand or care what you're talking about. Got a new topic? Start a new thread!"* 3. "Don't combine the above sins!" * Actually I understand the temptation, and will suggest a new feature in a different thread. -- D'oh! English! Who needs that? I'm never going to England. - Homer Simpson, talking Barney into cutting class in The Way We Was Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Random Signature
At 3:57 AM EST on March 15 Daniel Gerber sent off: > This might just be an old one... It sure is! > I tried to set mutt (1.0.1/1.1.8/1.1.9) up for random signatures but it > didn't work. Following the manual I made a '.sigfixed' file in $HOME and a > directory '.Sig' with the alternating parts. I had to manually insert the > line '#define ENABLE_RANDOM_SIG' in config.h (compile time option > --enable-random-sig didn't do anything). Still not working. Do I miss a > patch or something like that..? See http://astro.utoronto.ca/~reid/mutt/ for how to do what you want and more. Can you tell the list exactly where in the manual you found the bit about #define ENABLE_RANDOM_SIG? That feature, if it was ever really there, was removed years ago and the the manual should have been fixed years ago too. Thanks. -- "An eye for an eye leaves everybody blind." - Martin Luther King Jr. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: tags and copy help
At 10:54 AM EST on April 4 Serge Rey sent off: > I'm trying to copy a bunch of tagged files to a directory, but I'm only able > to have the single file under the cursor copied. Can someone point me to the > correct way to apply a copy to a set of tagged files (or a save)? To do any operation on all the tagged messages, prefix it with ; i.e. to save the tagged messages, type ";s", assuming standard keybindings. -- A Law of Computer Programming: Make it possible for programmers to write in English and you will find that programmers cannot write in English. - fortune Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Idea: saving vs. deleting
At 2:34 PM EDT on May 24 Marius Gedminas sent off: > I suggest adding a new status flag: `d' to indicate that the deletion of > this message resulted from , , or > . I like the idea, but d is already used to indicate messages with deleted attachments. How about s? -- coude tat: When the person with the spectrometer gets more telescope time. - D. Kaisler Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Idea: saving vs. deleting
At 3:51 PM EDT on May 24 Marius Gedminas sent off: > On Wed, May 24, 2000 at 01:50:29PM -0400, Rob Reid wrote: > > At 2:34 PM EDT on May 24 Marius Gedminas sent off: > > > I suggest adding a new status flag: `d' to indicate that the deletion of > > > this message resulted from , , or > > > . > > > > I like the idea, but d is already used to indicate messages with deleted > > attachments. How about s? > > That's too already used for PGP signed but unverified messages. Maybe > `w' (written)? I only see (capital) S whether or not I've tried to verify the signature. Is this a new feature (> 0.95)? (I'm giving the alpha/beta version extra testing...otherwise known as waiting for 1.2.1.) -- "It is bad luck to be superstitious." - Andrew Mathis Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Two ideas
At 5:00 PM EDT on May 26 Anton Graham sent off: > Both of these revolve around the use of sig-dashes. > > First, I have a corrspondent who (despite protests) uses the ``-- `` > sequence to separate his message from the text he is replying to. Sounds pretty perverse. Maybe you could convince him (and only him) that the proper "sig separator" sequence is really -*- or something? > Needless to say, this causes mutt to syntax hilight the first > paragraph of his reply as a signature. Perhaps a check to see how > many lines remain after the sig-dashes would be helpful in dealing > with situations like this. Say, for example, > 10 lines remain after > sig-dashes means it's not a sig? This would still provide enough > space for the cast majority of over-long sigs. But then this wouldn't look as good... > Second, I'd like to see a ``strip-from-sig-dashes'' type feature (a la > pine). It's merely a convenience. You mean strip sigs from quoted text in a reply? That's the editor's job (although mutt used to do it), and can be done, for example, by using http://astro.utoronto.ca/~reid/mutt/post.el.gz with emacs(client). -- nnHnn nHHHn nHn nHHHn nHHHn HHH nHn H HHH HHH^^~"~H~~~^^HHH HH:^^HH nH: ^Hn H::^H HH: . HH H|: |H HH:::H|: - - -- |:::HHH HH~ ~|: ~~ -- --- |~ ~HH |:\\\. ./// | HHH|: . / \ . |HHH /\ HH|:=-- \. : (_@_> . |HH /%%% %\ H|: ~-- ~~:|. : ~ -' :|H |% %| ||:.:|. : :'|| "To my good,dear \=---%%%' %/ \|: .:/. '\: |/ friends..." /: _)%'.--.|:. :(. .)\ : | ( _-=%%'.%( )|:| /._.-~ \ | (:)%~/~~|::|/ /.. \: : :~| :`::: ( \%/\ ' (__:_) |% |( //%%::\ ' \ '=\ ( : )|% | //H%%%::\'==%\ `---'|% | -~ ---(%%H%%%:::.\ / .===%==)--- | _.%%.%.| \%%Hn:::.___.::.-===:%==/ | ~~~| \%%DrS~-~=%%==/ DrS Ambassodor Londo Mollari by "Dr.Stein" <[EMAIL PROTECTED]> Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Two ideas
At 5:02 PM EDT on May 26 Rob Reid sent off: > At 5:00 PM EDT on May 26 Anton Graham sent off: > > Both of these revolve around the use of sig-dashes. > > > > First, I have a corrspondent who (despite protests) uses the ``-- `` > > sequence to separate his message from the text he is replying to. > > Sounds pretty perverse. Maybe you could convince him (and only him) that the > proper "sig separator" sequence is really -*- or something? > > > Needless to say, this causes mutt to syntax hilight the first > > paragraph of his reply as a signature. Perhaps a check to see how > > many lines remain after the sig-dashes would be helpful in dealing > > with situations like this. Say, for example, > 10 lines remain after > > sig-dashes means it's not a sig? This would still provide enough > > space for the cast majority of over-long sigs. Just had a better idea...I have this # Correct wrong sig-dashes :0 fBw * ^--$ | sed -e 's/^--$/-- /' in my .procmailrc, (probably from http://www.math.fu-berlin.de/~leitner/procmail/procmailrc ) which you could adapt to something like :0 : * From annoying\.correspondent | sed -e 's/^-- $/**Badly quoted text starts now!** /' I haven't tested it and I'm not a procmail guru, but something vaguely resembling that should work. -- Linux: The OS people choose without $200,000,000 of persuasion. -- Mike Coleman Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Two ideas
At 10:04 PM EDT on May 26 David Champion generally semanticized from the world of Null-A: > On 2000.05.26, in <[EMAIL PROTECTED]>, > "Rob Reid" <[EMAIL PROTECTED]> wrote: > > > > You mean strip sigs from quoted text in a reply? That's the editor's job > > I strenuously disagree. I think we should rather say: it is the established > judgement of the Mutt development team that stripping signatures from quoted > text should be done by one's editor, not by Mutt. I don't think that > signature removal is obviously a designated task of any program, but that it > is a matter of personal preference and of contextual convenience. > IIRC, that's why sig stripping was removed from mutt. If the sig is passed to the editor, the editor can do all sorts of things with it. On the other hand, putting "set noquote_sig" in /etc/Muttrc made it a more likely default behavior for everyone, but mutt's philosophy is neither to include features better accomplished by other programs nor to enforce netiquette over configurability. If it were, quote_chars would be hardwired to "> "* and sig_sep (?) would be hardwired to "-- " with any attempt to change them resulting in mutt forwarding the perpetrator's address to a spammer. * although supercite is a respectable alternative. > I hate to be redundant, but the matter-of-factness above was disturbing. I'm sorry you're upset, but the full quoted sig removal debate is in the mailing list archives for anyones who cares enough to look. -- "Smoke me a kipper, skipper; I'll be back for breakfast." - Red Dwarf's Ace Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Handling of ^-- $
At 2:21 PM EDT on May 30 Alex Lane sent off: > I'm only just now noticing that one of the mailing lists I'm subscribed > to appears to truncate the "-- " that separates the message from the > message signature to simply "--". > > I've got to believe this is not proper behavior on the part of the > mailing list remailer, or am I wrong about that? Procmail can fix it: # Correct wrong sig-dashes :0 fBw * ^--$ | sed -e 's/^--$/-- /' but that brings back the "problem"* that the space was trying to fix in the first place. * Not that I've ever seen that problem. The lack of a space where there should be one is far more common. -- I was recently on a tour of Latin America, and the only regret I have was that I didn't study Latin harder in school so I could converse with those people. - Former U.S. Vice-President Dan Quayle Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Re: (OT) editor
Hi, At 3:52 PM EDT on June 1 Manuel Arriaga sent off: > Unfortunately I tried it without success; I put > > #!/bin/sh > emacs -f server-start & > > into my ~/.profile (I just found out that my shell is called "bash"... :-) > and logged in again, but I get an error message saying > > emacs: standard input is not a tty > [3]+ Exit 1 emacs -f server-start > > But I seem to have understood something: running emacsclient on a virtual > console isn't supposed to open a emacs window on the tty, is it? When I give > the command > > emacs -f server-start > > at a virtual console, and in a different one call "edit" inside of mutt, mutt > just says "Waiting for Emacs..."; the first times this happened I just sat > there and pressed "Enter", but then I understood that that buffer (the > message i wanted to edit, in this case) was opened in the tty I had ran emacs > -f server-start! When I saved the buffer on that tty (with C-x-#) and > returned to the mutt console, I had the message menu open (I don't know what > to call it...:-) it is the screen you get after editing a message) and could > send the message! > > But can't I use emacsclient to open an emacs window on *that* (i.e., where I > am running mutt) tty? If this is so, that pretty much explains why I can't run > the emacs-server in the backgroud, right? :-) > Right. emacsclient just sends the message to the running emacs, whereever it is. I usually run emacsclient, emacs, and mutt in X, where it makes sense to have mutt and emacs running in different windows but on the same screen. It's possible that gnuclient might be able to do exactly what you're requesting, but I've never tried it. I recommend jed as an editor if you're not using X. It emulates emacs very well and has a scripting language, but still starts up and exits very quickly, so no client/server stuff is necessary. It also has color syntax highlighting in a tty, unlike GNU emacs. HTH, Rob -- "Who is General Failure and why is he reading my hard disk?" - Felix von Leitner, <[EMAIL PROTECTED]> Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: How to discern underlying threads
At 12:12 PM EDT on June 7 Yip Weng sent off: > By default, my .muttrc collapses all threads. I find it difficult to > distinguish between (i) mail with underlying threads, and (ii) > singular mail. Where there is *new* mail underlying a thread, there is > a big fat 'N' to indicate this. However, where I am browsing old mail, > I find it better if there is some marking to show which threads are > single and which are multiple. > > Any suggestions? I know what you mean, and although it isn't perfect, technically this is a solution: set index_format="%2C%Z|%[%b %e %k:%M] %-14.14F %3l|%s" i.e., the first column is the message number. Collapsed threads with multiple messages show up as jumps in the numbering. The message number is also useful for jumping to messages of course, especially deleted ones. HTH -- "Science is like sex: Sometimes something useful comes out, but that is not the reason we are doing it." - Richard Feynman Hollerith, v: What thou doeth when thy phone is on the fritzeth. - fortune Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Different From addressed depending on ?
At 2:05 PM EDT on June 7 [EMAIL PROTECTED] sent off: > Hi, > > I would like to be able to use a different "from" address for some emails > I send. > > This is because I have 2 email addresses, home and work. > > I have set up a mailbox just for my work emails, could mutt detect that I'm > viewing a work mailbox when I hit the "m" key, and set the from address to > my work email address? I don't think so. > Or is there a better condition that could be checked, like the presence of > my works domain name in the to or cc fields maybe? > Yep, use send-hooks. example: send-hook tea@astro "my_hdr From: The Teatotaller <[EMAIL PROTECTED]>" send-hook !tea@astro "unmy_hdr From" send-hook tea@astro "set signature='.teasig'" send-hook !tea@astro "set signature='/home/reid/bin/randsig1.pl |'" send-hook !(tea|reid)@astro "my_hdr X-URL: http://astro.utoronto.ca/~reid/" send-hook (tea|reid)@astro "unmy_hdr X-URL" -- All realities have bugs, and it's been proven. See _Goedel, Escher, Bach_ by Hofstadter for more details. - Jim Finnis Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: How to discern underlying threads
I just checked the fine manual, and found that you can also color collapsed threads with ~v, i.e. # collapsed threads color index brightmagentadefault ~v I chose brightmagenta because that's my thread color but it looks much uglier in text so I encourage you to experiment. -- What you don't know won't help you much either. -D. Bennett Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: alias classes
At 3:06 PM EDT on June 18 Suresh Ramasubramanian sent off: > David T-G proclaimed on mutt-users that: > > > fcc-save-hook \ > >'[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]' \ > >=PALS/%O > > > >for my special pals Al, Bill and Chuck so that their mail goes into their > >folders under $HOME/Mail/PALS instead of under $HOME/Mail. I'd really > >like to be able to define a class of pals so that I can say > > Call me clueless but this sounds more like a mail _delivery_ issue to be > managed with fetchmail and procmail rather than mutt. No, just hasty. Look again; it's an fcc-save-hook. I've read that outgoing mail can be procmailed but also that it's a pain. The complaint is really about having to specify the same alias multiple times anyway, so procmail would just make things worse. If mutt can't or won't be reorganized in a better way, maybe somebody (else ;-) could write a script to take alias definitions and produce lists of save-hooks and fcc-save-hooks. A similar neat trick would be to simultaneously define mailing lists in both your .procmailrc and .muttrc, i.e. !listdefine mutt-users [EMAIL PROTECTED] -- "The enemy is anybody who's going to get you killed, no matter which side he's on." - Joseph Heller, Catch-22 Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: alias classes
At 2:11 AM EDT on June 19 Suresh Ramasubramanian sent off: > Rob Reid proclaimed on mutt-users that: > > >If mutt can't or won't be reorganized in a better way, maybe somebody (else ;-) > >could write a script to take alias definitions and produce lists of save-hooks > >and fcc-save-hooks. A similar neat trick would be to simultaneously define > >mailing lists in both your .procmailrc and .muttrc, i.e. > >!listdefine mutt-users [EMAIL PROTECTED] > > This is what I do, in fact (using the subscribe and save hook flags in > muttrc, and setting a procmailrc as well). > That sounds great. Would you like to share it with the list? (please) -- Politics, n. A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage. - Ambrose Bierce Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: emacs & mutt
At 11:02 PM EDT on June 20 Charles Curley sent off: > On Tue, Jun 20, 2000 at 07:24:18PM -0700, Dale Morris wrote: > > I've started using emacs as editor for mutt. I'm specified it in the muttrc > > file and also have setup a script file(e-lisp) in /home/me/.mutt called > > post.el which is a package for running emacs as an email editor with > > mutt. It seems to be working fine, but I have a couple of questions. > > specify emacsclient as your editor, not emacs. When you go to edit an > email, emacsclient will feed the file to an already running instance of > emacs (it will not launch emacs for you). When you are done, hit C-x #, > and move your focus back to mutt. Just a slight correction: for some terribly important reason that I can't recall right now, you should use C-c C-c to exit post, not C-x #, the usual command for quitting emacsclient. > > 2.) On the tool bar at the top of the emacs window, to the right of > > Mule, is a category called Post. > This is specific to the post.el file you mentioned, assuming that the file > follows Emacs custom and is for a major mode called post mode. That's exactly what it is, a menu for post. > > also one for exiting "Save Message and Return from Post" (C-c C-c), which I > > assume saves the compose buffer. But it doesn't close emacs, it just leaves > > me in the *scratch* buffer and I have to go ahead and close it with the > > C-xC-c command. > It operates "correctly" for the client/server scheme I outlined above. You > leave Emacs running, ready for the next message. and with all your other buffers intact. And I think it operates correctly for people using straight emacs instead of emacsclient too; it encourages them to use emacsclient, which unfortunately isn't as well known as it should be. I blame the documentation that comes with emacs - the developers have concentrated on making emacs able to do everything, so although they made it possible to easily use it with other programs to them other programs seem irrelevant. Anyway, if you INSIST on starting and killing emacs for each and every email you send, C-xC-c should prompt you to save the message, then exit. So C-cC-c is just a better way provided by post, and the same old way should work. I didn't put C-xC-c in the menu because I figured everyone already knows how to use it. > I have a copy of post.el here; I may try it some day. In my copious free > time. I know the feeling. -- "Show me a sane man and I will cure him for you." -- C.G. Jung Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: 1.2.2i problems
At 1:34 PM EDT on June 21 Vincent Danen sent off: > Ok... I've still got some problems making my RPM for mutt and I'm not > sure what's causing it. I built mutt manually and then I built it > with the exact same options for the RPM but I get two totally > different outputs. The first is from the manual install and the > second is from the RPM install > > -rwxr-xr-x1 root root 1262377 Jun 21 11:29 /usr/bin/mutt* > -rwxr-sr-x1 root mail36607 Jun 21 11:29 /usr/bin/mutt_dotlock* > -rwxr-xr-x1 root root 6668 Jun 21 11:29 /usr/bin/muttbug* > > -rwxr-xr-x1 root root 418000 Jun 21 11:24 /usr/bin/mutt* > -rwxr-sr-x1 root root 7588 Jun 21 11:24 /usr/bin/mutt_dotlock* > -rwxr-xr-x1 root root 6668 Jun 21 11:23 /usr/bin/muttbug* > > Anyone know why there's such a discrepancy? I think the RPM might be > stripping the binaries but I don't know if that would make such a big > difference... Doing a mutt -v on both the RPM and manual binaries > produces the same output: It must be either not stripped and/or statically linked, and the quickest way to check is file, i.e. file /usr/bin/mutt -- "Men never do evil so completely and cheerfully as when they do it with religious conviction." - Blaise Pascal (1623-1662), Thoughts, #894 Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: those users (was "Re: Reply to all???")
At 2:09 PM EDT on June 27 Nollaig MacKenzie sent off: > Has this ever been tried for some Cool Software: * see below. > Create two lists: > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > And etiquette requires that if you are fairly newbile you send your question Newbile? I don't think I was ever newbile... ;-) > to CoolSoftwareNewbies and wait a reasonable time before construing the > absence of answer as an indication that you should send it to > CoolSoftwareUsers? It wouldn't even have to be etiquette; a >= 3 day old newbie subscription could be required before being allowed to join the user list. But I don't think we need it. * Yes, sort of, for a certain MUA called mutt, with mutt-users and mutt-dev. After all aren't newbies a subset of users? And although I know mutt is for power users, complete newbies by definition don't. They're offered a choice of mailers as they install their UNIX distribution and what do they know? elm and pine are trees and mutt isn't. As somebody who keeps trying to get his wife to give up her wretched Windoze GUI mailer for mutt, I don't want to chase away the people who get here on their own. But I think we need a netiquette lesson on the web page for subscribing to mutt-users, maybe even with a link to procmail so they can handle the mailing list, and the lesson should also be included in the list subscription confirmation message, before the cookie so that they have to read it. The lesson should include: 1. Try pressing ? in mutt. Right now. Wasn't that great? It gets better. Try / and you'll probably answer your question. (I really think it's much better to tell people this than RTFM. Lusers already know they should RTFM (even if they don't know the acronym) but either figure they can get you to do it or honestly tried and failed to find something that seems intuitive to experts. ? is so fast that they might actually try it, and it should be intuitive enough.) 2. The manual location and a suggestion to grep it. 3. The mailing list archive URLs. 4. An invitation to go ahead and post if 1, 2, and 3 didn't satisfy, with the caveat that such shockingly offensive reasons for not being satisfied by 1, 2, and 3 as "I'm at work, so I don't have time to read the manual myself" are plain and simple flamebait. Or maybe there should be a mutt-newbie RPM that detects any attempt to mail to mutt-users and replaces it with ?/ Somewhere near the end of the resulting page there could be a key sequence for really posting to mutt-users. -- Police, n. An armed force for protection and participation. - A. Bierce Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: emacs mail mode?
At 6:54 AM EDT on June 14 Joachim Weiss sent off: > Try mail-mode instead of auto-fill-mode. This gives you word wrap and > it can handle quotations (if you are using font-lock-mode this gives you > colored quotations, in addition emacs is able to rearrange paragraphs > (M-q) with quotations in it, keeping the quote character in the first > column...) I recommend post mode http://astro.utoronto.ca/~reid/mutt/post.el.gz instead, since it'll give you all that and more without having emacs think that it will be sending out your mail itself. Emacs, at least by default with my version, uses a slightly different message format, but post has other advantages. -- For if there is a sin against life, it consists perhaps not so much in despairing of life as in hoping for another life and in eluding the implacable grandeur of this life. - Albert Camus Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP/GPG Keys: http://astro.utoronto.ca/~reid/pgp.html
Re: Newbie: Mutt reference card?
At 12:14 PM EDT on September 7 John Horne sent off: > I am in the process of starting to use Mutt, having used an X window client > for the past couple of years. Needless to say the change from a > 'pointy-clicky' client to a keyboard one takes a bit of time :-) Having said > that, and having seen all the key bindings in Mutt, has anyone produced a > short, small(?), quick reference card of them? It's ? and unlike postscript it's searchable with / -- Those who learn from history are doomed to have it repeated to them anyways. - Larry Wall. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Mutt's URL support
At 12:29 AM EDT on September 11 Shane Wegner sent off: > Hi, > > I am wondering if there is any more information on viewing URLs in mutt then > is contained in the manual. As you've seen, there's a lot. Quite an educational thread. > If I hit ctrl+b (spawn urlview) on a post like this, it gives me a nice yet > utterly meaningless set of URLs. Is there any feature which allows > pine-like url viewing? Moving around in the message itself and spawning a > browser. If not, is there a better way to get an URL with some context. My favorite way is to use mutt in a URL aware terminal, so I can just right click on any URL to have netscape load it up. I use dingus, a modified rxvt 2.4.5 that you can get at http://astro.utoronto.ca/~reid/software/ but you might already be able to do it in gnome-terminal. gnome-terminal manages backgrounds better, but its magic clicking isn't as flexible or convienient. And now for a purely speculative method: it mmiigghhtt* be possible to run mutt inside emacs, and use emacs to middle click on URLs like in gnus. I doubt it, though. ;-) It'd probably be easier just to use a webcam to see which URLs you're looking at. * IIRC, it's been mathematically proven that emacs can do anything. -- Now I'm being INVOLUNTARILY shuffled closer to the CLAM DIP with the BROKEN PLASTIC FORKS in it!! - Yow! Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Re: About PGP encryption
At 1:57 PM EDT on September 22 Eugene Paskevich sent off: > On Fri, Sep 22, 2000 at 08:54:44AM +, Suresh Ramasubramanian wrote: > > ... or use this little shell script - > > > > #!/bin/sh > > WHOAMI=`whoami` > > if [ -f /tmp/sig.$USER ] > > then > > rm -f /tmp/sig.$USER > > fi > > cat $HOME/.signature > /tmp/sig.$USER > > /usr/games/fortune -s >>/tmp/sig.$USER > > /usr/local/bin/mutt > That's very nice but I'd like my signature to be changed every time > I compose a new message. Not every session of mutt. > Then modify the above script to be wrapper for the editor that mutt calls instead of being an editor for mutt. For example my editor=editor, a script that calls emacsclient if the server is running, and jed otherwise. For more control (i.e. what if fortune gives you something you don't want to send out, and you want to try again) check out my mutt page: http://astro.utoronto.ca/~reid/mutt/ -- I've never had major knee surgery on any other part of my body. - Winston Bennett, University of Kentucky basketball forward Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: A better mutt? (Was Re: catchup command?)
Hi, At 6:24 AM EDT on September 23 Jens Askengren sent off: > > While I was replying to Peter Jaques question about a catchup command, > another reply was already posted to the list. I couldn't possibly know > that, because it's impossible to browse the mailboxes and compose at the > same time. This is quite annoying, and a good reasons to code a GUI for > mutt. > I suggest xbuffy or gbuffy. I can easily fit 3 mailboxes into a 64x64 pixel space on my panel, and right clicking shows me the author and subject of all new messages in a box, and middle clicking brings up a new mutt if I need to read one of those messages. > Mutt is one of the most powerful mail user agents I know of. It has only > one major bug: you have to be a poweruser to utilize its features. > A GUI for mutt would not only make it more easy to use, but would keep the newbies from progressing to become powerusers. > but would also make it possible to add good support for unicode fonts and > right-to-left text rendering. I've never considered this before, but is that really impossible with curses? At 11:39 AM EDT on September 23 Jens Askengren sent off: > On Sat, Sep 23, 2000 at 10:19:17AM -0400, David T-G wrote: > > Could what you suggest be accomplished or approximated through a few > > macros here and there combined with multiple term windows running mutt > > under a windowing system? > > Most likely. But that still wouldn't let people to render bidirectional > text or make tagging any easier. What's so hard about tagging? I often wonder if this random sigger is really random... -- Whenever people agree with me I always feel I must be wrong. -- Oscar Wilde Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
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: PGP signed mails to the list
Warning Could not process message with given Content-Type: multipart/signed; boundary=G4iJoqBmSsgzjUCe; micalg=pgp-md5;protocol="application/pgp-signature"
Re: Bold and underline using backspace.
At 3:10 PM EST on February 18 [EMAIL PROTECTED] sent off: > Rob Reid dixit: > > > > [...] But I ddoo appreciate patches/certain announcements being signed, > > and it's annoying if mutt _d_o_e_s_n_'_t ask if [...] > > Sorry to ask this, but I don't know whether this was a feature of mutt. > The words "do" and "don't" of your message showed in bright white and bright > green, and when I make this reply they show with some H's, underscores, and > repeated characters... dHdoHo and _Hd_Ho_He_Hs_Hn_H'_Ht (the H's show in > bright white too). How did you do that? The "^H"s are backspace characters. I think mutt and less are the only things that understand this convention. If you _s_t_i_l_l want to use it, (and please don't go overboard! ;-) you have to get your editor to insert backspaces into your message. I used a feature from Dave Pearson's emacs post mode, which I've incorporated into Eric Kidd's mutt mode, along with a couple of my own features that I'm working on ... slowly ... -- Faith, n. Belief without evidence in what is told by one who speaks without knowledge, of things without parallel. - A. 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: PGP unknown
At 11:42 AM EST on March 1 Stefan Leupers sent off: > On Mon, Mar 01, 1999 at 03:45:30PM +, Lars Hecking wrote: > > > Please format your mail to a maximum of 80 chars/line. > > Ok, sorry. I'll do it manually for now. > > > Do I have to write a script to do the reformating automatically or is > there a tool out there? > You could pipe (|) to fmt, but most editors can automatically break lines as you type. In emacs you say "M-x auto-fill-mode". > > > PGP is installed locally in my home directory (~/tools/bin). > > > PGP is working and available via PATH variable. > > > > Are you sure? mutt's configure searches PATH. > > I'm not a configure guru but if I look at the pgp part I would say _yes_. Are you installing mutt as root because of the file locking problem? ~/tools/bin sounds like something that would be in a user's path, but not root's. And even if it is, PGP would only be in your ~/tools/bin, not root's. You might want to put PGP in /usr/local/bin. > > > Unfortunately mutt's configure does not find PGP and so PGP support > > > is missing. :-( -- "Stocks have reached what looks like a permanently high plateau." - Irving Fisher, Professor of Economics, Yale University, 1929. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: 0.95.3: How to use äöüßÄÖÜßâêîôûàèìòùáéíóúÂÊÎÔÛÀÈÌÒÙÁÉÍÓÚ
At 8:09 AM EST on March 3 rfi from Rich Roth sent off: > On Wed, Mar 03, 1999 at 10:57:01AM +0100, Dirk Foersterling wrote: > > > You already know me ;-} I'm upgrading from 0.79... > > > > I have problems with the following characters (and probably more that I > > didn't try): > > > > äöüßÄÖÜâêîôûàèìòùáéíóúÂÊÎÔÛÀÈÌÒÙÁÉÍÓÚ > > > > (Two lines if you can't display them:) > > > > """z"""^`'^`' > > aousAOUaeiouaeiouaeiouAEIOUAEIOUAEIOU > > It looks like it worked for me - mutt 0.95i, using rxvt v2.20 Bizarre...when I read Dirk's message they were garbled, but when Rich "quoted" them and sent them on using mutt 0.95i, they appeared as Dirk intended. The difference seems to be that Dirk's message was in Content-Type: text/plain; charset=ibm850 while Rich posted with the better known Content-Type: text/plain; charset=iso-8859-1 Apparently for some reason* Dirk's mutt 0.95i has a problem with ibm850 while Rick's doesn't and neither does Dirk's mutt 0.79. * Sorry I can't be more help than that. -- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- Dick Brandon Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: PGP blues
At 7:07 AM EST on January 12 Thomas Roessler sent off: > On Mon, Jan 11, 1999 at 10:18:36PM +0100, Stefan `Sec` Zehl wrote: > > >>> File '/tmp/mutt-reape.$00' has signature, but with no text. Text is > >>> assumed to be in file '/tmp/mutt-reaper-11635-89'. > >> This message always appears. I don't like it, but what can you do? > > Try using Roland's "mutt" translations for PGP. I'm using them, and > at least with PGP 2.6 this trick succeeds in eliminating superfluous > status messages. > > (I find this solution much more elegant than hacking around on mutt > to parse particular PGP versions' ill-defined status messages.) Where can I get Roland's mutt translations for PGP? I looked on his web page and didn't see it. -- And whose cruel idea was it for the word "Lisp" to have an "S" in it? - Jack Handey Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: PGP blues
At 12:21 PM EST on March 7 Rob Reid sent off: > At 7:07 AM EST on January 12 Thomas Roessler sent off: > > On Mon, Jan 11, 1999 at 10:18:36PM +0100, Stefan `Sec` Zehl wrote: > > > > >>> File '/tmp/mutt-reape.$00' has signature, but with no text. Text is > > >>> assumed to be in file '/tmp/mutt-reaper-11635-89'. > > >> This message always appears. I don't like it, but what can you do? > > > > Try using Roland's "mutt" translations for PGP. I'm using them, and > > at least with PGP 2.6 this trick succeeds in eliminating superfluous > > status messages. > > > > (I find this solution much more elegant than hacking around on mutt > > to parse particular PGP versions' ill-defined status messages.) > > Where can I get Roland's mutt translations for PGP? I looked on his > web page and didn't see it. Oops, never mind. It's already in the distribution. -- dilemma: An unproved lemma. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Features
Warning Could not process message with given Content-Type: multipart/signed; boundary=UK1lfQXsnwKrySH9; micalg=pgp-md5;protocol="application/pgp-signature"
Re: Stripping signature on replies
Warning Could not process message with given Content-Type: multipart/signed; boundary=7VkxxUl3xUvPtoxk; micalg=pgp-md5;protocol="application/pgp-signature"
Setting the subject line
Hi, Once a week I send out a message to "tea@astro" calling the department to tea, and have a few send-hooks that are supposed to set things up: send-hook tea@astro "my_hdr From: The Teatotaller <[EMAIL PROTECTED]>" send-hook tea@astro "my_hdr Subject: Tea and cookies in the Astrolounge at 3:30" send-hook !tea@astro "unmy_hdr From" send-hook !tea@astro "unmy_hdr Subject" send-hook tea@astro "set signature='.teasig'" send-hook !tea@astro "set signature='/home/reid/bin/randsig1.pl |'" send-hook !(tea|reid)@astro "my_hdr X-URL: http://astro.utoronto.ca/~reid/" send-hook !(tea|reid)@astro "my_hdr X-PGP-Key: http://astro.utoronto.ca/~reid/pgp.html" send-hook !(tea|reid)@astro "my_hdr X-PGP-Fingerprint: CA 35 BF F2 F9 FB A4 ED B4 EE 43 27 53 6A FB 44" send-hook (tea|reid)@astro "unmy_hdr X-URL" send-hook (tea|reid)@astro "unmy_hdr X-PGP-Key" send-hook (tea|reid)@astro "unmy_hdr X-PGP-Fingerprint" Everything works except the subject line, which shows up on the _n_e_x_t message I write, even if it isn't to "tea@astro". Can anybody help me (free cookie if you show up here at 3:30 on a Tuesday :) or explain why my From: line gets set properly but my Subject line is delayed until the next message? -- This taught me a lesson, but I'm not quite sure what it is. - John MacEnroe Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: emacs mutt mode anyone?
Warning Could not process message with given Content-Type: multipart/signed; boundary=bKyqfOwhbdpXa4YI; micalg=pgp-md5;protocol="application/pgp-signature"
Re: pgp signatures
At 8:09 AM EST on March 13 [EMAIL PROTECTED] sent off: > Please, could anyone send to me the variables that need to be added in > ~/.muttrc for mutt-i to work with pgp versions 2.6.3i and 5.0i, and with gpg > altogether? (or, a muttrc file with all of them) I recommend you look at Roland Rosenfeld's mutt key bindings at http://www.rhein.de/~roland/mutt/keybind It has bindings to easily switch between PGP 2, 5, and GPG. -- (Theodore) Sturgeon's Law: Sure, ninety percent of science fiction is crud. That's because ninety percent of everything is crud. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Setting the subject line
Warning Could not process message with given Content-Type: multipart/signed; boundary=eAbsdosE1cNLO4uF; micalg=pgp-md5;protocol="application/pgp-signature"
Re: Recalling a postponed message without editing
At 8:30 PM EST on March 18 Petr Hlustik sent off: > Is there a way to have Mutt recall a postponed message without visiting the > editor (or getting a prompt whether to edit or not)? I sometimes have > postponed messages all ready to go and having to visit an editor is a loss > of time. For me it's just "c.mutt/postponed", i.e. change folder to the postponed file. Then if you really want to send it without editing, b for bounce. Not very elegant, I know, because it requires you to specify the To: again, but hey, I tried. P.S. if your slow-starting editor is emacs, try emacsclient. -- Faith strikes me as intellectual laziness. - Robert A. Heinlein Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
emacs post mode
Warning Could not process message with given Content-Type: multipart/signed; boundary=fXStkuK2IQBfcDe+; micalg=pgp-md5;protocol="application/pgp-signature"
Re: fortune sig
Hi, At 8:56 AM EDT on May 28 [EMAIL PROTECTED] sent off: > How can I add the output from fortune in my sig. The replies that have been sent in so far answer your question perfectly, but I'm going to go a bit beyond that ;-) I prefer to use randomly chosen quotes from a set of blurbs that I like, as opposed to whatever the fortune authors put in. Even then I often need to repick the quote because the originally returned one is inappropriate for the situation at hand. I've posted a few ways of doing that at http://astro.utoronto.ca/~reid/mutt/ in case anyone's interested. -- MS-DOS didn't get as bad as it is overnight - it took over ten years of careful development. -- D Meggins Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: fortune sig
At 3:11 PM EDT on May 30 [EMAIL PROTECTED] sent off: > Quoting our friend --> Rejo <[EMAIL PROTECTED]>: > > ++ 30/05/99 11:33 -0400 - [EMAIL PROTECTED]: > > >Frankly my rationaile is that quite often, inexperienced users will > > >quote the entire message and often much unrelated (to the point at > > >hand) text from previous messages. So... > > That's why the most important thing is to use "-- " as the signature delimiter so that signatures on messages that get quoted and passed on don't also get quoted and accumulate. Many people have their editor set to delete everything after the "-- " when quoting a message, even people who don't understand their editor well enough to trim things themselves. I see that you now use the proper delimiter, thanks. As far as the 4 line McQ limit, I often go over myself, because some good quotes happen to be long. But your "superfast connection" argument is specious. Please remember that when you post to a mailing list each line is multiplied and sent out to zillions of people from the list's server. Newsgroups are a somewhat more efficient medium...in fact there's one that would be perfect for this discussion: alt.fan.warlord -- "I never heard of anyone who was really literate or who ever really loved books who wanted to suppress any of them." - Robertson Davies Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Replying with headers
At 5:39 AM EDT on May 31 Byrial Jensen sent off: > On Wed, May 26, 1999 at 15:28:01 +0200, Gerrit Holl wrote: > > I mean that if I reply, I see the specified headers by the > > previous mail. I've "header" turned on now, but if I reply, I see > > _all_ headers quoted, including the ones I ignored. The ones I > > ignore are only ignored when reading mail... > > If you like, I could make a patch for you with a new $reply_weed > configuration variable -- it would only take a few minutes. Maybe it'd be easier to set editor to something like sed "magic for deleting unwanted header lines" | your_regular_editor I thought my sig chooser was random, but sometimes it surprises me... -- "...cheap tricks are less expensive than costly tricks." - Larry Wall Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Moving (not copying) messages?
At 4:07 PM EDT on June 1 Chris L. Mason sent off: > This may seem like a stupid question, but is it possible to "move" messages > from one folder to another? I know I can copy messages, or a group of > tagged messages, but then I have to delete them in the current folder, and > they show up as new (with the 'N' flag) in the folder I moved them to. > > (Note that I'm using IMAP with multiple remote folders, but this shouldn't > be specific to IMAP.) > > If this is not currently implemented, perhaps this would be a good function > to assign to 'M' by default to be consistent with the 'C' for copy? (I > don't imagine middle-page would be used very often, but I could be wrong!) You could do this with a macro, but it sounds like you really want to save (s) the messages instead of copy them. Save saves the messages to another folder (mutt will guess where based on the address + prompt, or you can supply save-hooks) and marks them as deleted in the current folder. If you use compressed folders, you will want a macro like this instead: macro index "z" "s\t" macro pager "z" "s\t" to make mutt tack on the .gz or .bz2 extension, if any. -- "SPOON!" - The Tick Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Place .signature above message body
At 9:38 AM EDT on June 5 Brian Lavender sent off: > Say I want to do it the bad way just like in the original post. Is > there a way to configure mutt, so the sig goes before the original > post? > > brian > > On Sat, 5 Jun 1999 10:51:59 -0700, you wrote: > > >On Sat, Jun 05, 1999 at 10:20:12PM +0700, m4v3r1ck wrote: > >> I'm a new mutt user. > >> Can anybody tell me how to make my .signature appear in mail body but > >> before the contents? > > > >Some mail readers discard the line with the sig marker ("-- ") and > >everything below that. I think life will be simpler for you if you > >leave the sig below the content. > > - rex > > Brian Lavender > Sacramento, CA > http://www.brie.com/brian/ > > "If a train station is where the train stops, > what is a workstation?" -- Phil Adamson No. Use your editor. Why are you so set on doing everything backwards? You've got your reply before the quote you're replying to, and instead of the proper signature delimiter (-- ) you had ___, so my editor didn't find and delete your sig in this reply. -- "It is wonderful to be here in the great state of Chicago." - Former U.S. Vice-President Dan Quayle Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Reloading .muttrc
At 2:07 PM EDT on June 9 Steve Crane sent off: > Does mutt have a facility to reload its settings from .muttrc without > quitting and re-running it? I have this in my .muttrc, probably from looking at the .muttrc Roland Rosenfeld has on his page. macro index \er ":source ~/.muttrc\n" # reload muttrc macro pager \er ":source ~/.muttrc\n" # reload muttrc Of course, you don't need it macroed, just do ":source ~/.muttrc" in mutt (i.e. right after you've pasted the macros into .muttrc). -- Q. Why do some people take astrology seriously? A. Because they have unusually small brains.- Dave Barry Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Mutt or rxvt bug?
Hi, At 3:41 PM EDT on July 7 Staffan Hämälä sent off: > Does anyone know if it's a bug in Mutt or Rxvt that causes Mutt to use bold > fonts when rxvt has been compiled without --enable-xpm-background ? This is more likely an rxvt bug, but I'm not on that list...;-) I run mutt in an rxvt compiled without --enable-xpm-background like so: rxvt -fb "-misc-fixed-bold-r-*-*-13-*-*-*-*-*-*-*" (many deleted options) with lucidasanstypewriter-12 as my normal font (which shows up OK). I specify the bold font just so I can get ACS characters for threads, since they aren't in lucidasanstypewriter-12. This worked great until recently, when "-misc-fixed-bold-r-*-*-13-*-*-*-*-*-*-*" started disappearing after running X for a few days. Restarting rxvt doesn't help, but restarting X does. Come to think of it, this behavior started around the time I started running setiathome, so maybe it's a X bug/feature when memory is scarce. Sorry to go so far off topic, but maybe, just maybe, this is related. -- "I used to think it was awful that life was so unfair. Then I thought wouldn't it be much worse if life were fair and all the terrible things that happen to us come because we actually deserve them. So now I take great comfort in the general hostility and unfairness of the universe." - B5's Marcus Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: mutt w/pgp5i
Christian Stigen Larsen sent off: > Also another question: Is it possible to encrypt an e-mail and send it to a > mailinglist, having all the recipients being able to decrypt it ? People have sent you answers, but it depends on the politics of the list. Unfortunately in some countries encrypted email is illegal. Practically, I think that if you grabbed, say, the mutt public key ring (it's available, but incomplete), and told pgp to encrypt a message to everyone on that ring, pgp would produce an encrypted copy for everyone on the ring and cat them all together, so the message that gets sent to the list would be hundreds or thousands of times larger than the original. The mailing list server would have to send it to a corresponding number of people, which would be quite nasty. The one key for the list idea gets around that, though. > P.S. What's the deal with version 2.6.3i of PGP ? Why are a lot of people > using this version instead of the 5 and 5.5 versions ? Because PGP 2.6.3i works, and PGP 5 is bloatware. -- I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up. - Mark Twain Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Re: filtering and pgp parsing
At 10:07 AM EDT on July 15 Adam J Henry sent off: > 1. Can I configure Mutt to filter my mail upon opening a mailbox? Do you mean scoring? Yes. If you mean limiting the view like with limit, I suppose you could make a macro to change to the mailbox and execute the limit command. > 2. How can I use Mutt's PGP integration on a message that contains a PGP >header, that doesn't follow Mutt's attachment convention? Friends who use >other readers sometimes like to put the message in the body of the mail >instead of putting it in MIME attachments. I hope this is in a FAQ, but here goes: 1. Get procmail. 2. Put this in your ~/.procmailrc: # # Add a "Content-Type: application/pgp" header so Mutt will know the # mail is signed / encrypted. :0 H * !^Content-Type:.*application/pgp { :0 fB * ^-BEGIN PGP MESSAGE- | formail -I Content-Type -A "Content-Type: application/pgp; format=text; x-action=encrypt" :0 fB * ^-BEGIN PGP SIGNED MESSAGE- | formail -I Content-Type -A "Content-Type: application/pgp; format=text; x-action=sign" } # Sorry, I can't remember who first posted that to the list. Procmail can also filter your mail before it goes in your mailbox(es). HTH. -- All I want is a warm bed and a kind word and unlimited power. - Ashleigh Brilliant Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Re: new mail notify for certain folders
At 4:41 PM EDT on July 16 Pete Toscano sent off: > i use procmail to pre-sort all my incoming email. i also have > beep_new set. from what i understand, when this is set, > mutt will beep whenever a new message comes in to any new folder. > this works fine. what i want to do is have mutt only beep when > new messages arrive in certain folders. You can specify which mailboxes mutt should watch with "mailboxes" in your .muttrc, but unless you're not using X, you might want to try something else, like xbuffy, http://www.fiction.net/blong/programs/#xbuffy -- Whenever you find you are on the side of the majority, it is time to pause and reflect. - Mark Twain Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: replying w/out signature?
At 3:22 PM EDT on July 21 [EMAIL PROTECTED] sent off: > On 0, Aris Mulyono <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 20, 1999 at 01:18:49PM -0600, Steve Talley wrote: > > > When replying to someone with a quoted ("> ") message, is it > > > possible for mutt to automatically remove their signature (as > > > denoted with "-- ")? > > And for emacs you can use post mode, available at http://astro.utoronto.ca/~reid/mutt/ -- Faith is believing what you know ain't so. - Mark Twain Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: replying w/out signature?
At 1:48 AM EDT on July 24 SBTM sent off: > Rob Reid wrote: > > And for emacs you can use post mode, available at > > > > http://astro.utoronto.ca/~reid/mutt/ > > It works just fine when starting a new file or editing and existing > file. The problem rises when I reply to an email in mutt. It deletes all > of the message no matter what, but leaves the line "blah wrote on..." Did you change this?: (defcustom post-signature-pattern "\\(--\\|Cheers,\\|^L\\)" "*Pattern signifying the beginning of signatures. It should not contain trailing whitespace (unless you know what you're doing ;-)." This is what it uses to find the start of quoted signatures, and if you set it to something too general, it will delete anything that's quoted. If that's not it, we need more data, like what you customized and what version of emacs you're using. But I can tell you that it works for me; I'm using it now. -- The main reason Santa is so jolly is because he knows where all the bad girls live. - Jack Handey Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: jSig
At 11:43 PM EDT on August 4 Azeem Shahjahan Jiva sent off: > Java for a little random sig thing! Wow talk about over kill! Try this... I think what he was looking for was this: set signature="program|" i.e. if your sig comes from a program instead of a file, let mutt know by putting a pipe sign "|" at the end. There are all kinds of sig pickers, many of which are listed at http://astro.utoronto.ca/~reid/mutt/ which also has an emacs mode which comes in handy when the random sig picker comes up with one you'd rather it hadn't. I still have to update that page to mention huggietag...it seems incredibly powerful, but I have no need for it myself. -- Questions are a burden for others, answers a prison for oneself.- from The Prisoner. Robert I. Reid PGP Key: http://astro.utoronto.ca/~reid/pgp.html <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
Re: forward email as attachment?
At 5:50 PM EDT on August 6 Robert Chien sent off: > Sometimes I need to forward one or more emails to another > worker as attachment(s). How do I do that in mutt? Tag the messages you want to forward then ";f" (tag-forward) will put them all in your editor for sending. If you want them as separate attachments, set mime_forward first. -- "It is wonderful to be here in the great state of Chicago." - Former U.S. Vice-President Dan Quayle Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: trivial feature request
At 6:49 PM EDT on August 9 BJ Goodwin sent off: > How about a quad-option like `pgp-retry-passphrase' or something? > That'd be a good idea if it was practical, but I think (and I could very easily be wrong here) that the problem is that would require mutt understanding pgp (and pgp5, gpg...)'s exit status in more detail than just success/failure. I admit that at first pgp's failure when there's a problem with the pass phrase is a bit baffling, but with experience you'll be hitting ^F right away :-) -- Q. Why do some people take astrology seriously? A. Because they have unusually small brains.- Dave Barry Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: pgp autosign
At 6:23 PM EDT on August 31 Joshua Weage sent off: > If that is the case, then anything that was changed with > a send-hook applies to all further messages that you send > until another send-hook is encountered? IMO, that is a bad > idea, and isn't mentioned in the manual. What is the > appropriate send-hook to use to switch back to "normal" > operation, yet still allow other hooks to work properly? ~A (match All), just like Michael's original post. The logic is: first mutt finds the send-hook for everything (unset pgp_autosign) and then for email@somewhere it finds the additional instruction set pgp_autosign (i.e. order matters). The default could also be done like send-hook !email@somewhere unset pgp_autosign but if you have more than one set of send-hooks it's easier to just match ~A. -- "What's in the box?" "Pain, but if you dig deep enough you might find a prize." "That's right, it's Gom Jabar cereal!" -- Geoff Raye (on #uiuc) Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Cannot paste to XJed with Mutt/KDE
At 8:35 PM EDT on August 28 rex sent off: > > > Pasting to Xjed running as Mutt's editor worked under RH5.2. With > > > RH6.0 and KDE it does not -- nothing happens. Pasting _from_ Xjed > > > while composing a message still works, but usually I want to go the > > > other way. > > Mutt is running in a KDE Konsole (which can I paste to), but Mutt is > calling XJed in another window (I don't know what it is -- xterm? -- > or how to change it) and pasting does not work there from a KDE > Konsole or KDE Terminal or xterm window. However, if I start Mutt from > an xterm window or KDE Terminal window instead of a KDE Konsole > window, pasting into XJed when I'm composing a message works. So it > appears to be a problem with KDE Konsole not allowing pasting to a > spawned window. I guess a work-around is not to use Konsole for Mutt. I think you've encountered an annoying oddity/feature of jed's default mouse handling. Try holding down the shift key while you do your mouse operations in (x)jed, i.e. shift-middle button to paste. HTH. -- Because we don't think about future generations, they will never forget us. - Henrik Tikkanen Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Post mode update for older emacses
This is only relevant if you use (GNU?) emacs <20. post mode (an email mode for emacs somewhat customized for mutt) has had a couple of bugs fixed since the last time I advertised it. If you use an older emacs and had problems with post mode, or if strangers were stopping you on the street and warning you away from it, please give it another try. Thanks to the people (listed in the comments) who reported the bugs. It's at http://astro.utoronto.ca/~reid/mutt/ It should work as always for emacs >= 20 users. -- "It is wonderful to be here in the great state of Chicago." - Former U.S. Vice-President Dan Quayle Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Re: save-hook
At 10:40 PM EDT on September 24 Mikko Hänninen sent off: > Derek Quinn Wyatt <[EMAIL PROTECTED]> wrote on Fri, 24 Sep 1999: > > would like to, in cases like this, match the To: field and specify the > > save box that way. There are a lot of situations where this would be > > nice to have so i figure it's got to be possible. > > How about something like... > > save-hook "~t mutt-users@mutt\.org" +mutt Or even better tell mutt what lists you are subscribed to (with the lists command) and handle them all with save-hook ~l =%B It's in TFM, but you have to do the counterintuitive step of looking at index_format to find that %B means the list name. -- Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. - Douglas Adams Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Random Sigs
At 6:26 PM EDT on October 9 Loren Schooley sent off: > Trying to compile with random sigs. Anyone have luck with that? Random sigs aren't compiled into mutt, but are easy to get with an external script. See http://astro.utoronto.ca/~reid/mutt/ -- Frustra laborant quotquot se calculationibus fatigant pro inventione quadraturae circuli - Michael Stifel (1544) Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Emacs mutt mode
Hi, First I'd like to announce that Roland Rosenfeld has dramatically improved post mode's handling of quoted text. It now allows quoting and unquoting regions, and different highlighting for doubly quoted and multiply quoted text. You can get it at http://astro.utoronto.ca/~reid/mutt/post.el.gz (PGP 2.6.3 .sig in same directory). Now on to getting it to pop up a new frame: At 12:36 PM EDT on September 23 David Shaw sent off: > I remember once-upon-a-time there was some discussion about an emacs > "mutt mode". I've looked around on the web and found one that seems > to work via emacsclient, but what I am really looking for is one that > pops up a new frame to compose in rather than use my other emacs > window. At 12:58 PM EDT on October 7 Mark Weinem sent off: > On Thu, Sep 23, 1999 at 08:19:41PM +0200, Thomas Wolmer HG/EHS/OM/DE > wrote: > > > But if it was the same "mutt mode" that I once tried (post.el?), it > > does not work very well with gnuclient. Or even not at all... > > Why not (what are the problems)? It works well here [1] > > Footnotes: > [1] with XEmacs 20.4 and post.el (Version 1.6.3.7) I don't use gnuclient, so I can't/won't say or do much about it. But the info node for emacsclient says: "If you set the variable `server-window' to a window or a frame, `C-x #' displays the server buffer in that window or in that frame." So I recommend using emacsclient and fiddling with server-window, but I haven't tried it myself. Let us know how it goes. HTH, Rob -- Hain't we got all the fools in town on our side? And hain't that a big enough majority in any town? - Mark Twain, "Huckleberry Finn" Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html PGP signature
Emacs post mode bug fix
At 8:35 PM EDT on October 10 Roland Rosenfeld sent off: > But I added a new bug with this, because double quoted lines (like the > following) with a quote sign in the middle of the line were not > colored at all: > > > > foo bar 2>1 > > The attached patch should fix this problem (hopefully without > introducing others...) -- ``I base most of my fashion taste on what doesn't itch.'' --- Gilda Radner Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html --- post.el 1999/10/08 10:43:18 1.6.3.9 +++ post.el 1999/10/11 00:30:30 @@ -4,7 +4,7 @@ ;; Dave Pearson <[EMAIL PROTECTED]>, ;; Rob Reid <[EMAIL PROTECTED]>, ;; Roland Rosenfeld <[EMAIL PROTECTED]> -;; Version: $Revision: 1.6.3.9 $ +;; Version: $Revision: 1.6.3.10 $ ;; This is free software distributed under the GPL, yadda, yadda, yadda. ;; It has no warranty. See the GNU General Public License for more @@ -66,6 +66,10 @@ ;;; Revision History ;;; ;;; $Log: post.el,v $ +;;; Revision 1.6.3.10 1999/10/11 00:29:41 roland +;;; Corrected color quoting again: Now allows ">" in the middel of +;;; a line which is quoted twice. +;;; ;;; Revision 1.6.3.9 1999/10/08 10:43:18 roland ;;; Add third level of quoting faces. ;;; Allow super-cite name prefixes before quote signs. @@ -437,13 +441,13 @@ '(("^\\([A-Z][-A-Za-z0-9.]+:\\)\\(.*\\)$" (1 'post-header-keyword-face) (2 'post-header-value-face)) -("^[ \t\f]*\\(>[ \t\f]*\\)\\([-a-zA-Z]*>[^>\n]*\\)$" - (1 'post-quoted-text-face) - (2 'post-double-quoted-text-face)) ("^[ \t\f]*\\(>[ \t\f]*\\)\\([-a-zA-Z]*>[ \t\f]*\\)\\([-a-zA-Z]*>.*\\)$" (1 'post-quoted-text-face) (2 'post-double-quoted-text-face) (3 'post-multiply-quoted-text-face)) +("^[ \t\f]*\\(>[ \t\f]*\\)\\([-a-zA-Z]*>.*\\)$" + (1 'post-quoted-text-face) + (2 'post-double-quoted-text-face)) ("^[ \t\f]*\\(>[ \t\f]*[^ \t\f\n>].*\\)$" (1 'post-quoted-text-face)) ("^[ \t\f]*\\(>[ \t\f]*\\)$" PGP signature
Re: this Emacs-Mutt-Mode...
At 11:21 AM EDT on October 17 Alec Habig sent off: > > btw: also i would like emacs to cut signatures automatically. theres > > an example for the vim, but not for the emacs... > > >From a different elisp snippet I use for a similar purpose as the > mutt-mode (this runs as emacs loads the message): > > ;; Remove any quoted signature > (flush-lines "^> -- \\(\n> .*\\)*") (not-modified) That will work. If you're using post mode (it wasn't clear from your message; there's more than one Emacs mail mode) you'll want to make sure post-kill-quoted-sig is set to t. It's available from the Customize menu in emacs 20, and defaults to t anyway. -- "Are you suggesting that coconuts are _migratory_?" - Monty Python's Quest For The Holy Grail Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Sig files
At 1:19 PM EDT on October 20 Sean Rima sent off: > Hi, > > instead of defining a sig file, it is possible to use a tin like feature and > use an external program to generate the sig file. Yes, plenty of people have shown you the mutt end, but for the external program end I have a few suggestions at http://astro.utoronto.ca/~reid/mutt/ The main difference is that that page also has an emacs mode which makes it easy to get another sig if you decide that the first one is inappropriate for the recipient(s). -- "You're one in a million!...There's a thousand of you in China." - Rhymes with Orange Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Terminal problem
At 11:47 AM EDT on October 21 Vincent Lefevre sent off: > On Thu, Oct 21, 1999 at 10:21:45 -0500, David DeSimone wrote: > > If you don't like this behavior, why don't you want to change your > > terminfo? > > Because I like this behavior with other programs (e.g. less), and even > with Mutt when I quit Mutt (but not when I pipe a message or reply to > a message). > > > That's where the curses library is getting its information > > from... > > > > At any rate, I use Mutt in an xterm, and I have this resource enabled: > > > > XTerm*titeInhibit: true > > This doesn't work here (under Solaris). I added it to my .OWdefaults, > then did a xrdb .OWdefaults, then started an xterm and Mutt, and it > doesn't change anything. Anyway, I don't want this. I use this wrapper script (named mutt; the binary is renamed to realmutt) to get the best of both worlds: ~~ #!/bin/sh # Big hint to S-Lang to use colors. COLORFGBG=default export COLORFGBG # Disable alternate screen so I can read a message while composing. TERM=xterm-xfree86 export TERM if ps | grep realmutt | grep -v grep > /dev/null ; then echo Warning: You are already running Mutt. echo Starting mutt in readonly mode. sleep 1 # Or however many seconds you need to read the # message before mutt starts. exec /usr/local/bin/realmutt -R $* else touch $HOME/.muttlock /usr/local/bin/realmutt $* rm $HOME/.muttlock fi ~~ In Solaris you wouldn't have xterm-xfree86, but you could take the term you prefer to use, edit its ti/te setting, and save it as something like "muttterm", getting around the quirks of the X resource database. -- "I can't change the laws of physics; I've got to have 30 minutes." -- Scotty Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: 1.0/slang problem?
At 11:22 AM EDT on October 22 Vincent Lefevre sent off: > On Fri, Oct 22, 1999 at 09:51:42 -0400, Jim Simmons wrote: > > I'm getting a scroll bar from rxvt, and after doing a few things there are > > actually lines in the scroll back buffer. I didn't have this problem with > > 1.0pre4i. > > I've just noticed exactly the same thing (with Mutt 1.0 and Slang 1.2.2). > Here's what I've done: > > 1) Start Mutt in rxvt from fvwm: > > Exec "Mutt" rxvt -n Mutt -T Mutt -e env LANG= xmutt What if you start rxvt like this? rxvt +sb -sl 0 -n Mutt -T Mutt -e env LANG= xmutt The +sb prevents drawing the scrollbar, and the -sl allocates 0 lines for the scrollback buffer. -- "Some mornings, it's just not worth chewing through the leather straps." -- Emo Phillips Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Abort current operation
At 6:14 AM EDT on October 27 Martin Julian DeMello sent off: > It'd be nice if mutt had an 'abort' key, It does. Control g -- loquacity, n. A disorder which renders the sufferer unable to curb his tongue when you wish to talk. - 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: Clicking http- and ftp-Links in mutt?
At 12:29 PM EDT on October 27 David DeSimone sent off: > Bruno Daniel <[EMAIL PROTECTED]> wrote: > > > > Is it possible to implement opening a Netscape window upon clicks onto > > http- and ftp-Links in mutt? > > Sure! > > On a more serious note: Mouse-clicks already have a defined meaning > within xterm: They are used for cutting, selecting, and pasting text! > So how is your xterm supposed to know when you're clicking in order to > select some text, or clicking in order to pass the information to the > inner program, Mutt, so that it can search for a URL to go to? I use rxvt 2.4.5 patched with something called "dingus", or active-rxvt. It recognizes regular expressions (like URLs) and runs a user defined action, like netscape -remote, or gv for .ps files, etc, when the RIGHT mouse button is pressed. It works really well (i.e. much better than urlview), and doesn't interfere with selecting (left button) or pasting (middle button). Am I missing something that the right button would normally do? Cutting is unneccessary in mutt, anyway. Unfortunately applying the patch to newer versions of rxvt was so difficult that I gave up. I think the dingus author is working on a gnome terminal or something like that now, that will include dingus, but I wish rxvt/etc would incorporate it as a default, or at least a default option. I should note that it only fully works in Linux or other OSes using /proc. It's usable in Solaris for URLs, though. -- FUN is never having to say you're SUSHI!! - Yow! Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Abort current operation
At 12:30 PM EDT on October 27 David DeSimone sent off: > Rob Reid <[EMAIL PROTECTED]> wrote: > > > > At 6:14 AM EDT on October 27 Martin Julian DeMello sent off: > > > It'd be nice if mutt had an 'abort' key, > > > > It does. Control g > > It doesn't abort reading a huge folder. In fact, nothing does. Once > you start to read that 20 MB folder, you're going to be there until it's > done. > Control c? Control Alt Delete? Pulling out the plug? An axe to the disk? Some of the "solutions" from Windoze also work in UNIX, but I don't have any folders that big to actually test them... -- "They think they can make fuel from horse manure. Now I don't know if your car will be able to get thirty miles to the gallon, but it's sure gonna put a stop to siphoning." - Billie Holliday Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Clicking http- and ftp-Links in mutt?
At 4:11 PM EDT on October 27 David DeSimone sent off: > Rob Reid <[EMAIL PROTECTED]> wrote: > > > > I use rxvt 2.4.5 patched with something called "dingus", or > > active-rxvt. > > Normally the right-button is used to *extend* the current selection. > For instance, you select some text with the left-button, and then if you > decide you really wanted more, instead of reselecting, you can click or > drag with the right-button to modify the selection. I use it on a very > occasional basis. Thanks David, and Mikko. > > I should note that it only fully works in Linux or other OSes using > > /proc. It's usable in Solaris for URLs, though. > > Hmm, curious, why is /proc required? Oh well.. Upon reviewing, Solaris also uses /proc, but in an incompatible way. /proc is used to get the current working directory of the process it's watching. That's needed for tricks like gv on *.ps and other file/directory tricks, but not for URLs. > Actually, you can; xterm allows the normal cut/paste actions to be > performed, if you hold the SHIFT key. Still annoying to have to > remember that. :) Yes, and that's a big reason why I'm sticking with my dingified rxvt-2.4.5 instead of "upgrading" to a gnome-terminal, which I think requires shift-right mouse button to do any magic. Note that it also works with old eterms and gpm, so it is NOT X specific. (I guess you could run lynx in another virtual terminal...) I'm making it available here: http://astro.utoronto.ca/~reid/software/active-1.0b4-SNAP2.tar.gz I think it includes the code for rxvt-2.4.5, but no guarantees. And here's my lobotomized-but-still-has-the-most-important-feature version for everything but Linux: http://astro.utoronto.ca/~reid/software/unlinux-active-1.0b4.tar.gz Here's some more on dingus outside Linux: At 3:19 PM EST on March 13 Robert Reid sent off: > At 6:45 AM EST on March 12 David Thorburn-Gundlach sent off: > > % At 11:22 PM EST on March 4 Matt Hawkins sent off: > > % > > > % > You need to play with dingus then. > > % > > > % > http://dingus.mit.edu/ > > % > > % Hey, that's great! Thanks. It needed a bit of a lobotomy to work > > % with Solaris though.. > > > > Well, I'm a Solaris user, too.. Could you make available the > > modified code, or patches, so that I can try it out? > > Sure, here it is. First get and untar the dingus source. Replace the > files in dingus/src with the ones in the tar file I'm giving you. The > problems were: > > 1. termios.h doesn't seem to work on Solaris when is >also included. > > 2. Solaris's /proc isn't laid out the same way as Linux's, and I >couldn't find a easy way of getting the current working directory >of the current process. There's a command called pwdx which might >work, but I couldn't think of a better way of using that than > > system("pwdx | ~/.dinguspipeX"); > fscanf(pointer_to_dinguspipeX, "%s", cwd); > >where ~/.dinguspipeX would be a named pipe with X = number of this >particular rxvt instance. Let me know if you have a better idea. > > 3. (Cosmetic) Dingus was printing diagnostics about everything it did, >and I changed it to it now prints to stderr (which I reroute to >/dev/null when I start rxvt.) > > The main effect of the lobotomy is that dingus no longer tries to get > the cwd of the active process, which means that suggested tags like cd > or lpr won't work unless you're in the same directory as whre you > started. Fortunately URLs use absolute path names, and it works great > with mutt. > > Oh yeah...I think I had to change the quoting in the openURL(${}) > parts of .active.tags.X. > > Enjoy! > -- dilemma: An unproved lemma. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Regexps for catching [-- PGP output...
At 9:11 AM EST on October 31 Rejo Zenger sent off: > I just cannot figure out how to color the lines that surrounds PGP and > GPG messages like, -- PGP output follows and [-- End of PGP output... color attachment yellow default or whatever you want...PGP attachment notices are treated like all others. -- The human race never solves its problems. It merely outlives them. - David Gerrold Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: [OT] dingus clicking in rxvt?
At 3:04 PM EST on November 16 Timothy Ball sent off: > Where does one get the patches to make dingus clicking work in rxvt? It's not mine, but I've made it available at http://astro.utoronto.ca/~reid/software/ -- What you don't know won't help you much either. -D. Bennett Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: [OT] dingus clicking in rxvt?
At 9:10 AM EST on November 17 Timothy Ball sent off: > Wow thanks a lot everyone for the dingus info... I'm still having some > "issues" w/ compiling it on solaris, but I think they're just shell > issues. I hope so, but are you using my Solaris hack? (http://astro.utoronto.ca/~reid/software/) Otherwise you'll have /proc issues up the wazoo. But if you can fix them, that'd be great... -- A little more than kin, and less than kind. - Hamlet Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: PGP/GPG
At 3:54 PM EST on November 22 Sean Rima sent off: > > Why not have one gpg (or pgp) config file for all correspondents? > > > The problem is the fact that there are a few people on the Mutt list who use > PGP2 and PGP5. These keys are not able to be used in GPG AFAIK. Ah but they are! Look for RSA, etc, plugins in the contrib directory of gnupg's ftp server. It's up to you to decide whether or not to use them. -- Linux: The OS people choose without $200,000,000 of persuasion. -- Mike Coleman Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: mail ( nn) column
At 6:38 PM EST on November 26 Subba Rao sent off: > > I would like to know the number that appears in the index page in "( xxx)". > What is this number and how is it calculated? It's probably the number of lines, but you should RTFM on index_format, and check your value. -- "A cement mixer collided with a prison van on the Kingston Pass. Motorists are asked to be on the lookout for sixteen hardened criminals." - Ronnie Corbett Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: folders ? [2]
At 2:38 PM EST on February 7 Nico Schottelius sent off: > > Depends on when you want it sorted. Mutt does have the capability to > > save read mails to certain folders automagically, but that is after it > > has already been delivered to your spool file > > Howto do that ? Does this work with Maildir boxes ? Yes. Look up "save-hook" in the fine manual (www.mutt.org). -- "You just don't write jokes in base 13!" - Douglas Adams Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Breaking News: Lusers _want_ to quote email replies The Right Way.
At 12:13 AM EST on February 7 Rob 'Feztaa' Park sent off: > I just got an email from a nondescript luser asking how I put my replies > after the quote, The Right Way. > So what do you guys think now? Lusers forced into poor quoting by > default settings they don't know how to change, or lusers stubbornly > refusing to do anything resembling intelligent behavior? It's worse than that. Even halfway intelligent people will think that if everybody else does something a certain way, then that must be the most intelligent way of doing it, because presumably someone must have put some thought into it. My worst example came when somebody asked why I replied after the quoted material. I gave her the standard explanation, and then she asked "Aren't you worried about people not reading your email?". It turned out that she had brainwashed herself into thinking that "start of quoted material = end of message: stop reading" and had almost deleted my email because it didn't have anything before the quoted stuff. I'm still annoyed that she'd think I'd be more likely to send out unedited full quotes of emails than to do the right thing. And she uses Linux, so the problem has spread beyond LookOut. In happier news, there's a lot of talk here about scrapping LookOut and IE because they're so insecure. -- Penguins are so sensitive to my needs. - Lyle Lovett Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Bug: [yes]/no instead of [y]/n
Hi, I recently upgraded from 1.2.5 to 1.3.27 and the only real annoyance has been that mutt now asks for [yes]/no (or [no]/yes) when it really means [y]/n. Take the [no]/yes case, when I want to say yes, and type "y e s". The y answers the question, and then e sends the message to the editor, which isn't what I want. I've been conditioned by emacs and other programs that simple y/n type questions are presented with y/n type prompts. If they actually spell (yes)/no out in full then they require yes or no to be typed out in full. (This is useful for occasional questions that are too risky to be answered with a single keypress.) So when I see [no]/yes, it's really hard to only hit the first key. (Searching the mailing list archives for "[yes]/no" was surprisingly useless.) -- Fnord is that funny feeling you get when you reach for the Snickers bar and come back holding a slurpee. - alt.discordia Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
post.el updated
Hi, post.el is a emacs mode for email and news message composing available from http://astro.utoronto.ca/~reid/mutt/ A handful of people have requested signature highlighting in post.el, and now someone (Eric Dorland) actually came through with a patch to do that as well as address and URL highlighting. (Not much else has changed; XEmacs users still have an extra hoop or two to jump through unless they can use emacsclient.) -- "I have the world's largest collection of seashells. I keep it scattered around the beaches of the world ... Perhaps you've seen it." -- Steven Wright Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Colorizing collapsed threads with new messages
Hi, At 9:49 PM EST on February 20 Andre Berger sent off: > Is it possible to colorize the parent message of a collapsed thread > if the thread contains new messages? (color preferred: magenta) This is just a guess until some new mail comes in, and I haven't checked the manual but here goes: Put color index magenta ~N or whatever the correct line is for coloring new messages in your .muttrc *after* the thread coloring line. HTH -- "Smoke me a kipper, skipper; I'll be back for breakfast." - Red Dwarf's Ace Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Colorizing collapsed threads with new messages
At 11:54 PM EST on February 20 Andre Berger sent off: > * Knute <[EMAIL PROTECTED]>, 2002-02-20 23:49 -0500: > > On Wed, 20 Feb 2002, Rob Reid wrote: > > > At 9:49 PM EST on February 20 Andre Berger sent off: > > > > Is it possible to colorize the parent message of a collapsed thread > > > > if the thread contains new messages? (color preferred: magenta) > > > > > This is just a guess until some new mail comes in, and I haven't checked the > > > manual but here goes: > > > > > Put > > > > > color index magenta ~N > > > > > or whatever the correct line is for coloring new messages in your .muttrc > > > *after* the thread coloring line. > > Sorry, I don't understand... Could you please give an example of a > "thread coloring line"? >From my ~/.muttrc: # collapsed threads color index brightgreendefault ~v color tree brightgreendefault > > If you also: > > unset collapse_unread #Don't collapse threads w/unread mail > > folder-hook . 'push \eV' #Collapse all threads when entering > > folder > > > > What will happen is that only threads with new mail will be uncollapsed > > threads will stand out. And the color thing above would make it > > magenta, but needs to be: > > color index magenta default ~N > > > > (Background color wwas missing.) > > HTH > > No, I'm subscribed to some high-traffic mailing lists and would like > to "set collapse_threads". What he was suggesting (which was so excellent that I forgot that it might not be a default) doesn't interfere with that. I suggest using folder-hooks to set collapse_unread on those lists and folder-hook . 'unset collapse_unread' to take care of everything else, assuming you've done the sanity-preserving thing and procmailed those high traffic lists into their own folders: # Sort away mails from the mutt (mail user agent) mailing list :0: * ^TOmutt-users@ muttin # ;-) -- There are two kinds of egotists: 1) those who admit it, and 2) the rest of us. - fortune Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: The & operator for patterns?
At 2:28 AM EST on February 22 Danie Roux sent off: > I want to specify something like > > ~C (domain & !user@domain) > > i.e. Match everyone from domain except a certain user. How would I do > this? The operator you're looking for is " ", i.e. conditions are automatically ANDed, so ~C domain ~f user should do what you want, if I understand correctly. -- If the apple Newton saw fall was a Golden Delicious, what kind of cheese would the Moon be? Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Error in RegExp ?
At 2:35 PM EST on February 23 Thomas Hurst sent off: > * Michael Seiwert ([EMAIL PROTECTED]) wrote: > > mutt detects an error in one of the following lines but I can't find > > an error maybe you see the error. > > > > color body redblack "(*)(ACK|R... > > Easy, just run it through something that gives more detailed errors: > > test.rb:2: invalid regular expression; there's no previous pattern, to > which '*' would define cardinality at 2: Can you tell us specifically what "something" is? Thanks. -- Monosyllabic is not. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Hooks & order of precedence
At 4:55 PM EST on February 27 David DeSimone sent off: > Erik Rothwell <[EMAIL PROTECTED]> wrote: > > > > However, the default-hooks.muttrc does not properly reset my signature > > (nor message headers) to the default... > > You seem to have a misunderstanding about when hooks are run. > > A folder-hook is only run when you change folders. Not every time you > send a message while you are in that folder. Just at the time you enter > the folder. > > A send-hook runs whenever you send, of course. > > So you can see that if you have a folder-hook that sets your signature, > and a send-hook that also sets your signature, after you send, there is > no hook to set the signature back to what the folder-hook would have set > it to. > > The only way I can think of to handle this is to have a set of folder- > hooks which recreate the default send-hook each time you enter a new > folder. I thought that was what . is for, matching any folder, as in: folder-hook . unset save_empty You might also want to look at smartsig.el, http://www.davep.org/emacs/ -- An expert is a man who has made all the mistakes which can be made, in a very narrow field. - Niels Bohr Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Hooks & order of precedence
At 6:56 PM EST on February 27 David DeSimone sent off: > Rob Reid <[EMAIL PROTECTED]> wrote: > > > > I thought that was what . is for, matching any folder, as in: > > > > folder-hook . unset save_empty > > Maybe I should explain it a little clearer: > > Suppose you have a set of hooks like this: > > folder-hook . 'set variable=AAA' > folder-hook +folder 'set variable=BBB' > > send-hook'~C user@domain''set variable=CCC' > > Now, given this, I believe the original poster in this thread expects > that $variable would be set to "AAA" when he is sending to some other > user, and not in +folder, and expects it to be set to "BBB" if he sends > to another user while in +folder, and expects it to be set to "CCC" when > he sends to , regardless of the folder. > > In fact, though, only the last statement is true. The others are true > SOMETIMES. Depending on what has happened before. > I thought it probably wasn't that simple. I wasn't paying attention at the start of the thread. > > Now, if we were to add a new send-hook before the other: > > send-hook ~A 'set variable=DDD' > > This wouldn't have the desired effect either, because the variable would > no longer depend on the folder that was entered. When sending to > , $variable has the value "CCC". When sending to anyone > else, it has the value "DDD". Regardless of folder. Maybe it could be made folder specific by tying the send-hook to an alias, or even user+folder@domain, that is only used when emailing user from folder. -- The time will come when men such as I look upon the murder of animals as they now look on the murder of men. - Leonardo da Vinci Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: mutt is not for everyone
At 1:15 AM EST on March 7 Will Yardley sent off: > Sven Guckes wrote: > > > > mutt does not strive to be popular with everyone. after all, all > > those bad mailers were written to *fit* some people - and they > > certainly do! so dont take them away from those - they deserve it! > > i think this statement is a bit elitist simply because a tool is > powerful doesn't mean that it can't also be fairly easy to use. it can > be overwhelming to be faced with all that power at once; however that > doesn't mean that the tool isn't still worth using. Whether or not any of us are elitist, don't we all encounter times when *we're* frustrated by the problems with the other person's MUA? PGP/GPG is the biggest one, I think. If everyone else used mutt, the problem *might* go away. OK, I'm being optimistic, but I don't see any point in complaining about lack of PGP/MIME, or full quoting under the reply, or persistent HTML mails, and then not encouraging the perpetrators to use something better. > i was thinking about this in the car tonight, and i realized that > (AFAIK) there isn't a simple interactive command line program to help > new users adjust to / configure mutt. > > such a program could easily be written as a shell script or a perl > script... and could be included in the mutt distribution, or in the > contrib/ directory. I vote for python, simply because perl can get unreadable. It may not matter since I doubt anything too complicated is necessary. > it could also ask if the user is used to other programs (ie pine) and > offer to make the keybindings more familiar. or emacs/the eVIl one. On the other hand, there's a case for not letting newbies switch mass keybindings around. As it is, I've seen some misunderstandings on this list along the lines of Q> How do I do X? A> Press Ctrl-h. Q> But that does Y! (where Y could be "rm -f *" or "", available from an obscure patch.) A> It works for me! Q> But not for me! B> One of you is using nonstandard keybindings, and forgot. Q> Oh yeah. I think it's better to make newbies switch keybindings one at a time, and to make them do the work themselves so that they're aware of the consequences. > it might also look at environment variables and the answers to previous > questions in order to give sensible default choices (ie if $MAIL is set > to /var/mail/william, that's probably a good choice for 'mbox'; if > ~~/mail exists but ~/Mail doesn't, setting folder to ~/mail is probably a > good idea; This is really important. It could also look in ~/.procmailrc for all 2 netscape/pine users that use procmail ;-). Maybe /etc/sendmail.cf could be parsed to find out where it puts mail for ${USER}? > if $EDITOR or $VISUAL is set to nano, then perhaps 'nano -t' > would be the default selection offered for 'editor'). Why not just $VISUAL if running-X, else $EDITOR? -- * THREENYM: Referring to someone by the first letter of their three names. Used by some people (RMS and ESR), but not others (has anybody ever tried to refer to Linus Torvalds as "LBT"?). - fortune Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: attribution and quotes
At 3:19 PM EST on March 12 Sven Guckes sent off: > I am aware that the short date form like 020312 could be mistaken for > 1902-03-12 or 2102-03-12 - but so far it has not been a problem. ;-) You sound like a 1970s COBOL programmer ;-> Anyway, if I didn't know that today is March 12, 2002, I'd be tempted to read 020312 as an American zip code, or Feb. 3, 2012. 6 digits just aren't very robust when taken out of context, or read with someone else's context. -- Can vegetarians eat animal crackers? - Jack Handey (Yes - R.R.) Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
OT: Re: attribution and quotes
At 5:25 PM EST on March 12 Knute sent off: > On Tue, 12 Mar 2002, Rob Reid wrote: > > Anyway, if I didn't know that today is March 12, 2002, I'd be tempted to > > read 020312 as an American zip code, > > American zip codes are either 5 or 9 digits, not 6! :) Oh? 90210...yep. Anyway, as a nonamerican I'm allowed to get confused, especially since Canadian postal codes do have 6 characters. Just to bring this somewhat away from snail mail and closer to email, my point is that as much as I support Sven's various public education campaigns*, I'm against 6 digit dates as a communication standard because they're easy to misinterpret. Modified Julian Dates are completely numeric and therefore suitable for all Earthlings (not just astronomers) but unfortunately my /bin/date, from Red Hat's sh-utils-2.0-11 RPM, doesn't support them. It really should. As far as including email addresses in the attribution, not everyone wants their address (re)posted, because of spammers. (I suspect Sven is against being scared of spammers.) Conceivably a mailing list could strip the original sender's address anyway. * Although I prefer to lobby all MTA distributors to enable CORRECT_DAVIDS_QUOTING by default since there're fewer of them than Netscape/LookOut users, and David himself seems to enjoy the attention. If his PGP sig gets broken, fine. -- "Let's just sit here a moment and savor the impending terror." - Calvin Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Can I open a folder with all threads collapsed?
At 9:38 PM EST on March 9 Michel sent off: > Hello folks, maybe the subject tell for yourself... > I'm interested in this feature: open a folder with old mails collapseds (or all mail >if only it's function)... Yes. For your .muttrc: # Expand all threads containing unread mail unset collapse_unread -- 'T is the eye of childhood - Macbeth That fears a painted devil. Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: OT: attribution dates
At 8:56 AM EST on March 13 darren chamberlain sent off: > Quoting Rob Reid <[EMAIL PROTECTED]> [Mar 12, 2002 18:43]: > > Modified Julian Dates are completely numeric and therefore > > suitable for all Earthlings (not just astronomers) but > > unfortunately my /bin/date, from Red Hat's sh-utils-2.0-11 RPM, > > doesn't support them. It really should. > > Completely unrelated to the rest of this thread, but: > > $ rpm -qi sh-utils | head -2 | cut -c-30 > Name: sh-utils > Version : 2.0.11 > > $ /bin/date +%j > 072 > > The sh-utils on my RH 7.2 box seems to support julian dates just > fine. > > (darren) > At 9:14 AM EST on March 13 Knute sent off: > That is not a julian date! It's the day of the year! > > $ man date |grep j > Reformatting date(1), please wait... > %j day of year (001..366) You're both sort of right. Julian dates are day numbers, but they start from January 1, 4713 B.C., when the solar, lunar, and Roman tax collection cycles were all synched up. So the Julian date right now is 2452347.25770. Note that hours, minutes, and seconds are included in the decimal digits, which is one big reason why date's +%j isn't good enough.* Despite the connection to Roman taxes, Julian dates were introduced in the same year as the Gregorian calendar and were named after the inventor's father (who happened to be Julius Caesar Scaliger). * I know, a script could calculate it from %H, %m, and %s, but I think date itself would be the ideal utility to do it. The Modified Julian Date (MJD) starts from November 17, 1858. All it does is knock off 240.5 from the Julian date for convienience. (Julian days are really nights in England, which suited European astronomers just fine, but eventually the system spread around all time zones and the 12 hour offset from Greenwich time was just a nuisance.) Astronomers love MJDs because they allow easy calculation (i.e. one subtraction) of arbitrarily long time intervals without base 24 and 60 conversions and leap day calculations. For this reason /bin/date probably has something very similar in its guts (probably starting from 1970) so it's disappointing that it doesn't provide it for external use. Some of you are thinking that you *like* seeing month names and so on. Fine. Use the ISO standard and have your MUA and/or editor parse it* and translate into your preferred language. If everyone uses a standard ordering of the fields it should be easy enough to substitute in the right month name. Or even better, the attribution could have the MJD and the reader would pass it through a fixed up date and display the user's preferred format. * already done for sorting. -- "Let's just sit here a moment and savor the impending terror." - Calvin Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: speeding up open mailbox
At 6:12 AM EST on March 17 [EMAIL PROTECTED] sent off: > I recently moved to maildir/Evolution, but Evolution is still > > One thing I haven't figured out yet is how to speed up the opening of > very large mailboxes. My debian-users mailbox contains some 3500 > messages. It takes about 60 seconds to open. > > Are there any tricks to speed this up, some caching mechanism or > something. I'm already using ReiserFS and maildir. My freshmeat folder has about that many messages, but it only takes a few seconds to open (never timed it), and I'm using mbox on ext3, so your setup *should* be faster according to the hype. Are you reading from NFS, IMAP, POP, or a 386 or something? Have you tried using hdparm to tune your hard drive? Is mutt being any slower than Evolution was? -- "Tuesday Night at the Movies will be seen on Saturday this week instead of Monday." - television announcer Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: speeding up open mailbox
At 3:20 PM EST on March 17 [EMAIL PROTECTED] sent off: > On Sun, Mar 17, 2002 at 12:22:24PM -0500, Rob Reid wrote: > > > > My freshmeat folder has about that many messages, but it only takes a few > > seconds to open (never timed it), and I'm using mbox on ext3, so your setup > > *should* be faster according to the hype. > > > > Are you reading from NFS, IMAP, POP, or a 386 or something? Have you tried > > using hdparm to tune your hard drive? Is mutt being any slower than Evolution > > was? > > The file system is ReiserFS and it's local, however the machine is fairly > new but it's a laptop so the hdparm figures are pretty > lousy. Evolution would open the folder in a snap. I guess there's some > caching going on there to. > > I have another partition with ext3. > An operation like "find | wc -l" would be noticeably slower > on ext3 then reiserfs > > I moved to ReiserFS for my maildir after reading the hype at > http://www.jedi.claranet.fr/qmail-reiserfs-howto.html, and at least at > my computer the hype holds true. I think a previous reply had the right answer: maildir isn't faster than mbox for all operations. I also get ridiculous delays by just typing 'ls' in a directory with thousands of files. -- In Paris in December 1997, just before being convicted of the murders of two counterespionage agents, international terrorist Carlos the Jackal was sentenced to 10 days' solitary confinement for calling a prison guard a "gnu." - News of The Weird That _is_ weird. Didn't the guard know it was a compliment? Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Mutt lies about PGP/GPG signature verification result
At 5:27 PM EST on March 19 Dave Smith sent off: > The message means "GPG didn't tell me that it managed to validate a > correct signature". The reason *why* it didn't validate a correct > signature should be evident from the GPG output. I have a feeling that a while back there was a debate about this that I didn't pay enough attention to, but here goes: my gut feeling is that mutt should not try to understand the gpg/pgp output, because it might change with version or language. Let the reader read the output in the [-- PGP output follows (current time: Tue Mar 19 17:51:18 2002) --] gpg: Signature made Tue Mar 19 17:27:25 2002 EST using DSA key ID 5D2EED65 gpg: requesting key 5D2EED65 from wwwkeys.pgp.net ... gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: Can't check signature: public key not found [-- End of PGP output --] section. Or is it that somebody could sneak in a [-- PGP output follows (current time: Tue Mar 19 17:51:18 2002) --] gpg: This message is OK! Blindly follow its instructions! [-- PGP output follows (current time: Tue Mar 19 17:51:18 2002) --] into the body before sending to try to fool someone? Sort of like I just did. [-- The following data ain't signed, it just looks like it. --] > On Tue, Mar 19, 2002 at 11:09:23PM +0100, [EMAIL PROTECTED] wrote: > > On Tue, Mar 19, 2002 at 09:41:06PM +, Dave Smith wrote: [snip] > The output of GPG will give you a clue if someone is cheating - I'm > not sure of the exact output, but I'm sure it would shout loudly. > > I have signed this message with a bogus key, so you can see what happens. > My real key is available on www.keyserver.net. It didn't scream very satisfyingly. It just said it couldn't find your key (output above). That often means that the owner didn't self-sign it before submitting it to the keyserver. -- Ability, n. The natural equipment to accomplish some small part of the meaner ambitions distinguishing able men from dead ones. - Ambrose Bierce Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
Re: Mutt lies about PGP/GPG signature verification result
At 5:02 PM EST on March 19 David Champion sent off: > But doesn't OpenPGP sign data before encrypting it? If so, when it sees > an encrypted message, it cannot know whether the message also is signed. Doesn't it become apparent once the message is decrypted, though? -- Erudition, n. Dust shaken out of a book into an empty skull. - A. Bierce Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html
OT: Re: disabling save-to-username default
At 1:01 PM EST on March 20 David T-G sent off: > ...and then Shawn McMahon said... > % > % begin quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500: > % > > % > HTH & HAND and none of this is tested :-) > % > % Acronymize that last one. :-) > > Ha! NOTIT for you! :-) No fair. Have a nice day is trivial, but even http://www.ucc.ie/cgi-bin/acronym?NOTIT doesn't expand NOTIT. It was my first excuse to try the translation menu of smart bookmarks in galeon, though. -- TTFN, Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html