Re: 3 quick questions
* Peter Gelbman [EMAIL PROTECTED] [2002-06-08 01:54]: ## Delete messages to the trash can rather than bit-bucket, unless ## we're in the trash folder. folder-hook . macro index d save-message=trashenter folder-hook . macro pager d save-message=trashenter folder-hook . macro pager D delete-message folder-hook trash macro index d delete-message folder-hook trash macro pager d delete-message # When we go into to the trash folder, tag stuff greater than 14 # days old. Don't mark anything that's already flagged, though. folder-hook trash push 'D~r14d!~F\n' Thanks for the tip. I've used almost the same setup for a while, but yours is cleaner. I'd like to use the push thing but when I go into my trash folder it get a: Key is not bound. Press '?' for help. Running Running 1.3.28i under Solaris 8 Where can I find out more about the push command to tweak it to my own tastes? Thanx The push command assumes that your bindings are the same as mine. I've been meaning to modify it for a while to: folder-hook trash push 'delete-pattern~r14d!~Fcr' Which doesn't assume anything about bindings. (darren) -- Don't sweat the petty things, and don't pet the sweaty things.
Re: 3 quick questions
On Mon, Jun 10, 2002 at 07:53:26AM -0400, darren chamberlain wrote: * Peter Gelbman [EMAIL PROTECTED] [2002-06-08 01:54]: ## Delete messages to the trash can rather than bit-bucket, unless ## we're in the trash folder. folder-hook . macro index d save-message=trashenter folder-hook . macro pager d save-message=trashenter folder-hook . macro pager D delete-message folder-hook trash macro index d delete-message folder-hook trash macro pager d delete-message # When we go into to the trash folder, tag stuff greater than 14 # days old. Don't mark anything that's already flagged, though. folder-hook trash push 'D~r14d!~F\n' Thanks for the tip. I've used almost the same setup for a while, but yours is cleaner. I'd like to use the push thing but when I go into my trash folder it get a: Key is not bound. Press '?' for help. Running Running 1.3.28i under Solaris 8 Where can I find out more about the push command to tweak it to my own tastes? Thanx The push command assumes that your bindings are the same as mine. I've been meaning to modify it for a while to: folder-hook trash push 'delete-pattern~r14d!~Fcr' Which doesn't assume anything about bindings. Actually I was using the same binding, but this generic one is better. The problem was that that I seem to need to use enter instead of cr. Dunno why. Actually I prefer to be interactively asked b4 nuking the marked messages upon entering the trash folder, so I am just leaving the enter off. Thanks again
Re: 3 quick questions
* Ken Weingold [EMAIL PROTECTED] [2002-06-06 16:40]: Well here's a feature request. I wish there were an option to have mutt prompt you for which return address to use, being able to pick from a menu of addresses set somewhere in the muttrc. Any possibility? A few months ago, some (sorry, I don't remember who) posted a patch that adds an ask-from quadoption, which does what you're asking for in not too many lines. It's written against 1.3.27, and I've applied it to 1.3.28 (haven't tried 1.4 yet). It's attached. (darren) -- Students achieving Oneness will move on to Twoness. -- Woody Allen diff -rup mutt-1.3.27.orig/init.h mutt-1.3.27/init.h --- mutt-1.3.27.orig/init.h Mon Dec 10 02:09:03 2001 +++ mutt-1.3.27/init.h Tue Feb 12 12:28:01 2002 @@ -181,6 +181,12 @@ struct option_t MuttVars[] = { ** If set, Mutt will use plain ASCII characters when displaying thread ** and attachment trees, instead of the default \fIACS\fP characters. */ + { askfrom, DT_BOOL, R_NONE, OPTASKFROM, 0 }, + /* + ** .pp + ** If set, Mutt will prompt you for a From: address + ** before editing an outgoing message. + */ { askbcc, DT_BOOL, R_NONE, OPTASKBCC, 0 }, /* ** .pp diff -rup mutt-1.3.27.orig/mutt.h mutt-1.3.27/mutt.h --- mutt-1.3.27.orig/mutt.h Tue Jan 15 13:00:32 2002 +++ mutt-1.3.27/mutt.h Tue Feb 12 12:30:20 2002 @@ -307,6 +307,7 @@ enum OPTALLOWANSI, OPTARROWCURSOR, OPTASCIICHARS, + OPTASKFROM, OPTASKBCC, OPTASKCC, OPTATTACHSPLIT, diff -rup mutt-1.3.27.orig/send.c mutt-1.3.27/send.c --- mutt-1.3.27.orig/send.c Fri Dec 28 09:14:36 2001 +++ mutt-1.3.27/send.c Tue Feb 12 12:23:27 2002 @@ -201,6 +201,8 @@ static int edit_envelope (ENVELOPE *en) char buf[HUGE_STRING]; LIST *uh = UserHeader; + if (option (OPTASKFROM) edit_address (en-from, From: ) == -1 || en-from == +NULL) +return (-1); if (edit_address (en-to, To: ) == -1 || en-to == NULL) return (-1); if (option (OPTASKCC) edit_address (en-cc, Cc: ) == -1)
Re: 3 quick questions
* David T-G [EMAIL PROTECTED] [2002-06-06 16:31]: % 1. Where do D (deleted) msgs go? Is there an equivalent of % trash, or am I truly out of the disneyland GUI world now and % just like using rm on files, there's no going back. With the stock version, that's the way it is. [-- snip --] Other folks have in the past whipped up some macros that bind 'd' to actually save to some other folder where you *then* really delete the messages later. I have been using this setup for over a year, and it works great: ## Delete messages to the trash can rather than bit-bucket, unless ## we're in the trash folder. folder-hook . macro index d save-message=trashenter folder-hook . macro pager d save-message=trashenter folder-hook . macro pager D delete-message folder-hook trash macro index d delete-message folder-hook trash macro pager d delete-message # When we go into to the trash folder, tag stuff greater than 14 # days old. Don't mark anything that's already flagged, though. folder-hook trash push 'D~r14d!~F\n' Thus, in all folders except trash, 'd' moves the message to the trash folder, and 'D' deletes it for real, when I'm viewing the message (in the index, 'D' still maps to delete-pattern). Every few days or so, I go into the trash folder to clean it out (I save 2 weeks worth of trash). Hope that's helpful. (darren) -- We can't all, and some of us don't. That's all there is to it. -- Eeyore
delete messages to trash - was 3 quick questions
On Fri, Jun 07, 2002 at 08:18:37AM -0400, darren chamberlain wrote: * David T-G [EMAIL PROTECTED] [2002-06-06 16:31]: % 1. Where do D (deleted) msgs go? Is there an equivalent of % trash, or am I truly out of the disneyland GUI world now and % just like using rm on files, there's no going back. With the stock version, that's the way it is. [-- snip --] Other folks have in the past whipped up some macros that bind 'd' to actually save to some other folder where you *then* really delete the messages later. I have been using this setup for over a year, and it works great: ## Delete messages to the trash can rather than bit-bucket, unless ## we're in the trash folder. folder-hook . macro index d save-message=trashenter folder-hook . macro pager d save-message=trashenter folder-hook . macro pager D delete-message folder-hook trash macro index d delete-message folder-hook trash macro pager d delete-message # When we go into to the trash folder, tag stuff greater than 14 # days old. Don't mark anything that's already flagged, though. folder-hook trash push 'D~r14d!~F\n' Thus, in all folders except trash, 'd' moves the message to the trash folder, and 'D' deletes it for real, when I'm viewing the message (in the index, 'D' still maps to delete-pattern). Every few days or so, I go into the trash folder to clean it out (I save 2 weeks worth of trash). Hope that's helpful. Wow! This is great and ..helpful is a bit of an understatement. And even better, I'm starting to understand some of this stuff (the hooks), although I must admit the push statement will take some more studying ...! Thanks, Kevin (darren) -- We can't all, and some of us don't. That's all there is to it. -- Eeyore -- Kevin Coyner mailto: [EMAIL PROTECTED] GnuPG key: 1024D/8CE11941
ask-from quadoption was 3 quick questions
On Fri, Jun 07, 2002 at 08:13:40AM -0400, darren chamberlain wrote: * Ken Weingold [EMAIL PROTECTED] [2002-06-06 16:40]: Well here's a feature request. I wish there were an option to have mutt prompt you for which return address to use, being able to pick from a menu of addresses set somewhere in the muttrc. Any possibility? A few months ago, some (sorry, I don't remember who) posted a patch that adds an ask-from quadoption, which does what you're asking for in not too many lines. It's written against 1.3.27, and I've applied it to 1.3.28 (haven't tried 1.4 yet). It's attached. (darren) Many thanks for the patch. I'll give it a try, but have to learn how to apply them first. I've graduated from windoze to linux rpms to now being comfortable with compiling source, but haven't tried the patch route yet. Got to read up on it first. Kevin
Re: patching (was Re: ask-from quadoption was 3 quick questions)
Kevin -- ...and then Kevin Coyner said... % % On Fri, Jun 07, 2002 at 08:13:40AM -0400, darren chamberlain wrote: ... % A few months ago, some (sorry, I don't remember who) posted a patch that ... % 1.3.28 (haven't tried 1.4 yet). It's attached. % % (darren) % % Many thanks for the patch. I'll give it a try, but have to learn how % to apply them first. I've graduated from windoze to linux rpms to now Patching is really quite simple. If you have the patch program (test by running patch --help and looking for sensible results), then a simple save of the patch to some build dir and a cd $your_build_dir tar xpfz mutt-1.4i.tar.gz cd mutt-1.4 patch -p0 ../name_of_patch ./configure ... make ... where -p0 is probably useful but might not be necessary and then you run the configure and make with whatever arguments you usually provide is all it takes. To see patching in action, surf over to http://mutt.justpickone.org/mutt-build-cocktail/ and take a look at the 00.makeme.sh script; that pulls together my entire patch cocktail in one step. HTH have fun! :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg28723/pgp0.pgp Description: PGP signature
Re: ask-from quadoption was 3 quick questions
* Kevin Coyner [EMAIL PROTECTED] [2002-06-07 09:28]: Many thanks for the patch. I'll give it a try, but have to learn how to apply them first. I've graduated from windoze to linux rpms to now being comfortable with compiling source, but haven't tried the patch route yet. Got to read up on it first. In this case, the patch can be applied, from within the mutt source directory, like so: $ patch -p1 patch-1.3.27.ds.askfrom.txt For patch, the -p# tells patch how many directory levels to remove from the filenames. If you read through the patch file, you can see that it references files as mutt-1.3.27/init.h and mutt-1.3.27/send.c, which is to say 1 directory and then a filename, so patch has to strip off 1 level of directories to file the name of the file to patch. (darren) -- All men are mortal. Socrates was mortal. Therefore, all men are Socrates. -- Woody Allen
Re: ask-from quadoption was 3 quick questions
On Fri, Jun 07, 2002 at 09:37:12AM -0400, darren chamberlain wrote: * Kevin Coyner [EMAIL PROTECTED] [2002-06-07 09:28]: Many thanks for the patch. I'll give it a try, but have to learn how to apply them first. I've graduated from windoze to linux rpms to now being comfortable with compiling source, but haven't tried the patch route yet. Got to read up on it first. In this case, the patch can be applied, from within the mutt source directory, like so: $ patch -p1 patch-1.3.27.ds.askfrom.txt For patch, the -p# tells patch how many directory levels to remove from the filenames. If you read through the patch file, you can see that it references files as mutt-1.3.27/init.h and mutt-1.3.27/send.c, which Question: If I've installed Mutt-1.4i, do I need to go into the patch source and change all references to mutt-1.3.27 so that they read mutt-1.4i instead? is to say 1 directory and then a filename, so patch has to strip off 1 level of directories to file the name of the file to patch. (darren) As always, many thanks. This group is great. Kevin -- All men are mortal. Socrates was mortal. Therefore, all men are Socrates. -- Woody Allen -- Kevin Coyner mailto: [EMAIL PROTECTED] GnuPG key: 1024D/8CE11941
Re: ask-from quadoption was 3 quick questions
On Fri, Jun 7, 2002, Kevin Coyner wrote: For patch, the -p# tells patch how many directory levels to remove from the filenames. If you read through the patch file, you can see that it references files as mutt-1.3.27/init.h and mutt-1.3.27/send.c, which Question: If I've installed Mutt-1.4i, do I need to go into the patch source and change all references to mutt-1.3.27 so that they read mutt-1.4i instead? No, that's why you use 'patch -p1', so it ignores the 'mutt-1.3.27/' part of the path in the patch. -Ken
Re: 3 quick questions
Hi, * darren chamberlain [EMAIL PROTECTED] [02-06-07 14:18]: I have been using this setup for over a year, and it works great: [Macro-based trash function] You should have a look at Cedric's patch. I used something similar to your setup and was annoyed every time =trash appeared in the folder history. Thorsten -- Guns don't protect freedom, people protect freedom.
trash function (was 3 quick questions)
On Fri, Jun 07, 2002 at 07:32:58PM +0200, Thorsten Haude wrote: * darren chamberlain [EMAIL PROTECTED] [02-06-07 14:18]: I have been using this setup for over a year, and it works great: [Macro-based trash function] You should have a look at Cedric's patch. I used something similar to your setup and was annoyed every time =trash appeared in the folder history. What is a folder history? I couldn't find it in the Mutt manual, and interestingly, a Google search on [folder history and mutt] turns up one result: History of Shania Twain. Figure that! Kevin Thorsten --
Re: trash function (was 3 quick questions)
What is a folder history? Press c and then up. -- Mike Schiraldi VeriSign Applied Research msg28736/pgp0.pgp Description: PGP signature
Re: trash function (was 3 quick questions)
* On 2002.06.07, in 20020607193705.GC30963@sumida, * Kevin Coyner [EMAIL PROTECTED] wrote: What is a folder history? I couldn't find it in the Mutt manual, and interestingly, a Google search on [folder history and mutt] turns up one result: History of Shania Twain. Figure that! The edit line (at the bottom, where you type things in) maintains several histories. There's one for patterns, and one for folders. If you press T to tag things, and press the key bound to history-up (up-arrow, usually), it'll show you the last pattern you used. Same idea for folders; if you change folders, then change again, up-arrow will show you the last folder you changed to. If you set up hooks to store things into =trash, then =trash will appear in the folder history. The trash-folder patch just knows about the trash folder, so it doesn't show up in folder history. It's same same principle as with the postponed folder: you can change to it with change-folder, but if you use the built-in message recall, it doesn't show up in folder history. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: 3 quick questions
On Fri, Jun 07, 2002 at 08:18:37AM -0400, darren chamberlain wrote: * David T-G [EMAIL PROTECTED] [2002-06-06 16:31]: % 1. Where do D (deleted) msgs go? Is there an equivalent of % trash, or am I truly out of the disneyland GUI world now and % just like using rm on files, there's no going back. With the stock version, that's the way it is. [-- snip --] Other folks have in the past whipped up some macros that bind 'd' to actually save to some other folder where you *then* really delete the messages later. I have been using this setup for over a year, and it works great: ## Delete messages to the trash can rather than bit-bucket, unless ## we're in the trash folder. folder-hook . macro index d save-message=trashenter folder-hook . macro pager d save-message=trashenter folder-hook . macro pager D delete-message folder-hook trash macro index d delete-message folder-hook trash macro pager d delete-message # When we go into to the trash folder, tag stuff greater than 14 # days old. Don't mark anything that's already flagged, though. folder-hook trash push 'D~r14d!~F\n' Thus, in all folders except trash, 'd' moves the message to the trash folder, and 'D' deletes it for real, when I'm viewing the message (in the index, 'D' still maps to delete-pattern). Every few days or so, I go into the trash folder to clean it out (I save 2 weeks worth of trash). Hope that's helpful. Darren, Thanks for the tip. I've used almost the same setup for a while, but yours is cleaner. I'd like to use the push thing but when I go into my trash folder it get a: Key is not bound. Press '?' for help. Running Running 1.3.28i under Solaris 8 Where can I find out more about the push command to tweak it to my own tastes? Thanx
3 quick questions
First, thanks to everyone so far for their help. I'm finding Mutt challenging but fun, and with the help from this group, it's even better. Second, 3 quick questions: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. Presently I have my .muttrc setup with set from = [EMAIL PROTECTED] and this has each and every msg going out with that From address. But there are times when I need to use one of those other two addresses in the From header. I tried setting 'set alternates = the other accts', but that didn't seem to do it. So some general guidance would be appreciated here. I'm getting the feeling I'll need to use hooks, but I haven't quite figured all that out yet. Thanks Kevin
Re: 3 quick questions
On Thu, Jun 06, 2002 at 04:14:30PM -0400, Kevin Coyner wrote: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. I believe that once you've synchronized the folder, deleted messages are gone for good. 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? Yup - hit $ 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. The way I do this is by having edit_headers set, and having a vim macro that changes the From: address. The mutt variable $alternates only affects what Mutt recognizes as mail sent by or to you, which in turn affects how it gets displayed in the index and whether you get included on group replies. -- Mark REED| CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754 -- It is a human characteristic to love little animals, especially if they're attractive in some way. -- McCoy, The Trouble with Tribbles, stardate 4525.6
Re: 3 quick questions
On Thu, Jun 06, 2002 at 04:14:30PM -0400, Kevin Coyner wrote: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. of course they're truly deleted... I mean, if I wanted mutt to move them to, say, a Trash folder, I'd save them there myself! But mutt being so nice, you can make a macro, so that D will do s=Trash\n instead of actually deleting the message. 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? yup - '$' by default, I believe. Look for 'sync-mailbox' in the manual. 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. Presently I have my .muttrc setup with set from = [EMAIL PROTECTED] and this has each and every msg going out with that From address. But there are times when I need to use one of those other two addresses in the From header. I tried setting 'set alternates = the other accts', but that didn't seem to do it. So some general guidance would be appreciated here. I'm getting the feeling I'll need to use hooks, but I haven't quite figured all that out yet. this is really a FAQ, and if we have a canned answer for this question, I'd love the pointer... You can use *-hooks, if you always want to send from a certain folder as a certain address, or when replying to certain emails. What I use though is a bunch of macros, that will change my current setup, so that every message from now on will be sent as a new profile... so something like (from memory, untested): macro index F5 ':set [EMAIL PROTECTED]\n:set signature=~/.sig-addr' macro index F6 ':set [EMAIL PROTECTED]\n:set signature=~/.sig-addr2' etc... HTH! -- Dan Boger [EMAIL PROTECTED] msg28694/pgp0.pgp Description: PGP signature
Re: 3 quick questions
Kevin Coyner wrote: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. they go to the great bit-bucket in the sky. you can use a macro (see the archives) to bind 'd' to save messages to a folder, or better, you can apply cedric duval's excellent trash folder patch. speaking of which, is there a reason this isn't integrated into mutt? while it may perhaps be true that real geeks mean delete when they say delete, this does seem like a feature that would be useful for a lot of people. 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? sync-mailbox (x by default, i believe). I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. one thing would be to set $alternates correctly and then set $reverse_name so that you reply with the address the message was sent to. you could also look at send-hooks, message-hooks, and folder-hooks. -- Will Yardley input: william hq . newdream . net .
Re: 3 quick questions
Kevin -- ...and then Kevin Coyner said... % % First, thanks to everyone so far for their help. I'm finding % Mutt challenging but fun, and with the help from this group, % it's even better. Yay! % % Second, 3 quick questions: % % 1. Where do D (deleted) msgs go? Is there an equivalent of % trash, or am I truly out of the disneyland GUI world now and % just like using rm on files, there's no going back. With the stock version, that's the way it is. Cedric Duval has written a very nice trash folder patch, which can be found at http://cedricduval.free.fr/mutt/ or on my cocktail page at http://mutt.justpickone.org/mutt-build-cocktail for your nabbing. Now that you've built mutt once, build it again :-) Other folks have in the past whipped up some macros that bind 'd' to actually save to some other folder where you *then* really delete the messages later. % % 2. When I'm in the index mode with all mail listed and I've % marked a bunch with D, is there a keystroke command that will % flush out all of the D items so there's only N or O mail in there? You've seen the sync command in Mark's reply, I figure. % % 3. This is the question that bothers me most: Let's say I have % three email POP3 email accounts on three different ISP/domains. ... % addresses in the From header. I tried setting 'set alternates = % the other accts', but that didn't seem to do it. So some alternates is good, but not the whole story. % general guidance would be appreciated here. I'm getting the % feeling I'll need to use hooks, but I haven't quite figured all % that out yet. You want to set $reverse_name so that you will reply to a message using the address to which it was sent. If you just want to send a fresh message as a certain account, then a send-hook might help you (so that you can pick your identity based on where you're sending) or using a folder-hook and sending from that folder or, as a last resort, just having macros that change who you are with a keystroke or two. % % Thanks % Kevin % HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg28696/pgp0.pgp Description: PGP signature
Re: 3 quick questions
Kevin -- ...and then David T-G said... % ... % folder or, as a last resort, just having macros that change who you are % with a keystroke or two. One more trick: putting all of the identity-specific information (name, address, sig, fun X-headers, etcetc) into its own rc file and then sourcing that rc file from your macro stroke. For me a default identity plus some send-hook settings works, but if you want to actively use more than one persona this will probably work out well. HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg28697/pgp0.pgp Description: PGP signature
Re: 3 quick questions
Kevin, You are bringing back memories of two months ago when I started using mutt. So far every day has been better than the previous. Ain't it great? Anyway, I can't help with all your questions, but: On Thu, Jun 06, 2002 at 04:14:30PM -0400, Kevin Coyner wrote: 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. Presently I have my .muttrc setup with set from = [EMAIL PROTECTED] and this has each and every msg going out with that From address. But there are times when I need to use one of those other two I use folder hooks to set my from based on my current folder like this: folder-hook !+(folder1|folder2) 'set from=Me [EMAIL PROTECTED]' folder-hook +(folder1|folder2) 'set from=Me [EMAIL PROTECTED]' But sometimes I start composing a mail in the wrong folder and it was a pain to save it, then open back up in the right folder. So with some help from fellow mutters, I now use these macros to change from info on command: alias Me1 Me [EMAIL PROTECTED] alias Me2 Me [EMAIL PROTECTED] macro compose 1 edit-from^UMe1^M Set From to Me1 macro compose 2 edit-from^UMe2^M Set From to Me2 I sanatized my information here a bit, so forgive me if there are syntax mistakes. :) -Mike Arrison
Re: 3 quick questions
On Thu, Jun 6, 2002, Dan Boger wrote: this is really a FAQ, and if we have a canned answer for this question, I'd love the pointer... You can use *-hooks, if you always want to send from a certain folder as a certain address, or when replying to certain emails. What I use though is a bunch of macros, that will change my current setup, so that every message from now on will be sent as a new profile... so something like (from memory, untested): macro index F5 ':set [EMAIL PROTECTED]\n:set signature=~/.sig-addr' macro index F6 ':set [EMAIL PROTECTED]\n:set signature=~/.sig-addr2' Well here's a feature request. I wish there were an option to have mutt prompt you for which return address to use, being able to pick from a menu of addresses set somewhere in the muttrc. Any possibility? -Ken
Re: 3 quick questions
Moin, * Kevin Coyner [EMAIL PROTECTED] [02-06-06 22:14]: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. They are just gone. There's help though: I use Cedric Duval's Trash Folder Patch for a long time without problems: http://cedricduval.free.fr/mutt/index.php3#trash 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? It's sync-mailbox, bound to $ by default. 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. Presently I have my .muttrc setup with set from = [EMAIL PROTECTED] and this has each and every msg going out with that From address. But there are times when I need to use one of those other two addresses in the From header. First, I have my own addresses in Mutt's alias file. That way, I can quickly change the address I want to use. Second, I set $reverse_name to set the sender address of the new mail to the receiver address of the mail you want to answer. Third, I use send-hooks. I tried setting 'set alternates = the other accts', but that didn't seem to do it. You should do that anyway, so that Mutt knows about your addresses. I'm getting the feeling I'll need to use hooks, but I haven't quite figured all that out yet. I use this hook for this list: send-hook '~t [EMAIL PROTECTED]' 'my_hdr From: [EMAIL PROTECTED]' Thorsten -- begin 666 magritte.txt.vbs Ceci n'est pas un attachement. end
Re: 3 quick questions
On Thu, Jun 06, 2002 at 04:14:30PM -0400, Kevin Coyner wrote: First, thanks to everyone so far for their help. I'm finding Mutt challenging but fun, and with the help from this group, it's even better. Second, 3 quick questions: 1. Where do D (deleted) msgs go? Is there an equivalent of trash, or am I truly out of the disneyland GUI world now and just like using rm on files, there's no going back. They go to the bit bucket, irretrievably. If you don't like that, there are two solutions. One is to use macros to make 'd' and related commands save the messages to a trash folder. The trouble with that is that it's difficult to catch all the cases, and personally I think a system that saves your deletions only part of the time is worse than one that doesn't save them at all. The second solution is to apply a patch that saves deletions to a trash folder. This should be safer. I don't know offhand where to find it, though. 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? Yes. $ 3. This is the question that bothers me most: Let's say I have three email POP3 email accounts on three different ISP/domains. I've got fetchmail set up to fetch from all three. But what I can't figure out is how I can, on the fly, select any one of these accounts to be my From: and Reply-to: address. Presently I have my .muttrc setup with set from = [EMAIL PROTECTED] and this has each and every msg going out with that From address. But there are times when I need to use one of those other two addresses in the From header. I tried setting 'set alternates = the other accts', but that didn't seem to do it. So some general guidance would be appreciated here. I'm getting the feeling I'll need to use hooks, but I haven't quite figured all that out yet. In addition to setting 'alternates', set 'reverse_name'. Then, as the manual says, the default From: line of the reply messages is built using the address where you received the messages you are replying to. If your want your From: line set by some other criterion, such as the recipient's name or the folder, then you will need to use a send-hook or a folder-hook. To set it arbitrarily, a macro is probably best. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: 3 quick questions
On Thu, Jun 06, 2002 at 01:47:58PM -0700, Gary Johnson wrote: In addition to setting 'alternates', set 'reverse_name'. Then, as the manual says, the default From: line of the reply messages is built using the address where you received the messages you are replying to. If your want your From: line set by some other criterion, such as the recipient's name or the folder, then you will need to use a send-hook or a folder-hook. To set it arbitrarily, a macro is probably best. That works for most things, but not some mailing lists. For those I had to add send-hooks like this: send-hook [EMAIL PROTECTED] 'my_hdr From: Patrick Draper [EMAIL PROTECTED]' It took me a while to figure this out. -- Patrick Draper| Don't |[EMAIL PROTECTED] Austin, Texas | Fear |Father Order runs at a http://www.pdrap.org | The|good pace, but old Mother Be Microsoft Free - Use Linux |Penguin |Chaos is winning the race.
Re: 3 quick questions
Well here's a feature request. I wish there were an option to have mutt prompt you for which return address to use, being able to pick from a menu of addresses set somewhere in the muttrc. Any possibility? Sure, just use this simple command from within mutt: !cd /usr/src/mutt $EDITOR *.[ch] make sudo make install Then just quit mutt and start it up again. Of course, you'll need to type certain keystrokes while in the editor, but since that varies based on exactly which editor you use, i'll leave that part up to you. :) msg28704/pgp0.pgp Description: PGP signature
Re: 3 quick questions
* Will Yardley [EMAIL PROTECTED] [2002-06-06 13:28 -0700]: you can use a macro (see the archives) to bind 'd' to save messages to a folder, or better, you can apply cedric duval's excellent trash folder patch. http://cedricduval.free.fr/mutt/ 2. When I'm in the index mode with all mail listed and I've marked a bunch with D, is there a keystroke command that will flush out all of the D items so there's only N or O mail in there? sync-mailbox (x by default, i believe). $ IIRC Nicolas
Re: 3 quick questions
in message 20020606201430.GA25992@sumida, wrote Kevin Coyner thusly... Second, 3 quick questions: this is getting ridiculous people! use more descriptive subject instead of help equivalent. if cannot come up w/ a unified subject, ask in separate e-mails then. - parv --