Re: mime type when adding attachment
On 2008-11-03, bill lam wrote: > When I attach an excel file, its mime type is automatically set > to > "application/excel", while recipient has no problem (they use > outlook), my mailcap has not associate that with any spreadsheet > program, thus mutt cannot open it. My question is how does mutt > determine mime type when adding attachment so that I could > change that > for excel file to "application/vnd.ms-excel" which seem > recognised by > both gnumeric and openoffice. Chapter 5 of the manual deals with MIME: http://www.mutt.org/doc/devel/manual.html#mimesupport In particular, "2. MIME Type configuration with mime.types" (http://www.mutt.org/doc/devel/manual.html#mime-types) says: "When you add an attachment to your mail message, Mutt searches your personal mime.types file at ${HOME}/.mime.types, and then the system mime.types file at /usr/local/share/mutt/mime.types or /etc/mime.types The mime.types file consist of lines containing a MIME type and a space separated list of extensions. For example: application/postscript ps eps application/pgp pgp audio/x-aiffaif aifc aiff [...] You can change the MIME type that Mutt assigns to an attachment by using the edit-type command from the compose menu (default: ^T). [...]" or by modifying the mime.types file. Regards. -- SDF Public Access UNIX System - http://sdf.lonestar.org
Re: Unicode and Mutt
* Dave Feustel <[EMAIL PROTECTED]> [20081103 14:03]: > I saved a few messages to mutt folders that had Russian or Asian > Characters in the subject line. Now when I look at those saved messages > the Russian/Asian characters are no longer displayed. Is there any way > to make mutt work with UTF-8 so that email message text does not get > screwed up? > > Thanks. > mutt (at least the version I have) works fine with Unicode characters as long as your terminal and LANG settings handle it. I run mutt in urxvt, and with the font "xft:DejaVu Sans Mono-10". This does display most kanji, chinese and cyrillic characters I have come across. LANG is set to en_GB.utf8. HTH, -- Anders Karlsson <[EMAIL PROTECTED]> All-Round Linux Tinkerer & RHCE
Re: Unicode and Mutt
On Mon, Nov 03, 2008 at 02:50:40PM +0100, Anders Karlsson wrote: > * Dave Feustel <[EMAIL PROTECTED]> [20081103 14:03]: > > I saved a few messages to mutt folders that had Russian or Asian > > Characters in the subject line. Now when I look at those saved messages > > the Russian/Asian characters are no longer displayed. Is there any way > > to make mutt work with UTF-8 so that email message text does not get > > screwed up? > > > > Thanks. > > > > mutt (at least the version I have) works fine with Unicode characters > as long as your terminal and LANG settings handle it. I run mutt in > urxvt, and with the font "xft:DejaVu Sans Mono-10". This does display > most kanji, chinese and cyrillic characters I have come across. LANG > is set to en_GB.utf8. > > HTH, Did you try saving the messages and verifying that the saved messages still display properly? Where is LANG set? I am using xterm and I wonder if a yum update could have changed those settings. I am currently reading the book _Unicode Explained_ by Jukka K. Korpela, and getting Unicode to work across the desktop is more involved than I originally thought.
Re: mime type when adding attachment
On 2008-11-03, bill lam wrote: > On Mon, 03 Nov 2008, Christian Mongeau wrote: > > Chapter 5 of the manual deals with MIME: > > http://www.mutt.org/doc/devel/manual.html#mimesupport > > > > In particular, "2. MIME Type configuration with mime.types" > > (http://www.mutt.org/doc/devel/manual.html#mime-types) [...] > > I checked again that there is no > ~/.mime.types > /usr/local/share/mutt/mime.types > /usr/share/mutt/mime.types > > There are > /etc/mime.types which contains > application/vnd.ms-excelxls xlb xlt > > /usr/etc/mime.types ??? which contains > application/excel xls > > Apparently mutt get mime type from /usr/etc/mime.types any idea why > there is such a file and why mutt read from it, instead of > /etc/mime.types as mentioned inside mutt documentation? AFAIK there shouldn't be a /usr/etc/mime.types because it's not FHS-compliant: "[...] /usr/etc is still not allowed: programs in /usr should place configuration files in /etc." (http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY) Well, ehm, they're simply guidelines... Anyway, you can create a .mime.types in your $HOME with the line: application/vnd.ms-excelxls Regards. -- SDF Public Access UNIX System - http://sdf.lonestar.org
Re: Unicode and Mutt
On Mon, Nov 03, 2008 at 10:14:15AM -0500, Dave Feustel wrote: > Did you try saving the messages and verifying that the saved messages > still display properly? Lots of people have been using Mutt with UTF-8 for years, and yes, this is known to work if your environment is set up correctly. > Where is LANG set? In the environment. See the man pages for locale(1) and environ(7) on your system, as well as the bash man page if you don't know how to set environment variables. You need to make sure it is set correctly so that iconv will convert (or not convert) the messages properly. You'll also need to use a unicode font with your xterm, AND make sure it has all the glyphs that you want to see... It sounds like you may already have that set up, but if you don't try adding either of these to your ~/.Xdefaults file: XTerm*font: -misc-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-* XTerm*font: -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 Both of these fonts have a very large number of character glyphs from most of the world's major languages, though in each font, at least a (different) subset of the Asian characters is missing. Then run this command: xrdb -merge ~/.Xdefaults And after that, any new xterms you open should display characters properly. You may need to install the fonts first... Alternately, try running Mutt in a gnome-terminal window, which is built with libraries to select and display an appropriate font based on the natural language character set from which the characters originate. [Of course, you still need to have appropriate fonts installed for the language you want to see...] If you still need more help, google is rife with pages which describe how to configure your locale properly to display unicode correctly. -- 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. pgpFZ7WJpLxvQ.pgp Description: PGP signature
Re: Command Line - setting the from field?
=- Saujanya Patel wrote on Mon 3.Nov'08 at 18:41:25 +1300 -= > I was wondering if it is possible to set the "from" value from the > command line without using the .muttrc file Yes. > Something like: > mutt -s "subject" [EMAIL PROTECTED] -a a.file < someText -f [EMAIL PROTECTED] No. You have to go via '-e' and use muttrc cmds. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
Re: mime type when adding attachment
On Mon, 03 Nov 2008, Christian Mongeau wrote: > Chapter 5 of the manual deals with MIME: > http://www.mutt.org/doc/devel/manual.html#mimesupport > > In particular, "2. MIME Type configuration with mime.types" > (http://www.mutt.org/doc/devel/manual.html#mime-types) says: > "When you add an attachment to your mail message, Mutt searches > your personal mime.types file at ${HOME}/.mime.types, and then > the system mime.types file at /usr/local/share/mutt/mime.types > or /etc/mime.types > > The mime.types file consist of lines containing a MIME type and > a space separated list of extensions. For example: > > application/postscript ps eps > application/pgp pgp > audio/x-aiffaif aifc aiff > > [...] > > You can change the MIME type that Mutt assigns to an attachment by > using the edit-type command from the compose menu (default: ^T). > [...]" or by modifying the mime.types file. Thanks Christian. I checked again that there is no ~/.mime.types /usr/local/share/mutt/mime.types /usr/share/mutt/mime.types There are /etc/mime.types which contains application/vnd.ms-excelxls xlb xlt /usr/etc/mime.types ??? which contains application/excel xls Apparently mutt get mime type from /usr/etc/mime.types any idea why there is such a file and why mutt read from it, instead of /etc/mime.types as mentioned inside mutt documentation? I use ubuntu if that matters. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: Unicode and Mutt
On Mon, Nov 03, 2008 at 12:51:03PM -0500, Derek Martin wrote: > On Mon, Nov 03, 2008 at 10:14:15AM -0500, Dave Feustel wrote: > > Did you try saving the messages and verifying that the saved messages > > still display properly? > > Lots of people have been using Mutt with UTF-8 for years, and yes, > this is known to work if your environment is set up correctly. > > > Where is LANG set? > > In the environment. See the man pages for locale(1) and environ(7) on > your system, as well as the bash man page if you don't know how to set > environment variables. You need to make sure it is set correctly so > that iconv will convert (or not convert) the messages properly. > > You'll also need to use a unicode font with your xterm, AND make sure > it has all the glyphs that you want to see... It sounds like you may > already have that set up, but if you don't try adding either of > these to your ~/.Xdefaults file: > > XTerm*font: -misc-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-* > XTerm*font: -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 > > Both of these fonts have a very large number of character glyphs from > most of the world's major languages, though in each font, at least a > (different) subset of the Asian characters is missing. > > Then run this command: > > xrdb -merge ~/.Xdefaults > > And after that, any new xterms you open should display characters > properly. You may need to install the fonts first... > > Alternately, try running Mutt in a gnome-terminal window, which is > built with libraries to select and display an appropriate font based > on the natural language character set from which the characters > originate. [Of course, you still need to have appropriate fonts > installed for the language you want to see...] > > If you still need more help, google is rife with pages which describe > how to configure your locale properly to display unicode correctly. > > -- > 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. Thanks very much for the info I thought I had everything set up for Unicode, but the loss of the Russian and Asian glyphs in the saved emails prove otherwise
"=" alias for mailboxes does not work (Was: Updating to Ubuntu Gutsy no longer shows message counts)
This is a follow up to an existing problem. Using "=" shortcut in mailboxes works in general, but mailbox counts show zero. A work-around is to use the full imap URL: Instead of: mailboxes \ =moseley \ =lists.mutt I can use: mailboxes \ imaps:///INBOX.moseley \ imaps:///INBOX.lists.mutt I just updated to Ubuntu 8.10 with mutt 1.5.18 and the problem still exists. I also built from Mercurial just not and that does not work. Seems 1.5.14 was the last time this worked. The =lists.mutt format works in every other regard, just results in zero counts. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt
Re: mime type when adding attachment
On Mon, 03 Nov 2008, Christian Mongeau wrote: > AFAIK there shouldn't be a /usr/etc/mime.types because it's not > FHS-compliant: > "[...] /usr/etc is still not allowed: programs in /usr should > place configuration files in /etc." I checked the mutt source and found that it set sysconfdir to prefix/etc inside configure, since my prefix=usr so that it looks for the directory /usr/etc, I'm not sure if my configure is problematic or mutt use lagacy autoconf that generate the configure. Anyway this is different from the mutt documentation. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: "=" alias for mailboxes does not work (Was: Updating to Ubuntu
On Mon, Nov 03, 2008 at 05:45:11PM -0800, Bill Moseley wrote: > This is a follow up to an existing problem. > > Using "=" shortcut in mailboxes works in general, but mailbox counts > show zero. > > A work-around is to use the full imap URL: > > Instead of: > > mailboxes \ > =moseley \ > =lists.mutt You could also try "+" instead. My (working on Ubuntu 8.10 with dovecot imap) mailboxes line as an example: mailboxes + +lists +logwatch +logrotate +cron +mirror +nagios +rhn +rttix +webmaster Cheers, -- Cristóbal Palmer ibiblio.org systems administrator cdla.unc.edu research assistant
global address list
Hi Is there a way to import and use global address list (as in outlook) to mutt? So that we can choose from that addr an id to send mail ? - Ravi