Re: search new mails in the opposite order
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 01:29 PM, quoth bill lam: when I read mails inside a thread, pressing tab search next new mail, but that will be the previous mail in chronological order. Try pressing shift-tab does not help. Is there any way to search new mail in the opposite order and bind it to shift-tab? Assuming that your tab is bound to the next-new-then-unread function, all you'd need to do is add this to your muttrc: bind pager,index \STab previous-new-then-unread ~Kyle - -- A woman has the last word in any argument. Anything a man says after that is the beginning of a new argument. -- Unknown -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjbJbgACgkQBkIOoMqOI14ZGgCfdvjNW/vEm7bvKbh3pf4B0U9P 2pQAn3ul0Vnd5AoH5bn6ehm9vJb9MRS8 =GR80 -END PGP SIGNATURE-
Re: search new mails in the opposite order
On Thu, 25 Sep 2008, Kyle Wheeler wrote: bind pager,index \STab previous-new-then-unread Thank you Kyle! btw, I discovered that I had made a very bad choice for choosing shift-tab as it is not supported on xterm without further hacking. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 pgpQdo5H22vO7.pgp Description: PGP signature
send-hook and different email accounts
ciao! i'm using mutt with two different email accounts. generally i use the first one but i need to use the second to send email to the university so i set the following send-hook: unhook send-hook unhook send2-hook send-hook . unmy_hdr From Reply-To send-hook . 'set sendmail=~/bin/msmtpQ -a gmail; \ set from = Marco Giusti [EMAIL PROTECTED]; \ my_hdr Reply-To: [EMAIL PROTECTED]' send-hook .*unibo\.it 'set sendmail=~/bin/msmtpQ -a hermes; \ set from = Marco Giusti [EMAIL PROTECTED] my_hdr Reply-To: [EMAIL PROTECTED]' with this configuration i got a strange behavior i follow these steps: 1. send emails to a generic addresses. no problem at all 2. send an email to .unibo.it. no problem, all the headers are set correclty 3. send an email to a generic address. now the headers and the variables are set to the previous values ie. unibo.it account why i got this? it's my fault or a mutt's bug? how can i achieve the behaviour needed? thanks for your help marco ps. follow some mutt infos if you need it, anyway is a debian/lenny package Mutt 1.5.18 (2008-05-17) Copyright (C) 1996-2008 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: Linux 2.6.25.11 (x86_64) ncurses: ncurses 5.6.20080830 (compiled with 5.6) libidn: 1.8 (compiled with 1.9) hcache backend: GDBM version 1.8.3. 10/15/2002 (built Apr 24 2006 03:50:27) Opzioni di compilazione: -DOMAIN +DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP +USE_GSS -USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL +HAVE_GETADDRINFO +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE -ISPELL SENDMAIL=/usr/sbin/sendmail MAILPATH=/var/mail PKGDATADIR=/usr/share/mutt SYSCONFDIR=/etc EXECSHELL=/bin/sh MIXMASTER=mixmaster To contact the developers, please mail to [EMAIL PROTECTED]. To report a bug, please visit http://bugs.mutt.org/. patch-1.5.13.cd.ifdef.2 patch-1.5.13.cd.purge_message.3.4 patch-1.5.13.nt+ab.xtitles.4 patch-1.5.4.vk.pgp_verbose_mime patch-1.5.6.dw.maildir-mtime.1 patch-1.5.8.hr.sensible_browser_position.3 signature.asc Description: Digital signature
Re: send-hook and different email accounts
Hi, On Thursday, 25 September 2008, 12:52 (UTC+0200), Marco Giusti wrote: ciao! i'm using mutt with two different email accounts. generally i use the first one but i need to use the second to send email to the university so i set the following send-hook: unhook send-hook unhook send2-hook send-hook . unmy_hdr From Reply-To send-hook . 'set sendmail=~/bin/msmtpQ -a gmail; \ set from = Marco Giusti [EMAIL PROTECTED]; \ my_hdr Reply-To: [EMAIL PROTECTED]' I had problems trying to achieve the same thing with set from and I'm now using send-hook . 'my_hdr From: My Name [EMAIL PROTECTED]' But I didn't know about unmy_hdr, so my_hdr may not be necessary, and there may be a better way to do it with set from (better because for all I remember with my_hdr From, set reverse_name doesn't work). m.
Re: send-hook and different email accounts
Marco Giusti wrote: [Thu Sep 25 2008, 06:52:45AM EDT] why i got this? it's my fault or a mutt's bug? how can i achieve the behaviour needed? I have a configuration that's similar and it works properly for me. Is that your entire config? Aron
Re: send-hook and different email accounts
Marianne Promberger wrote: [Thu Sep 25 2008, 07:21:29AM EDT] I had problems trying to achieve the same thing with set from and I'm now using send-hook . 'my_hdr From: My Name [EMAIL PROTECTED]' Setting $from should work as of 1.5.18 http://dev.mutt.org/hg/mutt/rev/4e8e3db418ea But I didn't know about unmy_hdr, so my_hdr may not be necessary, and there may be a better way to do it with set from (better because for all I remember with my_hdr From, set reverse_name doesn't work). Right, my_hdr From overrides $reverse_name, which usually isn't desired. That's why it's nice to set $from instead. IMHO there is still a tiny problem because it's impossible to determine in a hook (send-hook or send2-hook) what the final From value is, based on the combination of $reverse_name and $from. That's a bit frustrating to me because I'd like to make some other settings based on that value. Aron
Re: send-hook and different email accounts
On Thursday, 25 September 2008, 15:31 (UTC+0200), Marco Giusti wrote: anyway i cannot understand reverse_name and i don't use it With reverse_name, when you reply to an e-mail, mutt automatically sets your From: address to whatever e-mail the original sender used to get the mail to you. If someone e-mails to your private account, your reply will have set From to your private account. If someone e-mails to your university account, your reply will have set From to the uni account. send-hooks and folder-hooks can catch a lot, but sometimes they don't. For example, I have my university address as the default from: address. But I'm also active in a cycling organisation, and if someone with whom I've never exchanged email before sends a message to me at that address, no hook will match, but I'd still like the reply to originate from the cycling address, not the uni address. Currently, I have to set this manually (using a macro). m.
Re: send-hook and different email accounts
Hi, For example, I have my university address as the default from: address. But I'm also active in a cycling organisation, and if someone with whom I've never exchanged email before sends a message to me at that address, no hook will match, but I'd still like the reply to originate from the cycling address, not the uni address. Currently, I have to set this manually (using a macro). I want the same thing and have configured it as follows (@ and . replaced ;)) set reverse_name set realname= 'Alexander Dahl' set from= post(at)lespocky(dot)de set use_from= yes alternates post(at)lespocky(dot)de|lespocky(at)web(de) This does exactly what you describe, you simply have to set the mail-adresses you use as alternates, no hooks or macros or my_hdr modifications necessary. Greets Alex -- * http://www.lespocky.de *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 pgpaM7hmVhJ2D.pgp Description: PGP signature
Re: send-hook and different email accounts
On Thursday, 25 September 2008, 17:10 (UTC+0200), Alexander Dahl wrote: Hi, For example, I have my university address as the default from: address. But I'm also active in a cycling organisation, and if someone with whom I've never exchanged email before sends a message to me at that address, no hook will match, but I'd still like the reply to originate from the cycling address, not the uni address. Currently, I have to set this manually (using a macro). I want the same thing and have configured it as follows (@ and . replaced ;)) set reverse_name set realname= 'Alexander Dahl' set from= post(at)lespocky(dot)de set use_from= yes alternates post(at)lespocky(dot)de|lespocky(at)web(de) This does exactly what you describe, you simply have to set the mail-adresses you use as alternates, no hooks or macros or my_hdr modifications necessary. Well, yes, but I am running mutt 1.5.15, and there I need my_hdr From for send-hooks, and that then messes up reverse_name. m.
Re: Save to a file problem (wrapped with =)
I have a very basic imap mutt setup to receive emails. However, when I try to save an email to a file, lines longer than 72 characters are wrapped with a = added at the end. I can view the long lines just fine, but the saved file is wrapped. When messages are saved to a file (using the save-message command), they're saved in mbox format, which is pretty close to the raw message---and the RFCs strongly encourage that messages be wrapped to 72 characters. I guess my point is: it's doing that on purpose... what exactly is it that you're trying to achieve? There's probably a better way to achieve it Thank you so much for the explanation, Kyle. I want to save the message as it is, being not wrapped. Is there a way to do that? The reason is that I was trying to save a patch for the Linux kernel. If the patch if wrapped, then it can't be applied anymore. BTW, is there a way to save just the message (excluding the from addr, subject, etc.)? Thanks a lot. Lin
Re: Save to a file problem (wrapped with =
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 10:39 AM, quoth Tan, Lin: I want to save the message as it is, being not wrapped. Is there a way to do that? Sure, several! The reason is that I was trying to save a patch for the Linux kernel. If the patch if wrapped, then it can't be applied anymore. BTW, is there a way to save just the message (excluding the from addr, subject, etc.)? Ahh, then the way you will want is to do it via the attachment menu (by default, press the 'v' key while a message is selected in the index or being viewed in the pager... think v is for View). From there, you can use the save-entry command (bound to 's' by default). That should allow you to save the text of a message (or, if the sender has been nice, the patch attachment) to a file in decoded (i.e. un-wrapped, non-raw) form. ~Kyle - -- Whenever you have an efficient government, you have a dictatorship. -- Harry Truman, lecturing at Columbia University, April 28, 1959 -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjbs6YACgkQBkIOoMqOI17WpwCg6GbC2IQmAtHJXQtIfi5dGq9h 8AUAoP5UgpZiisw4nwoV8c8i90rxms1U =Nlbd -END PGP SIGNATURE-
Re: Save to a file problem (wrapped with =)
I want to save the message as it is, being not wrapped. Is there a way to do that? You can use v to view the parts of a message and any attachments, then s to save individual attachments (or the message) to a file. This also excludes the message headers. These are using the default keybindings, so if you have changed them, these instructions will be different for you. HTH, Mark -- Mark Harrison Systems Administrator OmniTI Computer Consulting, Inc. pgpagIOm47EAf.pgp Description: PGP signature
Re: send-hook and different email accounts
* Marianne Promberger [EMAIL PROTECTED] [09-25-08 11:21]: Well, yes, but I am running mutt 1.5.15, and there I need my_hdr From for send-hooks, and that then messes up reverse_name. iianm, the idea is to use reverse_name generally and send-hooks for specific situations. -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
where does it search
In index page, / or T can search a pattern or regex, and there are modifiers like ~h ~b to force searching inside header or body etc. But what is the context for searching without any such modifiers, does it search the header or body or just what is visible of the index screen? TIA -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: send-hook and different email accounts
On Thursday, 25 September 2008, 11:27 (UTC-0400), Patrick Shanahan wrote: * Marianne Promberger [EMAIL PROTECTED] [09-25-08 11:21]: Well, yes, but I am running mutt 1.5.15, and there I need my_hdr From for send-hooks, and that then messes up reverse_name. iianm, the idea is to use reverse_name generally and send-hooks for specific situations. Yes.
Re: where does it search
Hi, * bill lam wrote: In index page, / or T can search a pattern or regex, and there are modifiers like ~h ~b to force searching inside header or body etc. But what is the context for searching without any such modifiers, does it search the header or body or just what is visible of the index screen? This feature is called simple search, see $simple_search and its documentation: mutt generates a pattern with modifiers for you. Regards, Rocco
Re: where does it search
Bill, Something which is undocumented, as far as I can see, is that when working with an IMAP mail store you can search conduct the search on the server. If you do a /~b it will have to download all the messages to do the search. If you replace '~' with '=' in your search pattern (e.g. /=b foo) it will compile a search function and send it to the server. This should really make it into the manual as it's very important for IMAP users. -Vance On Fri, Sep 26, 2008 at 12:03:12AM +0800, bill lam wrote: } In index page, / or T can search a pattern or regex, and there are } modifiers like ~h ~b to force searching inside header or body etc. } But what is the context for searching without any such modifiers, does } it search the header or body or just what is visible of the index } screen?
Re: where does it search
On Thu, 25 Sep 2008, Rocco Rutte wrote: This feature is called simple search, see $simple_search and its documentation: mutt generates a pattern with modifiers for you. Thank you Rocco! The friendly way to rtfm. ;-) -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: where does it search
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 12:38 PM, quoth Vance Shipley: Something which is undocumented, as far as I can see, is that when working with an IMAP mail store you can search conduct the search on the server. If you do a /~b it will have to download all the messages to do the search. If you replace '~' with '=' in your search pattern (e.g. /=b foo) it will compile a search function and send it to the server. This should really make it into the manual as it's very important for IMAP users. From the muttrc man page: =b STRING messages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally. (I wrote that part of the documentation.) ~Kyle - -- Captain, the most elementary and valuable statement in science, the beginning of wisdom is I do not know. -- Lt. Cmdr Data -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjbwNEACgkQBkIOoMqOI17l/ACfWFYBavTB9wcf3/msjqO3ZAW7 GMQAn1N9ZKUsbNcgkZuEjy5YlmbKvtVG =EfBF -END PGP SIGNATURE-
Re: Save to a file problem (wrapped with =
I want to save the message as it is, being not wrapped. Is there a way to do that? Sure, several! The reason is that I was trying to save a patch for the Linux kernel. If the patch if wrapped, then it can't be applied anymore. BTW, is there a way to save just the message (excluding the from addr, subject, etc.)? Ahh, then the way you will want is to do it via the attachment menu (by default, press the 'v' key while a message is selected in the index or being viewed in the pager... think v is for View). From there, you can use the save-entry command (bound to 's' by default). That should allow you to save the text of a message (or, if the sender has been nice, the patch attachment) to a file in decoded (i.e. un-wrapped, non-raw) form. It works! Thanks a bunch, Kyle and Mark. Haha, the kernel developers do NOT want patches to be sent as attachment. -- Lin
Re: where does it search
Kyle, I have been using a bookmark for http://www.mutt.org/doc/manual. I now see that a more up to date manual is here http://dev.mutt.org/doc/manual.html where this is documented. -Vance On Thu, Sep 25, 2008 at 11:48:17AM -0500, Kyle Wheeler wrote: } From the muttrc man page: } } =b STRING messages which contain STRING in the message body. If } IMAP is enabled, searches for STRING on the server, } rather than downloading each message and searching it } locally.
Re: where does it search
Thanks Vance and Kyle. I once had to kill mutt when searching gmail imap with ~b. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Help Reqd in mutt
Hi, I have the clarification following problems while using the mutt. 1. Its not giving any error but mail is not sent. How to know the error. How to de-bug such things. eg mutt -a file1 -a file2 -s Sample Subject mail Id 2 . Is there any command to send a list of files as attachments ? Instead of prefixing -a to each file ? 3. I need to send the contents of a file as Message body. How.? 4. What does mutt command returns.? 5. I need to move the list of files once the mail is sent ...ie. In the above command eg mutt -a file1 -a file2 -s Sample Subject mail Id Once the mails are sent I need to move file1, file2 to a different folder. I am a new member to mutt - community.. Thanks in Advance... to All !!! Thanks and Regards, Surya Kiran
Re: send-hook and different email accounts
* Marianne Promberger [EMAIL PROTECTED] [09-25-08 12:07]: On Thursday, 25 September 2008, 11:27 (UTC-0400), Patrick Shanahan wrote: * Marianne Promberger [EMAIL PROTECTED] [09-25-08 11:21]: Well, yes, but I am running mutt 1.5.15, and there I need my_hdr From for send-hooks, and that then messes up reverse_name. iianm, the idea is to use reverse_name generally and send-hooks for specific situations. Yes. Then, how do send-hooks mess up reverse_name? -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: Help Reqd in mutt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran: 1. Its not giving any error but mail is not sent. How to know the error. How to de-bug such things. eg mutt -a file1 -a file2 -s Sample Subject mail Id How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url? 2 . Is there any command to send a list of files as attachments ? Instead of prefixing -a to each file ? To quote the man page: -a file [...] Attach a file to your message using MIME. To attach multiple files, separating filenames and recipient addresses with -- is mandatory, e.g. mutt -a img.jpg *.png -- addr1 addr2 3. I need to send the contents of a file as Message body. How.? Use the file as input, like so: mutt [EMAIL PROTECTED] message.txt That's in the mutt man page too. 4. What does mutt command returns.? You could find that out by just trying a test message... 5. I need to move the list of files once the mail is sent ...ie. In the above command eg mutt -a file1 -a file2 -s Sample Subject mail Id Once the mails are sent I need to move file1, file2 to a different folder. Well, mutt won't move them, but you can do it all by yourself: mutt -s subject -a file1 file2 body.txt \ mv file1 file2 folder/ Is there some reason you don't want to do that? A lot of this you can find out by just thumbing through the documentation. ~Kyle - -- Time goes, you say? Ah no! Time stays, *we* go. -- Austin Dobson -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1 =Jylx -END PGP SIGNATURE-
Re: Help Reqd in mutt
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Wheeler Sent: Thursday, September 25, 2008 11:47 PM To: mutt-users@mutt.org Subject: Re: Help Reqd in mutt -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran: 1. Its not giving any error but mail is not sent. How to know the error. How to de-bug such things. eg mutt -a file1 -a file2 -s Sample Subject mail Id How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url? 2 . Is there any command to send a list of files as attachments ? Instead of prefixing -a to each file ? To quote the man page: -a file [...] Attach a file to your message using MIME. To attach multiple files, separating filenames and recipient addresses with -- is mandatory, e.g. mutt -a img.jpg *.png -- addr1 addr2 3. I need to send the contents of a file as Message body. How.? Use the file as input, like so: mutt [EMAIL PROTECTED] message.txt That's in the mutt man page too. 4. What does mutt command returns.? You could find that out by just trying a test message... 5. I need to move the list of files once the mail is sent ...ie. In the above command eg mutt -a file1 -a file2 -s Sample Subject mail Id Once the mails are sent I need to move file1, file2 to a different folder. Well, mutt won't move them, but you can do it all by yourself: mutt -s subject -a file1 file2 body.txt \ mv file1 file2 folder/ Is there some reason you don't want to do that? A lot of this you can find out by just thumbing through the documentation. ~Kyle - -- Time goes, you say? Ah no! Time stays, *we* go. -- Austin Dobson -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1 =Jylx -END PGP SIGNATURE- * Thanks for a Quick Response... For Point 1 . Its not giving any error but mail is not sent. How to know the error. How to de-bug such things.. How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url ANSWER : echo $sendmail sendmail: Undefined variable. stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail sendmail: Undefined variable. stage2qa018 26 /x/web/STAGE2QA018/batch For Point 4,and 5 my requirement is on successful sending of the Files only I need to move the files from the current folder to Sent/ folder. Hence I need to check the return value . **
mutt eats tabs
Hi, Mutt eats the tabs (replaces them with blanks) in my email. How can I configure mutt to keep the whitespaces such as tabs intact? Thanks a lo! Lin
Re: mutt eats tabs
On 2008-09-25, Lin Tan [EMAIL PROTECTED] wrote: Hi, Mutt eats the tabs (replaces them with blanks) in my email. How can I configure mutt to keep the whitespaces such as tabs intact? No, it doesn't. At least not in my experience. Are you observing this in mail that you send from mutt, or in mail that you read using mutt? What are you doing when you observe spaces where you think there should be tabs? Regards, Gary
Re: mutt eats tabs
No, it doesn't. At least not in my experience. Are you observing this in mail that you send from mutt, or in mail that you read using mutt? What are you doing when you observe spaces where you think there should be tabs? I used command mutt [EMAIL PROTECTED] patch to send myself an email. And then I used mutt v and s command to save it as a file, say patch.saved. I noticed that all the tabs in file patch are replaced by blanks in patch.saved. I tested that the patch can be applied correctly but the patch.saved can not. Then I manually replaced all the blanks in patch.saved with tabs, and then it can be applied without an error. my muttrc file is only a few lines: set send_charset=us-ascii:utf-8 set editor=vi set spoolfile=imaps://[EMAIL PROTECTED]:993/INBOX set folder=imaps://[EMAIL PROTECTED]:993 # Default From: my_hdr From: [EMAIL PROTECTED] Thanks, Lin
Re: Unexpected network error
Hi Kyle, Yes am using imap with mutt. $timeout was at 15. I reduced it to 10 now. Here are the details: set timeout=10 #set time_inc=250 set net_inc=1 set read_inc=10 set write_inc=10 set connect_timeout=10 #timeout a network connection after x secs Hope th above should fix it. Will get back if it doesnt Thanks, Ravi On Wed, Sep 24, 2008 at 9:45 PM, Kyle Wheeler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, September 24 at 07:25 PM, quoth Ravi Uday: If i leave mutt open for say 1 or2 hrs theres 99% chance of the An unexpected network error occurred. when I try to send mail using 'y' key. I end up closing mutt reopen and then retry this time it goes through. There's not usually much more information than that, but that sort of error message suggests to me that you're using mutt to access an IMAP mailbox, and your connection timed out. I'd say reduce your timeout values ($timeout and $imap_keepalive). ~Kyle - -- He who dares not offend cannot be honest. -- Thomas Paine -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjbF30ACgkQBkIOoMqOI146lwCeNW2cfAV0/oR8HY81/KY8tTvg hMwAn2ehvmbPU8Wv2cz4bmrikC578EWA =0p00 -END PGP SIGNATURE-
Re: mutt eats tabs
On 2008-09-25, Lin Tan [EMAIL PROTECTED] wrote: No, it doesn't. At least not in my experience. Are you observing this in mail that you send from mutt, or in mail that you read using mutt? What are you doing when you observe spaces where you think there should be tabs? I used command mutt [EMAIL PROTECTED] patch to send myself an email. And then I used mutt v and s command to save it as a file, say patch.saved. I noticed that all the tabs in file patch are replaced by blanks in patch.saved. I tested that the patch can be applied correctly but the patch.saved can not. Then I manually replaced all the blanks in patch.saved with tabs, and then it can be applied without an error. my muttrc file is only a few lines: set send_charset=us-ascii:utf-8 set editor=vi set spoolfile=imaps://[EMAIL PROTECTED]:993/INBOX set folder=imaps://[EMAIL PROTECTED]:993 # Default From: my_hdr From: [EMAIL PROTECTED] Thanks for the clear description. I can't argue with your observations. I can't replicate them with my setup, though. I created a file containing a paragraph of text indented by tabs and mailed it to myself as you did with your patch. I saved the received message using v and s, also as you did. The tabs were still there. I also saved the message to a new mbox folder, test_folder, using s in the index view, and verified that the tabs were still there. Then I quit that mutt and started a new one like this: mutt -F /dev/null -f test_folder I executed all the configuration commands you listed above. Then I saved the message again using v and s. The tabs are still there. I'm using mutt 1.5.17. I'm afraid I can't help. Maybe someone else on the list can replicate this and/or explain what's going on. Regards, Gary
Re: Unexpected network error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 01:35 PM, quoth Ravi Uday: Hi Kyle, Yes am using imap with mutt. $timeout was at 15. I reduced it to 10 now. Mutt's IMAP code didn't (until *very* recently) always behave itself when $timeout is smaller than $imap_keepalive (which defaults to 300). So unless you're following the hg devel tree pretty closely, I strongly recommend that you put $timeout back where it was and reduce $imap_keepalive. ~Kyle - -- The past isn't dead and buried. In fact, it isn't even past. -- William Faulkner -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjb+NEACgkQBkIOoMqOI16jVwCgmvd50vUDT/ReesZCVIKAm0/8 BMYAoIzMHV3WnZuJZIKC/E2FOW1sejZ9 =mbFE -END PGP SIGNATURE-
Re: mutt eats tabs
I used command mutt [EMAIL PROTECTED] patch to send myself an email. And then I used mutt v and s command to save it as a file, say patch.saved. I noticed that all the tabs in file patch are replaced by blanks in patch.saved. I tested that the patch can be applied correctly but the patch.saved can not. Then I manually replaced all the blanks in patch.saved with tabs, and then it can be applied without an error. my muttrc file is only a few lines: set send_charset=us-ascii:utf-8 set editor=vi set spoolfile=imaps://[EMAIL PROTECTED]:993/INBOX set folder=imaps://[EMAIL PROTECTED]:993 # Default From: my_hdr From: [EMAIL PROTECTED] Thanks for the clear description. I can't argue with your observations. I can't replicate them with my setup, though. I created a file containing a paragraph of text indented by tabs and mailed it to myself as you did with your patch. I saved the received message using v and s, also as you did. The tabs were still there. I also saved the message to a new mbox folder, test_folder, using s in the index view, and verified that the tabs were still there. Then I quit that mutt and started a new one like this: mutt -F /dev/null -f test_folder I executed all the configuration commands you listed above. Then I saved the message again using v and s. The tabs are still there. I'm using mutt 1.5.17. I'm afraid I can't help. Maybe someone else on the list can replicate this and/or explain what's going on. Thank you so much for the effort in replicating my problem. I am using the latest stable 1.4.2.3 version. I will try 1.5.17. Would you mind me sending you (not the mailing list) a small patch file, and you can see if it contains tabs? Maybe this way, we can at least figure out if the problem is in the sending process or the receiving process. Lin
Re: mutt eats tabs
Never mind, I just checked that the patch sent out contains tabs. So there must be something wrong with the saving process. Thanks anyways. -- Lin On Thu, 25 Sep 2008, Lin Tan wrote: I used command mutt [EMAIL PROTECTED] patch to send myself an email. And then I used mutt v and s command to save it as a file, say patch.saved. I noticed that all the tabs in file patch are replaced by blanks in patch.saved. I tested that the patch can be applied correctly but the patch.saved can not. Then I manually replaced all the blanks in patch.saved with tabs, and then it can be applied without an error. my muttrc file is only a few lines: set send_charset=us-ascii:utf-8 set editor=vi set spoolfile=imaps://[EMAIL PROTECTED]:993/INBOX set folder=imaps://[EMAIL PROTECTED]:993 # Default From: my_hdr From: [EMAIL PROTECTED] Thanks for the clear description. I can't argue with your observations. I can't replicate them with my setup, though. I created a file containing a paragraph of text indented by tabs and mailed it to myself as you did with your patch. I saved the received message using v and s, also as you did. The tabs were still there. I also saved the message to a new mbox folder, test_folder, using s in the index view, and verified that the tabs were still there. Then I quit that mutt and started a new one like this: mutt -F /dev/null -f test_folder I executed all the configuration commands you listed above. Then I saved the message again using v and s. The tabs are still there. I'm using mutt 1.5.17. I'm afraid I can't help. Maybe someone else on the list can replicate this and/or explain what's going on. Thank you so much for the effort in replicating my problem. I am using the latest stable 1.4.2.3 version. I will try 1.5.17. Would you mind me sending you (not the mailing list) a small patch file, and you can see if it contains tabs? Maybe this way, we can at least figure out if the problem is in the sending process or the receiving process. Lin
Re: Unexpected network error
I dont ahve $imap_keepalive set. So you want me to have this : $timeout=15 $imap_keepalive=10 Ravi On Thu, Sep 25, 2008 at 1:47 PM, Kyle Wheeler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 01:35 PM, quoth Ravi Uday: Hi Kyle, Yes am using imap with mutt. $timeout was at 15. I reduced it to 10 now. Mutt's IMAP code didn't (until *very* recently) always behave itself when $timeout is smaller than $imap_keepalive (which defaults to 300). So unless you're following the hg devel tree pretty closely, I strongly recommend that you put $timeout back where it was and reduce $imap_keepalive. ~Kyle - -- The past isn't dead and buried. In fact, it isn't even past. -- William Faulkner -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjb+NEACgkQBkIOoMqOI16jVwCgmvd50vUDT/ReesZCVIKAm0/8 BMYAoIzMHV3WnZuJZIKC/E2FOW1sejZ9 =mbFE -END PGP SIGNATURE-
Re: Unexpected network error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 04:26 PM, quoth Ravi Uday: I dont ahve $imap_keepalive set. So you want me to have this : $timeout=15 $imap_keepalive=10 That's awfully small. You can make them bigger (e.g. timeout=300, imap_keepalive=60, or even larger). I know the man page makes it sound like timeout really needs to be extra small, but don't sweat it. The default is 600, and you generally don't really need it anywhere near as small as 15. Think about that: that's potentially checking your email every 15 seconds. Depending on the number of mailboxes you have and the latency of your connection, it could easily take longer than that to complete a check for mail! I know mail admins that get grumpy when people check their email even every 5 minutes, due to all the network traffic they generate. When you're checking a file on disk, well, you can check that pretty dang often without a performance effect. But over the network? You may be causing your own problem by having such small timeouts. Generally, I would say: stick with the default values unless you have a reason to change them (the defaults weren't chosen by morons). Chances are, you can probably leave $timeout at 600. Give the defaults a try, and go from there. ~Kyle - -- What progress we are making. In the Middle Ages they would have burned me. Now they are content with burning my books. -- Sigmund Freud -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjcXo4ACgkQBkIOoMqOI16qcQCeOhB3O9JjRDtJDuA96+KFcWmb 2KcAoM5bQBTBZXtSSC4s4DeCduvRF2vV =rK7o -END PGP SIGNATURE-
Re: Help Reqd in mutt
Hi Can any body help me for the points 1 and 5. * Thanks for a Quick Response... For Point 1 . Its not giving any error but mail is not sent. How to know the error. How to de-bug such things.. How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url ANSWER : echo $sendmail sendmail: Undefined variable. stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail sendmail: Undefined variable. stage2qa018 26 /x/web/STAGE2QA018/batch For Point 4,and 5 my requirement is on successful sending of the Files only I need to move the files from the current folder to Sent/ folder. Hence I need to check the return value . -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maruvada, Suryakiran Sent: Friday, September 26, 2008 12:26 AM To: Kyle Wheeler; mutt-users@mutt.org Subject: Re: Help Reqd in mutt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Wheeler Sent: Thursday, September 25, 2008 11:47 PM To: mutt-users@mutt.org Subject: Re: Help Reqd in mutt -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran: 1. Its not giving any error but mail is not sent. How to know the error. How to de-bug such things. eg mutt -a file1 -a file2 -s Sample Subject mail Id How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url? 2 . Is there any command to send a list of files as attachments ? Instead of prefixing -a to each file ? To quote the man page: -a file [...] Attach a file to your message using MIME. To attach multiple files, separating filenames and recipient addresses with -- is mandatory, e.g. mutt -a img.jpg *.png -- addr1 addr2 3. I need to send the contents of a file as Message body. How.? Use the file as input, like so: mutt [EMAIL PROTECTED] message.txt That's in the mutt man page too. 4. What does mutt command returns.? You could find that out by just trying a test message... 5. I need to move the list of files once the mail is sent ...ie. In the above command eg mutt -a file1 -a file2 -s Sample Subject mail Id Once the mails are sent I need to move file1, file2 to a different folder. Well, mutt won't move them, but you can do it all by yourself: mutt -s subject -a file1 file2 body.txt \ mv file1 file2 folder/ Is there some reason you don't want to do that? A lot of this you can find out by just thumbing through the documentation. ~Kyle - -- Time goes, you say? Ah no! Time stays, *we* go. -- Austin Dobson -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1 =Jylx -END PGP SIGNATURE- * Thanks for a Quick Response... For Point 1 . Its not giving any error but mail is not sent. How to know the error. How to de-bug such things.. How is mutt configured to send mail? What's the value of $sendmail and/or $smtp_url ANSWER : echo $sendmail sendmail: Undefined variable. stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail sendmail: Undefined variable. stage2qa018 26 /x/web/STAGE2QA018/batch For Point 4,and 5 my requirement is on successful sending of the Files only I need to move the files from the current folder to Sent/ folder. Hence I need to check the return value . **