multiple IMAP accounts
Hy, I'm trying to set up multiple IMAP acounts. My problem is about switching between servers. I've read some documentation on the web, especially this one: http://wiki.mutt.org/?MuttGuide/UseIMAP The important lines in my .muttrc are : set header_cache = ~/.mutt_header_cache set message_cachedir = ~/.mutt_msg_cache set imap_authenticators = login set imap_passive = no set imap_check_subscribed = yes set imap_list_subscribed = yes set ssl_starttls = yes account-hook . 'unset preconnect imap_user' account-hook imaps://imap.gmail.com:993 ' \ set imap_user = us...@gmail.com \ spoolfile = imaps://imap.gmail.com:993 \ ' folder-hook imaps://imap.gmail.com:993 ' \ set folder = imaps://imap.gmail.com:993 \ smtp_url = smtps://us...@smtp.gmail.com:465 \ ' account-hook imaps://zimbra.HOST2 ' \ set imap_user = USER2 \ spoolfile = imaps://zimbra.HOST2 \ ' folder-hook imaps://zimbra.HOST2 ' \ set folder = imaps://zimbra.HOST2 \ smtp_url = smtp://USER2@smtp.HOST2 \ When I run mutt, mutt ask me the password for zimbra.HOST2, then connects to zimbra.HOST2 (I can read the mails) but I don't know how to access my Gmail account. Pressing the key y give me these choices : 1 0 imaps://zimbra.HOST2/Drafts 2 0 imaps://zimbra.HOST2/Sent Of course, I've tested the two accounts with mutt independently, they both works. I've also tried to use 'mailboxes = =INBOX =...'. I'm using Mutt 1.5.20 Thank you for any help or suggestion, Best,
Re: multiple IMAP accounts
On Mon, May 09, 2011 at 08:55:21AM +0200, David Froger wrote: [...] When I run mutt, mutt ask me the password for zimbra.HOST2, then connects to zimbra.HOST2 (I can read the mails) but I don't know how to access my Gmail account. use `mailboxes` command so you can switch between in browser. mailboxes imaps://imap.gmail.com/ mailboxes imaps://zimbra.HOST2/ m. -- C'è un'ape che se posa su un bottone di rosa: lo succhia e se ne va... Tutto sommato, la felicità è una piccola cosa. -- Trilussa, Felicità
Re: multiple IMAP accounts
It's working, thanks a lot! with: account-hook imaps://imap.gmail.com:993 (...) folder-hook imaps://imap.gmail.com:993 (...) this works: mailboxes imaps://imap.gmail.com:993 but this does not work (mutt ask my username/passwd, but can't connect): mailboxes imaps://imap.gmail.com/ I think it was my problem in previous tests. 2011/5/9 Marco Giusti marco.giu...@gmail.com: On Mon, May 09, 2011 at 08:55:21AM +0200, David Froger wrote: [...] When I run mutt, mutt ask me the password for zimbra.HOST2, then connects to zimbra.HOST2 (I can read the mails) but I don't know how to access my Gmail account. use `mailboxes` command so you can switch between in browser. mailboxes imaps://imap.gmail.com/ mailboxes imaps://zimbra.HOST2/ m. -- C'è un'ape che se posa su un bottone di rosa: lo succhia e se ne va... Tutto sommato, la felicità è una piccola cosa. -- Trilussa, Felicità
folder in incoming mailbox
Hy, With the following .muttrc, I can list and access to the folders foo, bar, baz using y and c? : set imap_authenticators = login set imap_passive = no set imap_check_subscribed = yes set imap_list_subscribed = yes set ssl_starttls = yes set spoolfile = imaps://zimbra.HOST set imap_user = USER set folder=imaps://zimbra.HOST/Inbox/ mailboxes = imaps://zimbra.HOST/Inbox/ mailboxes = imaps://zimbra.HOST/Inbox/foo mailboxes = imaps://zimbra.HOST/Inbox/bar mailboxes = imaps://zimbra.HOST/Inbox/baz So, I have put a mailboxes command for each folder foo,bar,baz I have noted that, with another account (Gmail), the folder are detected automatically, without having to use the mailboxes command, which is convenient. I would like to know if there were a way to have folder detected automatically with my zimbra.HOST account too? Thanks, David
Re: multiple IMAP accounts
On Mon, May 09, 2011 at 11:37:41AM +0200, David Froger wrote: It's working, thanks a lot! with: account-hook imaps://imap.gmail.com:993 (...) folder-hook imaps://imap.gmail.com:993 (...) this works: mailboxes imaps://imap.gmail.com:993 but this does not work (mutt ask my username/passwd, but can't connect): mailboxes imaps://imap.gmail.com/ I think it was my problem in previous tests. I don't know mutt internals and this is just a guess but I think that the problem is the explicit imap port in the _account-hook_ and the final slash in the _mailboxes_ command. These are the relative lines i had: account-hook imaps://imap\.gmail\.com/ 'set imap_user=marco.giu...@gmail.com' account-hook imaps://imap\.gmail\.com/ 'set imap_pass=cucu' mailboxes imaps://imap.gmail.com/ m. 2011/5/9 Marco Giusti marco.giu...@gmail.com: On Mon, May 09, 2011 at 08:55:21AM +0200, David Froger wrote: [...] When I run mutt, mutt ask me the password for zimbra.HOST2, then connects to zimbra.HOST2 (I can read the mails) but I don't know how to access my Gmail account. use `mailboxes` command so you can switch between in browser. mailboxes imaps://imap.gmail.com/ mailboxes imaps://zimbra.HOST2/ -- Nessuno come me si è creato una società reale evocando delle ombre; al punto che la vita dei miei ricordi assorbe il sentimento della mia vita reale. -- René de Chateaubriand, Mémoires d'Outre-tombe
Re: folder in incoming mailbox
On Mon, May 09, 2011 at 12:35:16PM +0200, David Froger wrote: Hy, With the following .muttrc, I can list and access to the folders foo, bar, baz using y and c? : set imap_authenticators = login set imap_passive = no set imap_check_subscribed = yes set imap_list_subscribed = yes set ssl_starttls = yes set spoolfile = imaps://zimbra.HOST set imap_user = USER set folder=imaps://zimbra.HOST/Inbox/ mailboxes = imaps://zimbra.HOST/Inbox/ mailboxes = imaps://zimbra.HOST/Inbox/foo mailboxes = imaps://zimbra.HOST/Inbox/bar mailboxes = imaps://zimbra.HOST/Inbox/baz So, I have put a mailboxes command for each folder foo,bar,baz I have noted that, with another account (Gmail), the folder are detected automatically, without having to use the mailboxes command, which is convenient. I would like to know if there were a way to have folder detected automatically with my zimbra.HOST account too? Have you try to connect to the zimbra.HOST? For what I know the folder list is dowloaded once you connected to the imap server and only then you can browse them. Check also the `imap_list_subscribed` variable, I seted it to `no`. m. -- Dalle virtù che si esigono in un domestico, l'Eccellenza Vostra conosce molti padroni degni d'esser servitori? -- Pierre Augustin Caron de Beaumarchais
Re: dynamically setting xterm title resource to mutt
On Sun, May 08, 2011 at 12:38:55PM +0200, Richard wrote: which does successfully set the xterm title (any easier way to simply execute an external command) - however the xterm resource name is apparently not affected by this update. The xterm maintainer is on the list, and can confirm when he sees this thread, but I believe xterm and most other X clients set the resource name once during initialization, and read all their resources from the X server (or the command line) only once, at start-up. -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpIlGsicmxJQ.pgp Description: PGP signature
Just converted to UTF-8. Line graphics don't work. :-(
Hi, mutt! 1 2 3 4 5 6 7 3 I run mutt 1.5.21 on a Linux virtual terminal (NOT in X). Yesterday I converted my system software from ISO-8859-1 to UTF-8. Now I find that the line graphics in the message index, rather than looking like lines, look something like this: M-b~T~\M-b~T~@ . A bit of internet searching reveals the workaround of setting LANG thusly: LANG=C mutt , but this is a mere workaround since it disables UTF-8 where it's really wanted. Is there a proper solution to this dilemma? Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany).
Re: dynamically setting xterm title resource to mutt
On Sun, 08 May 2011, Richard wrote: Am Sun, dem 08 May 2011, schrieb Richard: Hi Richard, / 1 ... perhaps this might help: # allows your mutt(rc) to override/ set the xterm-title, when running mutt set xterm_set_titles=yes # # Remember: # if set xterm_title -- xterm_set_titles # but: # ¬ (xterm_set_titles -- xterm_title) # allows you to specify your xterm-Title set xterm_title=Mutt with%?m? %m Messagesno messages?%?n? [%n New]? /2 Can you explain briefly, what this part of your script should do? \033]0;mutt\007 Im unfortunately not that familiar with shell-scripting, yet. //c -- Christian Roßberg Rhetorikberater | Consulting Rhetorician OratorPerfectus GbR | http://oratorperfectus.com signature.asc Description: Digital signature
Adding the year in status screen
Hi, I am missing to have the year beside the day and the month of every message in the status window, specially when I am searching old e-mails. Is there any way to achieve this? Thank you! -- jm
Re: Adding the year in status screen
On Mon, May 09, 2011 at 05:28:50PM +0200, Jose M Vidal wrote: I am missing to have the year beside the day and the month of every message in the status window, specially when I am searching old e-mails. Is there any way to achieve this? See $index_format and $date_format in the manual. You can customize the date display using those two variables.
Re: Adding the year in status screen
On 09.05.11,09:55, Michael Elkins wrote: On Mon, May 09, 2011 at 05:28:50PM +0200, Jose M Vidal wrote: I am missing to have the year beside the day and the month of every message in the status window, specially when I am searching old e-mails. Is there any way to achieve this? See $index_format and $date_format in the manual. You can customize the date display using those two variables. This is what I have in my $index_format and $date_format: set index_format=%6C %Z(%X) %D %-18.17f %-20.19t %s set date_format=!%d.%m.%y,%H:%M Jostein
Re: Adding the year in status screen
Great! Thank you very much. I finally decided to set following config: set index_format=%4C %Z(%X) %D %-15.15L %s set date_format=!%Y.%b.%d %H:%M Thanks! -- jm
Re: dynamically setting xterm title resource to mutt
On Mon, May 09, 2011 at 09:18:18AM -0500, Derek Martin wrote: On Sun, May 08, 2011 at 12:38:55PM +0200, Richard wrote: which does successfully set the xterm title (any easier way to simply execute an external command) - however the xterm resource name is apparently not affected by this update. The xterm maintainer is on the list, and can confirm when he sees this thread, but I believe xterm and most other X clients set the resource name once during initialization, and read all their resources from the X server (or the command line) only once, at start-up. makes sense and it would have probably many strange side effects if it would change resource name at runtime. Meanwhile I found out that it is also possible to use keymap action to change translations on the fly. The only bit I need to think off - how do I invoke the keymap action automatically whenever mutt is started? In other words is it possible to trigger xterm actions (such as keymap(table)) by echoing some control-sequence? Richard --- Name and OpenPGP keys available from pgp key servers pgpqh5RrVi4R5.pgp Description: PGP signature
Re: dynamically setting xterm title resource to mutt
On Mon, May 09, 2011 at 05:01:42PM +0200, //c wrote: # allows your mutt(rc) to override/ set the xterm-title, when running mutt set xterm_set_titles=yes # # Remember: # if set xterm_title -- xterm_set_titles # but: # ¬ (xterm_set_titles -- xterm_title) # allows you to specify your xterm-Title set xterm_title=Mutt with%?m? %m Messagesno messages?%?n? [%n New]? this seems to be some patched version of mutt? Would be pretty cool functionality, although quite doable with normal scripting. /2 Can you explain briefly, what this part of your script should do? \033]0;mutt\007 Im unfortunately not that familiar with shell-scripting, yet. that was part of set my_init=`/bin/echo -en \033]0;mutt\007 /proc/$PPID/fd/1 ` this does send the character sequence 033,],0;... etc to the xterm and this does change the title to mutt. Characters with leading 0 are in octal notation. Its much more complicated to do this from mutt than from shell - or I did simply not find a more straightforward way to do it. The equivalent shell command would be /bin/echo -en \033]0;mutt\007 The way I have done it in mutt does external command invocation using backticks, which means that standard output is not sent to xterm but to a pipe instead. To get it sent to the xterm I use the redirection to /proc/$PPID/fd/1 - which in Linux (and probably only there) means send it to the standard output of the parents process. Richard --- Name and OpenPGP keys available from pgp key servers pgpAjXAc3th8P.pgp Description: PGP signature
Re: dynamically setting xterm title resource to mutt
* Richard r...@linux-m68k.org [05-09-11 15:19]: Meanwhile I found out that it is also possible to use keymap action to change translations on the fly. The only bit I need to think off - how do I invoke the keymap action automatically whenever mutt is started? alias mutt=xterm -e xtermset -T mutt;mutt not tested -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org
Re: dynamically setting xterm title resource to mutt
On Mon, May 09, 2011 at 03:31:29PM -0400, Patrick Shanahan wrote: * Richard r...@linux-m68k.org [05-09-11 15:19]: Meanwhile I found out that it is also possible to use keymap action to change translations on the fly. The only bit I need to think off - how do I invoke the keymap action automatically whenever mutt is started? alias mutt=xterm -e xtermset -T mutt;mutt xterm -e mutt would already do what I want (tested that) - except that I was wondering if it could be achieved without starting a new xterm. xtermset (and the similar xtermcontrol) seem to use xterm escape sequences and I just can't find any xterm escape sequence that would switch keymaps or invoke arbitrary actions. Maybe too much to ask for but would be definitely cool. Richard --- Name and OpenPGP keys available from pgp key servers
Re: dynamically setting xterm title resource to mutt
* Richard r...@linux-m68k.org [05-09-11 16:09]: On Mon, May 09, 2011 at 03:31:29PM -0400, Patrick Shanahan wrote: alias mutt=xterm -e xtermset -T mutt;mutt xterm -e mutt would already do what I want (tested that) - except that I was wondering if it could be achieved without starting a new xterm. xtermset (and the similar xtermcontrol) seem to use xterm escape sequences and I just can't find any xterm escape sequence that would switch keymaps or invoke arbitrary actions. Maybe too much to ask for but would be definitely cool. alias mutt=xtermset -T mutt;mutt -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org
Re: Just converted to UTF-8. Line graphics don't work. :-(
The font you are using likely doesn't support the line glyphs. I've found Envy Code R to be a good all-purpose font that supports a good number of glyphs. Nick On Mon, May 09, 2011 at 02:45:32PM +, Alan Mackenzie wrote: Hi, mutt! 1 2 3 4 5 6 7 3 I run mutt 1.5.21 on a Linux virtual terminal (NOT in X). Yesterday I converted my system software from ISO-8859-1 to UTF-8. Now I find that the line graphics in the message index, rather than looking like lines, look something like this: M-b~T~\M-b~T~@ . A bit of internet searching reveals the workaround of setting LANG thusly: LANG=C mutt , but this is a mere workaround since it disables UTF-8 where it's really wanted. Is there a proper solution to this dilemma? Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany).