Re: mailboxes with new mails in status_format - %b
* dak [EMAIL PROTECTED] [2002-06-26 10:00]: Recently i had a system crash and i've lost all my data. After having re-installed a new system, i reinstalled mutt. I built a .muttrc (the same i had before). But the problem is when i run mutt, before when i had new mails in my ~/Mail/ directory (mails filtered with procmail), mutt tells it to me by adding a 'Inc: n' in the botton of the screen (where 'n' is the number of mailboxes with new mails) so i just had to do 'c' to switch between mailboxes. So my question is: what must I do to have this feature again? * Sven Guckes [EMAIL PROTECTED] [2002-06-26 10:35]: tell mutt which folders to check: mailboxes ! +foo +bar +baz i just realized that this might only be about the *display*, so the only thing missing might be the format item %b in your status_format. However, the default value of the status_format include Inc:%b. so - check your setup files for changes to this variable. remember: /etc/Muttrc and $HOME/.muttrc and sourced files from these. From: dak [EMAIL PROTECTED] please add your real name to your postings, eg with my_hdr From: Aurelian Nephtali [EMAIL PROTECTED] thanks. Sven -- Sven Guckes [EMAIL PROTECTED] arf arf / woof woof -- (AL) ham ham, (DE) wau wau, (SE) voof voof, (ID) gonggong
Re: Bug handling long lines ?
* Pedro Alves [EMAIL PROTECTED] [2002-06-26 09:44 +0100]: On Wed, Jun 26, 2002 at 01:58:45AM +0200, Nicolas Rachinsky wrote: It's encoded with quoted-printable, AFAIK quoted-printable requires the sender to a maximal line length of (I think) 100 bytes, after which you have to add at least a soft line break. This problem has been discussed on mutt-dev at least once. It's not mutt's fault, the message is broken. Well, It works on virtually every other mail client... including pine. Is there sane working MUA producing such mails? Nicolas
Re: Embebbing external interpreter in mutt
Pedro Alves wrote: Hello. Is it possible to configure mutt to automatically lunch the external viewer defined in mailcap inside the mutt window? For instance, lunch w3m or lynx when the type is text/html without having to see [-- text/html is unsupported (use 'v' to view this part) --])] ? Sure. In your muttrc: auto_view text/html # for multipart alternatives, text/plain is prefered alternative_order text/plain text/enriched text/html And in your mailcap: text/html; lynx -dump -force-html %s ; copiousoutput Note the copiousoutput option. -- Cedric
Re: Extracting a PGP signature? - command extract-keys
* Phil Gregory [EMAIL PROTECTED] [2002-06-25 18:01]: People have sent me some PGP signed emails in PGP/MIME format (with signature as a separate attachment). I would like to turn these into standalone files with just the contents and the signatures. Does anyone here know how I'd go about doing this? if this is just about extracting the keys from the messages, well, mutt has a command for this: extract-keys (CTRL-K) Help for index -- (30%) ^K extract-keys extract PGP public keys but if this is about copying a message to a file then please use the command copy-message ('C'): Help for index -- (65%) Ccopy-message copy a message to a file/mailbox however, there is no command which saves only the body messages. but there are simple workarounds for that: either save the whole message and edit the resulting files. or pipe the message to a script which filter the header away. let us know what you need. Sven
Re: Extracting a PGP signature?
Phil -- I've held off on a response since I don't have a sure answer, but since you haven't gotten what you need yet at all, ... ...and then Phil Gregory said... % % People have sent me some PGP signed emails in PGP/MIME format (with % signature as a separate attachment). I would like to turn these into % standalone files with just the contents and the signatures. Does % anyone here know how I'd go about doing this? AFAIK you're out of luck. It's my understanding that mutt feeds to gpg the entire body, including MIME headers, for signing and then attaches the signature after that -- which means that just saving the body off is insufficient. I don't have concrete information but you might check the archives or ask on the gnupg list about how one might acheive what you wish; I don't think the problem, if you can call it that, is specific to mutt. Sorry I couldn't be of more help... % % -- % [EMAIL PROTECTED] / DNRC / UMBC-LUG: http://lug.umbc.edu % PGP: ID: D8C75CF5 print: 0A7D B3AD 2D10 1099 7649 AB64 04C2 05A6 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! msg29254/pgp0.pgp Description: PGP signature
Re: Extracting a PGP signature?
On Tue, Jun 25, 2002 at 01:59:41PM -0400, Phil Gregory wrote: People have sent me some PGP signed emails in PGP/MIME format (with signature as a separate attachment). I would like to turn these into standalone files with just the contents and the signatures. Does anyone here know how I'd go about doing this? i think this should be possible but, off hand, i don't know what might work. i'd take a test message and save it to a file and experiment with pulling off the attached sig and using it to verify the rest of the message. you will probably have to tinker with the message so that you end up with exactly what mutt signed so that the hash works out. once you know what exactly needs to be done, write a script that does it and then create a macro that will fire off the script. i also agree with david in that you might get some help from the gnupg-users list or maybe mutt-dev to get a hint as to what exactly mutt has gpg sign. -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu msg29255/pgp0.pgp Description: PGP signature
Re: Mason 1.10. Doesn't report the error line number ?
I'm sorry!!! Wrong mailing list! On Wed, Jun 26, 2002 at 03:12:16PM +0100, Pedro Alves wrote: Hi. With mason 1.10 I still get this kind of errors: error in file: /opt/apache_1.3.23/mason/obj/sebol/inner/stocks/production/index.html line 45: Global symbol $delivery requires explicit package name line 45: Global symbol $delivery requires explicit package name line 45: Global symbol $delivery requires explicit package name line 45: Global symbol $delivery requires explicit package name line 45: Global symbol $delivery requires explicit package name line 45: Global symbol $delivery requires explicit package name line 49: Global symbol $delivery requires explicit package name line 53: Global symbol $delivery requires explicit package name This refers to the object file. Wasn't this changed? Thanks THINK - Tecnologias de Informação Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal Tel: +351 21 3590285 Fax: +351 21 3582729 HomePage: www.think.pt -- Pedro Miguel G. Alves THINK - Tecnologias de Informação Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal Tel: +351 21 3590285 Fax: +351 21 3582729 HomePage: www.think.pt
Re: Extracting a PGP signature?
* David T-G [EMAIL PROTECTED] [2002-06-26 08:20 -0500]: AFAIK you're out of luck. It's my understanding that mutt feeds to gpg the entire body, including MIME headers, for signing and then attaches the signature after that -- which means that just saving the body off is insufficient. Ah. I was unable to get a valid signature just by saving the body, so I suspected something else was being thrown in. I shall take the lazy approach and just save the emails into a separate mbox that people can download if they want to verify the data. -- [EMAIL PROTECTED] / DNRC / UMBC-LUG: http://lug.umbc.edu PGP: ID: D8C75CF5 print: 0A7D B3AD 2D10 1099 7649 AB64 04C2 05A6 --- -- Beware of things with a small brain-to-body mass ratio --- like cars. -- Bodivoodoo --- --
Re: Embebbing external interpreter in mutt
On Wed, Jun 26, 2002 at 02:17:53PM +0200, Cedric Duval wrote: Pedro Alves wrote: Hello. Is it possible to configure mutt to automatically lunch the external viewer defined in mailcap inside the mutt window? For instance, lunch w3m or lynx when the type is text/html without having to see [-- text/html is unsupported (use 'v' to view this part) --])] ? Sure. In your muttrc: auto_view text/html # for multipart alternatives, text/plain is prefered alternative_order text/plain text/enriched text/html And in your mailcap: text/html; lynx -dump -force-html %s ; copiousoutput Note the copiousoutput option. I don't think that's what Pedro was asking for. That will convert HTML to plain text and display the plain text in mutt's pager. What I think Pedro wanted was to view the HTML content of the message using a browser such as w3m, as can be done from the attachment menu, but with the browser invoked automatically when the message is opened from the index menu. I don't think mutt currently supports that. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: Embebbing external interpreter in mutt
Gary, et al -- ...and then Gary Johnson said... % % On Wed, Jun 26, 2002 at 02:17:53PM +0200, Cedric Duval wrote: % Pedro Alves wrote: % Hello. Is it possible to configure mutt to automatically lunch the external % viewer defined in mailcap inside the mutt window? For instance, lunch w3m ... % auto_view text/html ... % Pedro wanted was to view the HTML content of the message using a browser % such as w3m, as can be done from the attachment menu, but with the % browser invoked automatically when the message is opened from the index % menu. I don't think mutt currently supports that. In that case, what about something like msg-hook .'set pager=builtin' msg-hook pattern 'set pager=lynx' or so? If you want lynx as a pager, just set lynx as the pager... [Note that this is untested, that I don't use msg-hook, and that there's probably a lovely default setting that might be better than the all-matching default msg-hook.] % % Gary % % -- % Gary Johnson | Agilent Technologies % [EMAIL PROTECTED] | Spokane, Washington, USA % http://www.spocom.com/users/gjohnson/mutt/ | 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! msg29259/pgp0.pgp Description: PGP signature
Re: Embebbing external interpreter in mutt
On Wed, Jun 26, 2002 at 09:21:59AM -0700, Gary Johnson wrote: On Wed, Jun 26, 2002 at 02:17:53PM +0200, Cedric Duval wrote: Pedro Alves wrote: Hello. Is it possible to configure mutt to automatically lunch the external viewer defined in mailcap inside the mutt window? For instance, lunch w3m or lynx when the type is text/html without having to see [-- text/html is unsupported (use 'v' to view this part) --])] ? Sure. In your muttrc: auto_view text/html # for multipart alternatives, text/plain is prefered alternative_order text/plain text/enriched text/html And in your mailcap: text/html; lynx -dump -force-html %s ; copiousoutput Note the copiousoutput option. I don't think that's what Pedro was asking for. That will convert HTML to plain text and display the plain text in mutt's pager. What I think Pedro wanted was to view the HTML content of the message using a browser such as w3m, as can be done from the attachment menu, but with the browser invoked automatically when the message is opened from the index menu. I don't think mutt currently supports that. Gary although the suggestion Cedric gave is an interesting approach for what I want, this would be perfect... -- Pedro Miguel G. Alves THINK - Tecnologias de Informação Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal Tel: +351 21 3590285 Fax: +351 21 3582729 HomePage: www.think.pt
Re: Embebbing external interpreter in mutt
On Wed, Jun 26, 2002 at 11:27:03AM -0500, David T-G wrote: Gary, et al -- ...and then Gary Johnson said... % % On Wed, Jun 26, 2002 at 02:17:53PM +0200, Cedric Duval wrote: % Pedro Alves wrote: % Hello. Is it possible to configure mutt to automatically lunch the external % viewer defined in mailcap inside the mutt window? For instance, lunch w3m ... % auto_view text/html ... % Pedro wanted was to view the HTML content of the message using a browser % such as w3m, as can be done from the attachment menu, but with the % browser invoked automatically when the message is opened from the index % menu. I don't think mutt currently supports that. In that case, what about something like msg-hook . 'set pager=builtin' msg-hook pattern 'set pager=lynx' or so? If you want lynx as a pager, just set lynx as the pager... [Note that this is untested, that I don't use msg-hook, and that there's probably a lovely default setting that might be better than the all-matching default msg-hook.] Good point. You just have to see that mutt sends raw HTML to the pager. You also reminded me of a similar discussion here last month in which I wrote: I played around with this a little and came up with the following solution. It may have some bugs, but it's at least a starting point. First of all, you want to have mutt send HTML messages as raw HTML to your pager. The way I did this was to put this in my muttrc: auto_view text/html and this in my mailcap: text/html; w3m %s; nametemplate=%s.html text/html; cat; copiousoutput Next, you want to specify a pager that understands that the header is plain text but the body is HTML. I wrote a shell script and called it 'htmlviewer': #!/bin/sh sed '1i\ html\ head\ title/title\ /head\ body\ pre s|^\[-- Autoview using .*|/pre\ /body\ /html| ' $* | w3m -T text/html It wraps the header in an HTML block and deletes the [-- Autoview line before sending the message to w3m. Then I just set pager=htmlviewer in my muttrc. You will probably want to use a display-hook (or message-hook) for this. I don't know why I didn't think of that when I wrote my first reply. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: Embebbing external interpreter in mutt
On Wed, Jun 26, 2002 at 10:12:45AM -0700, Gary Johnson wrote: % menu. I don't think mutt currently supports that. In that case, what about something like msg-hook .'set pager=builtin' msg-hook pattern 'set pager=lynx' or so? If you want lynx as a pager, just set lynx as the pager... [Note that this is untested, that I don't use msg-hook, and that there's probably a lovely default setting that might be better than the all-matching default msg-hook.] Good point. You just have to see that mutt sends raw HTML to the pager. You also reminded me of a similar discussion here last month in which I wrote: How can I make the pager recieve the HTML? -- Pedro Miguel G. Alves THINK - Tecnologias de Informação Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal Tel: +351 21 3590285 Fax: +351 21 3582729 HomePage: www.think.pt
folder-hook push not responding as expected.
Hello Dear Mutters, I am using version 1.3.28i. I have defined a folder-hook as: folder-hook !Trash push enter-commandunset maildir_trashenter But the error coming is 'push too many arguments' How can I resolve this. Please point me where I am wrong. Thanks in advance. vikram... -- ^^'^^||root||^^^'''^^ // \\ )) //(( \\// \\ // /\\ || \\ || / )) ((\\ Thus My Computer Chittered : ~~ Conversation enriches the understanding, but solitude is the school of genius. . * ~|~ =
Re: Embebbing external interpreter in mutt
On Wed, Jun 26, 2002 at 06:37:32PM +0100, Pedro Alves wrote: On Wed, Jun 26, 2002 at 10:12:45AM -0700, Gary Johnson wrote: % menu. I don't think mutt currently supports that. In that case, what about something like msg-hook . 'set pager=builtin' msg-hook pattern 'set pager=lynx' or so? If you want lynx as a pager, just set lynx as the pager... [Note that this is untested, that I don't use msg-hook, and that there's probably a lovely default setting that might be better than the all-matching default msg-hook.] Good point. You just have to see that mutt sends raw HTML to the pager. You also reminded me of a similar discussion here last month in which I wrote: How can I make the pager recieve the HTML? I tried to explain that in my previous post, but I guess I didn't do very well. If you put a line like this in your muttrc, auto_view text/html mutt will look in the mailcap file to find out how to process the text/html part of the message. Then if you put this in your mailcap file, text/html; w3m %s; nametemplate=%s.html text/html; cat; copiousoutput mutt will use the rule tagged with the copiousoutput field to process the text/html part of the message. In this case, mutt just pipes that part of the message through cat before sending it to the pager. Consequently, the pager will receive raw HTML. Another way to do all this which might be simpler is to forget the auto_view and mailcap and pager stuff and simply pipe the message through the pager program, either the htmlviewer script from my other post or just w3m -T text/html (or the lynx equivalent, if you prefer). You could also create a macro to execute the pipe. The disadvantage to the piping approach is that it's not automatic--you have to know that the message content is HTML. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: folder-hook push not responding as expected.
Please do NOT reply to random messages, create a new thread instead. * Vikram Goyal [EMAIL PROTECTED] [2002-06-26 23:29 +0530]: I have defined a folder-hook as: folder-hook !Trash push enter-commandunset maildir_trashenter But the error coming is 'push too many arguments' try folder-hook !Trash push 'enter-commandunset maildir_trashenter' Nicolas
Re: folder-hook push not responding as expected.
On Wed, Jun 26, 2002 at 11:29:23PM +0530, Vikram Goyal wrote: I have defined a folder-hook as: folder-hook !Trash push enter-commandunset maildir_trashenter But the error coming is 'push too many arguments' How can I resolve this. Please point me where I am wrong. That's because the folder hook sees the command push enter-commandunset maildir_trashenter so the push command sees the two arguments enter-commandunset and maildir_trashenter The solution is to quote the argument to push. I think this will work, but I haven't tested it. folder-hook !Trash 'push enter-commandunset maildir_trashenter' HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: folder-hook push not responding as expected.
Vikram Goyal wrote: I have defined a folder-hook as: folder-hook !Trash push enter-commandunset maildir_trashenter But the error coming is 'push too many arguments' How can I resolve this. Please point me where I am wrong. Try this: folder-hook !Trash 'push enter-commandunset maildir_trashenter' PS: when coming with a new question, please start a new thread -- Cedric
Re: Adressbook?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin Coyner [EMAIL PROTECTED] wrote: Alexander Skwar wrote.. Which adressbook tools do you use with mutt? I started using abook yesterday, so I can't really give a solid evaluation yet. But so far so good. It's very easy to query for email addresses from within mutt. One thing it doesn't seem to have is an ability to import csv files to build the DB. One thing that annoys me a great deal is, that AFAIK you can't, for example, forward/bounce emails with abook. At least I can't find anything somehow related to it, but this: m send mail with mutt Is there any way to forward emails with abook's address database? Well, it's not a BIG deal, but kinda annoying for me to keep two different address databases simultaneously... - -- Jussi Ekholm [EMAIL PROTECTED] || http://erppimaa.ihku.org GnuPG Key ID: 1410081E || 4AA9 DA67 4ECF 88C7 84CC 46C0 02D1 0047 1410 081E -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9GgrAAtEARxQQCB4RAsfNAJ9buAnNskfabMo2W3v6N52ySq94qgCdHPT/ eFGKcUaGQy36EnLVImdewvY= =7422 -END PGP SIGNATURE-
Re: Adressbook?
Jussi -- ...and then Jussi Ekholm said... % % -BEGIN PGP SIGNED MESSAGE- % Hash: SHA1 % ... % One thing that annoys me a great deal is, that AFAIK you can't, for % example, forward/bounce emails with abook. At least I can't find % anything somehow related to it, but this: % % m send mail with mutt Once you press 'f' to forward a new mail, can't you hit tab or Q to query abook? You're at the To: prompt, and so it seems like it oughta work... 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! msg29269/pgp0.pgp Description: PGP signature
Mutt in Gnome Terminal
Hi, Don't know where to go to first with this problem, so y'all please be my victim ;) I run mutt in a gnome-terminal. I use LC_CTYPE=en_US, so defined in .bashrc. So far so good. I also have a shortcut aka launcher with a nice mutt icon that starts a gnome-terminal with a larger than default geometry and --command mutt. When launched this way mutt does not show any special (i.e. accented) chars). When I run the shell command locale from within mutt my LC_CTYPE is empty. The funny thing is when I remove the --command parm from the launcher and then start mutt manually, LC_CTYPE is defined correctly as are the special characters. Basically mutt works like I want in every situation I can imagine, except when launched from the desktop with my handy-dandy mutt-icon. I don't know if the --command option for gnome-terminal causes a different environment to be set. And if so if it's a feature or a bug. After searching faqs, checking manuals and browsing bugzillas, I give up. Would some kind soul shed some light on my frustrating situation? Bob msg29270/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
Bob -- ...and then Robert Ian Smit said... % % Hi, Hello! % % Don't know where to go to first with this problem, so y'all please be my % victim ;) *griN* % ... % I also have a shortcut aka launcher with a nice mutt icon that % starts a gnome-terminal with a larger than default geometry and % --command mutt. When you start that command how does your mutt get any environment settings? Unless bash runs to set it before calling mutt then you won't see it. Try putting mutt in a wrapper that sets your vars and is called by your --command shortcut and see what it gets you. 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! msg29271/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
Bob -- ...and then David T-G said... % ... % Try putting mutt in a wrapper that sets your vars and is called by % your --command shortcut and see what it gets you. Note that I don't necessarily propose this as a permanent solution but instead a way to debug. What you need in the long run, especially if my suspicion is right, is to get those vars exported early on so that your entire windowing session and every subshell and every process will inherit them. 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! msg29272/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
On Wed, Jun 26, 2002 at 09:18:54PM +0200, Robert Ian Smit wrote: Hi, hello. I don't know if the --command option for gnome-terminal causes a different environment to be set. And if so if it's a feature or a bug. After searching faqs, checking manuals and browsing bugzillas, I give up. Would some kind soul shed some light on my frustrating situation? i don't know why this is happening but why not try: gnome-terminal --command . /home/logname/.bashrc;mutt ? -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu msg29273/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
* Robert Ian Smit [EMAIL PROTECTED] [2002-06-26 21:18 +0200]: Hi, Don't know where to go to first with this problem, so y'all please be my victim ;) I run mutt in a gnome-terminal. I use LC_CTYPE=en_US, so defined in .bashrc. So far so good. I'm pretty sure it has to do with login-shell vs. interactive shell. I wish I really understood that, but you could try setting LC_CTYPE in ~/.bash_profile instead. This is what man bash says: ~/.bash_profile The personal initialization file, executed for login shells ~/.bashrc The individual per-interactive-shell startup file HTH, Gerhard -- mail: gerhard at bigfoot dot de registered Linux user #64239 web:http://www.cs.fhm.edu/~ifw00065/OpenPGP public key id AD24C930 public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
Re: Mutt in Gnome Terminal
* Peter T. Abplanalp ([EMAIL PROTECTED]) [020626 12:29]: On Wed, Jun 26, 2002 at 09:18:54PM +0200, Robert Ian Smit wrote: Hi, hello. I don't know if the --command option for gnome-terminal causes a different environment to be set. And if so if it's a feature or a bug. After searching faqs, checking manuals and browsing bugzillas, I give up. Would some kind soul shed some light on my frustrating situation? i don't know why this is happening but why not try: gnome-terminal --command . /home/logname/.bashrc;mutt I'm guessing this wouldn't work, as . is a shell builtin. If gnome-terminal were running the command in a shell, $OP wouldn't have the problem in the first place! A better suggestion (As David T-G gave) is to get that environment variable in your parent process' environment, maybe with ~/.Xsession or similar. good times, Vineet -- http://www.doorstop.net/ -- Computer Science is no more about computers than astronomy is about telescopes. -E.W. Dijkstra msg29275/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
On Wed, Jun 26, 2002 at 09:31:45PM +0200, Gerhard Häring wrote: I'm pretty sure it has to do with login-shell vs. interactive shell. I wish I really understood that, but you could try setting LC_CTYPE in ~/.bash_profile instead. I thought of that. I already changed .bash_profile to source .bashrc. At first, logging in on a text console would give me the problem I described. After the change to .bash_profile it went away. Thanks for mentioning it anyway. I didn't know the difference myself only a couple of hours ago. Bob msg29276/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
On Wed, Jun 26, 2002 at 09:18:54PM +0200, Robert Ian Smit wrote: Hi, Don't know where to go to first with this problem, so y'all please be my victim ;) I run mutt in a gnome-terminal. I use LC_CTYPE=en_US, so defined in .bashrc. So far so good. I also have a shortcut aka launcher with a nice mutt icon that starts a gnome-terminal with a larger than default geometry and --command mutt. When launched this way mutt does not show any special (i.e. accented) chars). When I run the shell command locale from within mutt my LC_CTYPE is empty. The funny thing is when I remove the --command parm from the launcher and then start mutt manually, LC_CTYPE is defined correctly as are the special characters. Basically mutt works like I want in every situation I can imagine, except when launched from the desktop with my handy-dandy mutt-icon. I don't know if the --command option for gnome-terminal causes a different environment to be set. And if so if it's a feature or a bug. After searching faqs, checking manuals and browsing bugzillas, I give up. Would some kind soul shed some light on my frustrating situation? have you tried playing with the --login and --nologin options to gnome-terminal? from man gnome-terminal: --nologin This option indicates that the shell started by Gnome Terminal should not be a login shell but a regular shell. --login This option indicates that the shell started by Gnome Terminal should be a login shell (this trick is cleverly achieved in the Unix world by running the shell but telling the shell that its name has a dash in the front. Very clever). you might also play with where you put lc_type in conjunction with these gnome-terminal options. -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu msg29277/pgp0.pgp Description: PGP signature
Re: Mutt in Gnome Terminal
First of all thanks to all the people for replying. I will respond to this message. % I also have a shortcut aka launcher with a nice mutt icon that % starts a gnome-terminal with a larger than default geometry and % --command mutt. When you start that command how does your mutt get any environment settings? Unless bash runs to set it before calling mutt then you won't see it. Well, I don't know. My understanding was that the terminal starts a new shell and optionally runs a command. I checked the manual and there's nothing there changed my initial belief. Hence my question whether I am dealing with a feature or a bug. Try putting mutt in a wrapper that sets your vars and is called by your --command shortcut and see what it gets you. That works beautifully. Since this is my first scipt I am not sure what I have done. The script works with #!/bin/sh as the first line and without it. I have also tried to put some different things behind --command, like echo foofoo.txt. This never works and even sometimes causes a startup error. After some sleep I will try to search the gnome bugzilla again and see if there is something that describes problems with the --command option. For now I am happy I can click to get some mutt. Bob msg29278/pgp0.pgp Description: PGP signature
status_format
Hello Everyone, Is there a way of getting %f to just display the mailbox name rather than the full pathname of it? I have mailboxes nested in sub-directories and the name run off off the screen, so having just the mailbox name would really make it helpful. Thanx. -Sadiq
Re: Mutt in Gnome Terminal
Robert Ian Smit wrote: I have also tried to put some different things behind --command, like echo foofoo.txt. This never works and even sometimes causes a startup error. This cannot work. The redirection () is a shell feature, but --command does not start a shell, it only spawns the executable given. Try: gnome-terminal --command='sh -c echo foo foo.txt' or gnome-terminal --command='sh -c locale locale.txt' After some sleep I will try to search the gnome bugzilla again and see if there is something that describes problems with the --command option. Try setting your LC_CTYPE in /etc/profile (or /etc/profile.local if that exists). Restart X to make sure gdm (or kdm/xdm) gets restarted. You could also try to use the --login for gnome-terminal. Regards... Michael
Re: Mutt in Gnome Terminal
On 12:35 26 Jun 2002, Vineet Kumar [EMAIL PROTECTED] wrote: | * Peter T. Abplanalp ([EMAIL PROTECTED]) [020626 12:29]: | I don't know if the --command option for gnome-terminal causes a | different environment to be set. And if so if it's a feature or a | bug. After searching faqs, checking manuals and browsing bugzillas, | I give up. Would some kind soul shed some light on my frustrating | situation? | i don't know why this is happening but why not try: | gnome-terminal --command . /home/logname/.bashrc;mutt | I'm guessing this wouldn't work, as . is a shell builtin. If | gnome-terminal were running the command in a shell, $OP wouldn't have | the problem in the first place! No: .bashrc is _interactive_ shells only. | A better suggestion (As David T-G gave) is to get that environment | variable in your parent process' environment, maybe with ~/.Xsession or | similar. This is indeed a better suggestion, regardless of the above. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ From a programmer's point of view, the user is a peripheral that types when you issue a read request. - Peter Williams
browsing folders
My procmail puts incoming mail to different files(folders). Is there an easy way to view and browse these folders within mutt? Does mutt highlight the folders with new malis? --st.