Re: Questions from a newbie
On Fri, Feb 14, 2014 at 07:12:53AM +0100, alb...@gmail.com wrote: Hi I have a few basic questions about mutt: 1) does mutt support any kind of scripting for its API? if so, what scripting languages can be used? 2) is it possible to define custom actions for selected emails (e.g. getting some external program/script to process an email by invoking a script which will do the job)? 3) does mutt support BiDi and right-to-left languages? 4) are mutt's keybindings easily customizable? http://www.mutt.org/doc/manual/ -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X
Re: Questions from a newbie
On Fri, Feb 14, 2014 at 10:54:25PM +1300, Chris Bannister wrote: On Fri, Feb 14, 2014 at 07:12:53AM +0100, alb...@gmail.com wrote: Hi I have a few basic questions about mutt: 1) does mutt support any kind of scripting for its API? if so, what scripting languages can be used? 2) is it possible to define custom actions for selected emails (e.g. getting some external program/script to process an email by invoking a script which will do the job)? 3) does mutt support BiDi and right-to-left languages? 4) are mutt's keybindings easily customizable? http://www.mutt.org/doc/manual/ That is a tad curt, maybe. I don't *think* you can use scripting languages with it, but for sure questions 2 and 4 get an affirmative answer (check for 'macro' in 'man muttrc'). More in general mutt is quite customisable and along with other tools (procmail, etc.) very versatile -F
Re: Questions from a newbie
* fa-ml fa...@ariis.it [02-14-14 05:12]: On Fri, Feb 14, 2014 at 10:54:25PM +1300, Chris Bannister wrote: [...] http://www.mutt.org/doc/manual/ That is a tad curt, maybe. I don't *think* you can use scripting languages with it, but for sure questions 2 and 4 get an affirmative answer (check for 'macro' in 'man muttrc'). More in general mutt is quite customisable and along with other tools (procmail, etc.) very versatile perhaps curt but no un-called for. The OP apparently made little effort in his own behalf to resolve the questions he posed. And reading just a few web pages of the manual would provide much of the basic information needed to persue or answer him. Maybe https://www.google.com/#q=mutt would be another curt answer. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
Re: Questions from a newbie
On Fri, Feb 14, 2014 at 11:09:37AM +0100, fa-ml wrote: That is a tad curt, maybe. I don't *think* you can use scripting languages with it, but for sure questions 2 and 4 get an affirmative answer (check for 'macro' in 'man muttrc'). More in general mutt is quite customisable and along with other tools (procmail, etc.) very versatile You can also pipe a message to an external program, using (unsurprisingly) the pipe key. w
Questions from a newbie
Hi I have a few basic questions about mutt: 1) does mutt support any kind of scripting for its API? if so, what scripting languages can be used? 2) is it possible to define custom actions for selected emails (e.g. getting some external program/script to process an email by invoking a script which will do the job)? 3) does mutt support BiDi and right-to-left languages? 4) are mutt's keybindings easily customizable? Thanks Alby
Re: navigation questions from a newbie
On Thu, Jun 13, 2002 at 11:19:34AM -0400, Brett Sanger wrote: Is there an equivalent of the sent-mail folder? A convenient way to make one? If I hand-roll (via perl) the monthly archiving of such folders to mimic pine's behavior, what locking procedure does mutt use so that I can ensure I don't trample while it's reading/writing? Do this: # make sure mail gets saved as mailx/pine would... send-hook . set record=~/Mail/sent-mail-`date +%Y-%m` set record==sent-mail-`date +%Y-%m` This gives you folders in ~/Mail that look like: $ ls Mail/sent-mail-2002* Mail/sent-mail-2002-01 Mail/sent-mail-2002-05 Mail/sent-mail-2002-04 Mail/sent-mail-2002-06 -- Marc Wilson [EMAIL PROTECTED]
Re: navigation questions from a newbie
On Thu, Jun 13, 2002 at 11:19:34AM -0400, Brett Sanger wrote: Answers to so far unanswered questions below. Okay, this is a simple one, but I didn't come across it in the docs. How do I set my From: address? I tinkered with my EMAIL enviroment, but that didn't make a difference. Others have mentioned use_from, also (when you have more than one email address you should look up the alternates directive in the manual. Is there an equivalent of the sent-mail folder? A convenient way to make one? If I hand-roll (via perl) the monthly archiving of such folders to mimic pine's behavior, what locking procedure does mutt use so that I can ensure I don't trample while it's reading/writing? Look at the fcc-hook in the mutt manual. You can do monthly outboxs using something like (untested) fcc-hook . outbox.`date +%b-%Y` I'm looking at having Mail::Audit parse out my mail to various folders. Is there a convenient way to watch for traffic in these folders without entering each one? Mutt will poll folders set in mailboxes using the period set with set mail_check=5 # how often to poll for new mail you can also have a window open with tail on a mail::audit log. One Advantage of Maildir at this point. Because it has a seperate folder for new mail, simply looking t see the new mail doesn't stop mutt from seeing that folder as having new mail (ie unlike mbox it isn't simply using atime vs mtime). I appreciate all the help! No problem, HTH Michael -- Dr Michael A. Maibaum - (W)+1 (415) 561 1682 - (H)+1 (415) 626 6733 [EMAIL PROTECTED] msg29029/pgp0.pgp Description: PGP signature
Re: navigation questions from a newbie
On Thu, Jun 13, 2002 at 11:19:34AM -0400, Brett Sanger wrote: Okay, just started using mutt, (previously used pine, decided to make the switch). I've heard pretty much nothing but good things about mutt, so I'm assuming most of my issues can be resolved, I just don't know how. I haven't used elm, so I can't import any knowledge from that. I'll try to answer the questions I can that I didn't see answered by others. The navigation seems kind of inconsistent. While reading from the spool file, return takes you inward, and i takes you to the message listing. Except that if you try to change mail folders, i no longer works, you want tab. q takes you out of menus, but ctrl-G gets you out of prompts. Vi is the default editor, but in-program prompts use Emacs bindings. Is it just something to get used to, or is there some unifying concept that I'm not getting? I think q will always work to exit a view, even if the help line says i:Exit. I don't know why i is used this way. It may be a mnemonic for return to Index, but that's not always where it returns you. If it bothers you, you can put bind pager i noop in your muttrc which will unbind i and change the help line to q:Exit. ctrl-G gets you out of prompts because that's how emacs works, which is consistent with the command-line editing commands. I think that's just something you have to get used to. There are other programs that use (or can use) emacs key bindings for command-line editing even though they use vi-like key bindings for screen navigation, e.g. w3m and vim. I think the reason for using emacs key bindings is that it is simpler to write a modeless command-line editor and because the editing commands can be bound to the arrow, end, and home keys, which some people prefer. Currently, I have three locations for mail: my spool file/dir (forget which exim uses), ~/Mail/* folders, and ~/mbox. I haven't come up with a convenient way to navigate between these. c lets me hop into any of the ~/Mail/* easily, but then getting back to the spool or to ~/mbox requires more work than I'd expect for the default places for mail. am I missing something? (I know I can tell mutt to use an alternate in place of ~/mbox, but surely there's a better way to get to the mbox its using than to specifiy path/file?) If you include your spool file in your 'mailboxes' list, you can get to it via the c command, too. I would think that you would want your spool file in your 'mailboxes' list anyway so that mutt will look there for new mail. To quickly navigate to your spool file, your mbox file, and a few other special files, you can follow c by one of the shortcuts listed in section 4.7 of the mutt manual. For example, c! will take you to your spool file. I've stumbled across the following flags so far: rT+*FO. Of those, I've figured out (read) that r is replied-to, and * is tagged. What are +, F, and O? See the mutt manual section 2.3.1.1 Status Flags. [ and ] are bound to half-pages in the listing, but not in the pager. Is there any navigation beyond space and - in the pager? While in the pager, type ? for help. I don't remember what the default bindings are in the pager for the half-up and half-down functions (they may be unbound by default), but I have bind pager [ half-up bind pager ] half-down in my muttrc so that [ and ] work the same in the pager as in the index. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
navigation questions from a newbie
Okay, just started using mutt, (previously used pine, decided to make the switch). I've heard pretty much nothing but good things about mutt, so I'm assuming most of my issues can be resolved, I just don't know how. I haven't used elm, so I can't import any knowledge from that. Before I get to my questions, I just wanted to check for good resources. I've got the Mutt Manual, the Mutt reference, and the My first Mutt page. Any other good newbie references I've missed? Here goes: Okay, this is a simple one, but I didn't come across it in the docs. How do I set my From: address? I tinkered with my EMAIL enviroment, but that didn't make a difference. The navigation seems kind of inconsistent. While reading from the spool file, return takes you inward, and i takes you to the message listing. Except that if you try to change mail folders, i no longer works, you want tab. q takes you out of menus, but ctrl-G gets you out of prompts. Vi is the default editor, but in-program prompts use Emacs bindings. Is it just something to get used to, or is there some unifying concept that I'm not getting? I've heard that you can tell it to use vi-like keybindings. Is that one setting in the rc file, or is that redefining everything? I'd love the vi-keybindings, but I don't like to rely on rc files (for any program) that are more than 10-15 lines, since I can't always assume I'll be on the same system. Currently, I have three locations for mail: my spool file/dir (forget which exim uses), ~/Mail/* folders, and ~/mbox. I haven't come up with a convenient way to navigate between these. c lets me hop into any of the ~/Mail/* easily, but then getting back to the spool or to ~/mbox requires more work than I'd expect for the default places for mail. am I missing something? (I know I can tell mutt to use an alternate in place of ~/mbox, but surely there's a better way to get to the mbox its using than to specifiy path/file?) I can mark messages as deleted with d. How do I purge those aside from exiting mutt? I've stumbled across the following flags so far: rT+*FO. Of those, I've figured out (read) that r is replied-to, and * is tagged. What are +, F, and O? [ and ] are bound to half-pages in the listing, but not in the pager. Is there any navigation beyond space and - in the pager? Is there an equivalent of the sent-mail folder? A convenient way to make one? If I hand-roll (via perl) the monthly archiving of such folders to mimic pine's behavior, what locking procedure does mutt use so that I can ensure I don't trample while it's reading/writing? I'm looking at having Mail::Audit parse out my mail to various folders. Is there a convenient way to watch for traffic in these folders without entering each one? I appreciate all the help!
Re: navigation questions from a newbie
On Thu, Jun 13, 2002 at 11:19:34AM -0400, Brett Sanger wrote: I only use mutt for a couple of weeks now, so I can only answer some of your questions. Read below. (I removed questions I don't know the answer to) One word of advise though. Get someone elses .muttrc and work with that. One of the reasons mutt is so powerful is that you can change everything. You really need to do that to benefit from this program. I can send you mine if you want. I use a couple of files in ~/.mutt/ that are sourced in ~/.muttrc. My files are not very well documented however so it's best to look for some mutt guru on the web who has his/her .muttrc for all to see. Okay, this is a simple one, but I didn't come across it in the docs. How do I set my From: address? I tinkered with my EMAIL enviroment, but that didn't make a difference. See Mutt manual 6.3.55 Currently, I have three locations for mail: my spool file/dir (forget which exim uses), ~/Mail/* folders, and ~/mbox. I haven't come up with a convenient way to navigate between these. c lets me hop into any of the ~/Mail/* easily, but then getting back to the spool or to ~/mbox requires more work than I'd expect for the default places for mail. am I missing something? (I know I can tell mutt to use an alternate in place of ~/mbox, but surely there's a better way to get to the mbox its using than to specifiy path/file?) Define mailboxes. Then you can at least switch easily to boxes with new email and you can use completion like =pri + tab for ~/Mail/private I can mark messages as deleted with d. How do I purge those aside from exiting mutt? Syncing the mailbox. Propably bound to $. Is there an equivalent of the sent-mail folder? A convenient way to make one? If I hand-roll (via perl) the monthly archiving of such folders to mimic pine's behavior, what locking procedure does mutt use so that I can ensure I don't trample while it's reading/writing? I am not aware of anything else than set record=+my_outbox. As far as I know you can't archive sent-mail as you can in Pine from within mutt. At least not without extensive use of macros. I'm looking at having Mail::Audit parse out my mail to various folders. Is there a convenient way to watch for traffic in these folders without entering each one? See my answer to your question regarding locations for mail. Hope this helps, Bob msg28969/pgp0.pgp Description: PGP signature
Re: navigation questions from a newbie
On Thu, Jun 13, 2002 at 11:19:34AM -0400, Brett Sanger wrote.. Okay, just started using mutt, (previously used pine, decided to make the switch). I've heard pretty much nothing but good things about mutt, so I'm assuming most of my issues can be resolved, I just don't know how. I haven't used elm, so I can't import any knowledge from that. A good way to start a .muttrc and get a handle on all the settings is to go to http://mutt.netliberte.org/, where you'll find Muttrc builder, which puts together a muttrc for you, complete with explanations. HTH as it helped me get a good start. Kevin msg28977/pgp0.pgp Description: PGP signature
Re: navigation questions from a newbie
Okay, this is a simple one, but I didn't come across it in the docs. How do I set my From: address? I tinkered with my EMAIL enviroment, but that didn't make a difference. See Mutt manual 6.3.55 My .muttrc file: set from = [EMAIL PROTECTED] (yes, so far it's just one line) Yet when I send messages, the preview after editing shows the From: field is blank, and when I receive, I get the ([EMAIL PROTECTED]) that is the default (I don't know if that is mutt or exim filling that in though) (This account is my ISP, not my home box)
Re: navigation questions from a newbie
If you want to do it on just one line, you'll have to replace that with my_hdr From: Brett Sanger [EMAIL PROTECTED] to force the header into place. Just to make sure I comprehend -- this is the not the best solution since it precludes using hooks? (My attachment to a small .muttrc is two-fold: one, I'll understand what's going on in there, and two, I can recreate it quickly if on a different machine. I have the same policy with my .vimrc) set use_from Ah, that works just fine now. (What else is from used in? Why is this two options?) HTH HAND Yup, and I'm closer. Now if I can just get vim to behave over ssh Thanks for the help! I'll experiment for a few more hours and see if I have other questions.