using urlview remotely (was: pager: avoid line breaks in URLs)
also sprach Kyle Wheeler [EMAIL PROTECTED] [2008.11.16.0453 +0100]: And as long as urlview cannot deal with X (I read mail on my mailserver, which has no X, and want to open URLs locally), it's of little use... Eh? What's X got to do with it? urlview just runs whatever program you want. It can run firefox if you want it to, and if your DISPLAY setting is correct, firefox will display on your local system (even though it's running on the remote system). That's not the issue, the issue is sending the url from the remote system to firefox running on your local system, and that's got *nothing* to do with X or with urlview. Alright, you busted me with your nitpicking. :) What I mean is: I cannot fathom a way in which I could have the remote urlview pop up pages on my likal firefox *without* installing firefox (and thus half of X) on the remote machine (which just won't happen). So the rant is against firefox, though arguably I don't know how to fix it. The clickable (and potentially tab-able) terminal links seemed like an elegant way out. Personally, that's why I use mutt locally, reading email via IMAP. I do most of the time too, but not always. But it shouldn't be too hard to set up a simple little URL launcher that you could tunnel over ssh. The local side would be something really simple, like this: #!/bin/bash while read url ; do firefox -a firefox -remote openurl($url) done The problem is how to tell urlview where it can find this launcher, which may sit behind a NAT box. The real trick to it would be setting up ssh to do the tunnel, launching the local script, and ensuring that the remote side sends the URL to the right place. Of course, I could create a TCP tunnel with ssh -R and then simply let urlview echo URLs to netcat to hit the launcher after passing the tunnel, but that has major shortcomings: - URLs are opened on the machine which has the oldest connection, not on the local machine (when using multiple machines) - If the connection goes down, this stops working until a new connection has been established It sounds like too much trouble for too little gain. -- martin | http://madduck.net/ | http://two.sentenc.es/ it's time for the human race to enter the solar system. - george w. bush spamtraps: [EMAIL PROTECTED] digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
text/html vs. text/plain attachments priority
I occasionally receive messages that contain both a plain text version _and_ an html version of the author's original message. I have noticed that with my mutt novice setup, it is the html version that is displayed in the pager via urlview - elinks, rather than the text version. One issue with this would appear to be that the display of the message is poorly formatted in mutt's pager - with the major annoyance being erratic indentation and the absence of the markers (and the resulting loss of the corresponding coloring that I have implemented), making it quite difficult, especially on those long intricate posts (the same folks that send these plain+html messages are also usually adverse to trimming). What I do to circumvent the issue is to hit v when displaying the converted html in mutt's pager, select the text/plain version and everything looks good. Am I analyzing the problem correctly? Is this something due to these posters using a mailer where the default is to send _both_ an html version _and_ a plain text version? Since my mutt setup is apparently broken in this respect, (I did try to find a solution via google but it does not look like other mutt users are affected), could anyone advise how I can fix that and make mutt choose the text/plain version over the text/html version? Thanks, CJ
Re: text/html vs. text/plain attachments priority
On Sun, Nov 16 2008, Chris Jones wrote: are affected), could anyone advise how I can fix that and make mutt choose the text/plain version over the text/html version? You could put something like this in your muttrc: alternative_order text/plain Cheers, Peter -- http://pmrb.free.fr/contact/
Re: text/html vs. text/plain attachments priority
On Sun, Nov 16, 2008 at 08:29:25AM EST, Peter Münster wrote: On Sun, Nov 16 2008, Chris Jones wrote: are affected), could anyone advise how I can fix that and make mutt choose the text/plain version over the text/html version? You could put something like this in your muttrc: alternative_order text/plain Wonderful! You just made my day.
From variable and multiple account
I'm not new to mutt but only now I have time to try to solve some problems with mutt, problems that I have since I use mutt. This is the first of a long series of email. I have four imap accounts (personal, 2 university, mailing list) and I want to use four different Form: header depending on the folder I am in. In thunderbird I can configure a different From: addresse for each account and then when I compose an email, it choose the correct sender address based on the selected folder. How can I do this with mutt? account-hook get executed only the first time I open a folder on that account, so if I open the inbox on personal account, then inbox on uni account and then again inbox on personal account, this time the account hook doesn't get run and the from variable has the value from the uni account. Maybe I can use a folder-hook but how can I create the correct regexp? How? I use mutt 1.5.18, reverse_name=no, realname should be always the same for each account, I want to change only the from variable.
Re: From variable and multiple account
* Alberto Rizzi [EMAIL PROTECTED] [20081116 20:53]: I'm not new to mutt but only now I have time to try to solve some problems with mutt, problems that I have since I use mutt. This is the first of a long series of email. I have four imap accounts (personal, 2 university, mailing list) and I want to use four different Form: header depending on the folder I am in. In thunderbird I can configure a different From: addresse for each account and then when I compose an email, it choose the correct sender address based on the selected folder. How can I do this with mutt? account-hook get executed only the first time I open a folder on that account, so if I open the inbox on personal account, then inbox on uni account and then again inbox on personal account, this time the account hook doesn't get run and the from variable has the value from the uni account. Maybe I can use a folder-hook but how can I create the correct regexp? How? I use mutt 1.5.18, reverse_name=no, realname should be always the same for each account, I want to change only the from variable. The way I have done it, because I use maildir's (through offlineimap) under ~/Mail, my folder-hook's are simply folder-hook foldername1 set from=[EMAIL PROTECTED] folder-hook foldername2 set from=[EMAIL PROTECTED] folder-hook foldername3 set from=[EMAIL PROTECTED] I have not tried this with GMail account or similar yet, but if I get a chance to, I'll let you know what I find. -- Anders Karlsson [EMAIL PROTECTED] All-Round Linux Tinkerer RHCE
Re: From variable and multiple account
Anders Karlsson ha scritto: * Alberto Rizzi [EMAIL PROTECTED] [20081116 20:53]: I'm not new to mutt but only now I have time to try to solve some problems with mutt, problems that I have since I use mutt. This is the first of a long series of email. I have four imap accounts (personal, 2 university, mailing list) and I want to use four different Form: header depending on the folder I am in. In thunderbird I can configure a different From: addresse for each account and then when I compose an email, it choose the correct sender address based on the selected folder. How can I do this with mutt? account-hook get executed only the first time I open a folder on that account, so if I open the inbox on personal account, then inbox on uni account and then again inbox on personal account, this time the account hook doesn't get run and the from variable has the value from the uni account. Maybe I can use a folder-hook but how can I create the correct regexp? How? I use mutt 1.5.18, reverse_name=no, realname should be always the same for each account, I want to change only the from variable. The way I have done it, because I use maildir's (through offlineimap) under ~/Mail, my folder-hook's are simply folder-hook foldername1 set from=[EMAIL PROTECTED] folder-hook foldername2 set from=[EMAIL PROTECTED] folder-hook foldername3 set from=[EMAIL PROTECTED] I have not tried this with GMail account or similar yet, but if I get a chance to, I'll let you know what I find. Under each account I have several folders. In this mailinglist account (fastmail) I have 10 folder, one for each mailing list I am subscribed to. I don't want to write a folder hook for each folder
Re: From variable and multiple account
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday, November 16 at 08:52 PM, quoth Alberto Rizzi: I want to use four different Form: header depending on the folder I am in. That's a fairly standard request. account-hook get executed only the first time I open a folder on that account It's actually more complicated than that. Account hooks are run whenever needed, as determined by mutt. They're designed primarily for setting connection-based things, such as $imap_pass and that sort of thing. Maybe I can use a folder-hook but how can I create the correct regexp? How? What are the folders? You can try something like this: folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' The details, of course, depend on exactly what your accounts are. ~Kyle - -- You can get more with a kind word and a gun than you can with a kind word alone. -- Al Capone -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkkgiUkACgkQBkIOoMqOI141kACgjfYJBt35a4fDE6f2cYOO0RaW A9sAniprcfXOna/eF9Avg2geL+ciuAl7 =whQv -END PGP SIGNATURE-
Re: From variable and multiple account
On Sun, Nov 16, 2008 at 08:52:12PM +0100, Alberto Rizzi wrote: I have four imap accounts (personal, 2 university, mailing list) and I want to use four different Form: header depending on the folder I am in. do you really have different accounts (i.e., different host/username/password) or just different folders? i have two email accounts (one fastmail, one university) which i both access through imap. i simply have two mutt instances running in a screen session. actually, i have three mutt instances in a screen session, the third is for my local folders. my .screenrc ends with the following lines: screen -t Local mail mutt -F .muttrc-local screen -t Fastmail mutt -F .muttrc-fm screen -t Uni Frankfurt mutt -F .muttrc-jwg each of the .muttrc-* files contains settings that are specific for each account, and additionally i have a .muttrc-gen for general settings that gets sourced by each of the specific .muttrc-* files. i've had this setup for years and i find it works quite well for handling multiple accounts. -- Joost Kremers, PhD University of Frankfurt Institute for Cognitive Linguistics Grüneburgplatz 1 60629 Frankfurt am Main, Germany
Re: text/html vs. text/plain attachments priority
On 16Nov2008 12:52, Chris Jones [EMAIL PROTECTED] wrote: | On Sun, Nov 16, 2008 at 08:29:25AM EST, Peter Münster wrote: | On Sun, Nov 16 2008, Chris Jones wrote: | are affected), could anyone advise how I can fix that and make mutt | choose the text/plain version over the text/html version? | | You could put something like this in your muttrc: | alternative_order text/plain | | Wonderful! You just made my day. You may find you want to augument this later; there are various sources out there (typically newsletters) that send html and plain text, but put something totally useless in the plain text section. So you may end up using message-hook to make text/plain the default except for certain senders. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/
Re: From variable and multiple account
Kyle Wheeler ha scritto: On Sunday, November 16 at 08:52 PM, quoth Alberto Rizzi: I want to use four different Form: header depending on the folder I am in. That's a fairly standard request. account-hook get executed only the first time I open a folder on that account It's actually more complicated than that. Account hooks are run whenever needed, as determined by mutt. They're designed primarily for setting connection-based things, such as $imap_pass and that sort of thing. Maybe I can use a folder-hook but how can I create the correct regexp? How? What are the folders? You can try something like this: folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' The details, of course, depend on exactly what your accounts are. ~Kyle This is a cut down version of my muttrc file. Under poste.it I have other folders (4 folders) that are not under INBOX like fastmail but directly under root. Now under the two uni account I don't have folders other than INBOX but I will create some folders. I don't like the multiple folder hook at the end; I'd like to use only a folder hook for the fastmail server instead of a folder hook for each folder #Account account-hook . 'unset imap_user; unset imap_pass' account-hook imaps://mail.messagingengine.com/ 'set imap_user=user imap_pass=pwd' account-hook imaps://relay.poste.it/ 'set imap_user=user imap_pass=pwd' account-hook imap://lando 'set imap_user=user imap_pass=pwd' account-hook imaps://mail.ethz.ch/ 'set imap_user=user imap_pass=pwd' account-hook imaps://iis-imap.ee.ethz.ch/ 'set imap_user=user imap_pass=pwd' set spoolfile=imaps://relay.poste.it/INBOX set folder=imaps://mail.messagingengine.com mailboxes +INBOX mailboxes +INBOX.Advocacy mailboxes +INBOX.Aiuto mailboxes +INBOX.Esperti mailboxes +INBOX.Gnome mailboxes +INBOX.Mobile mailboxes +INBOX.Mutt mailboxes +INBOX.ParmaLug mailboxes +INBOX.Questions mailboxes +INBOX.Varie set folder=imaps://relay.poste.it mailboxes +INBOX #set folder=imap://lando #mailboxes +INBOX set folder=imaps://mail.ethz.ch mailboxes +INBOX set folder=imaps://iis-imap.ee.ethz.ch mailboxes +INBOX #Ordinamento folder-hook . set sort = date folder-hook INBOX.Advocacy 'set sort = threads; exec collapse-all' folder-hook INBOX.Aiuto 'set sort = threads; exec collapse-all' folder-hook INBOX.Esperti 'set sort = threads; exec collapse-all' folder-hook INBOX.Gnome 'set sort = threads; exec collapse-all' folder-hook INBOX.Mobile'set sort = threads; exec collapse-all' folder-hook INBOX.Mutt 'set sort = threads; exec collapse-all' folder-hook INBOX.ParmaLug 'set sort = threads; exec collapse-all' folder-hook INBOX.Questions 'set sort = threads; exec collapse-all' folder-hook INBOX.Varie 'set sort = threads; exec collapse-all' set sort_browser = alpha
Re: From variable and multiple account
* Alberto Rizzi [EMAIL PROTECTED] [11-16-08 15:47]: Anders Karlsson ha scritto: The way I have done it, because I use maildir's (through offlineimap) under ~/Mail, my folder-hook's are simply folder-hook foldername1 set from=[EMAIL PROTECTED] folder-hook foldername2 set from=[EMAIL PROTECTED] folder-hook foldername3 set from=[EMAIL PROTECTED] I have not tried this with GMail account or similar yet, but if I get a chance to, I'll let you know what I find. Under each account I have several folders. In this mailinglist account (fastmail) I have 10 folder, one for each mailing list I am subscribed to. I don't want to write a folder hook for each folder Why not? You would only have to do it once. -- 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: From variable and multiple account
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday, November 16 at 10:35 PM, quoth Alberto Rizzi: You can try something like this: folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' The details, of course, depend on exactly what your accounts are. account-hook . 'unset imap_user; unset imap_pass' account-hook imaps://mail.messagingengine.com/ 'set imap_user=user imap_pass=pwd' account-hook imaps://relay.poste.it/ 'set imap_user=user imap_pass=pwd' account-hook imap://lando 'set imap_user=user imap_pass=pwd' account-hook imaps://mail.ethz.ch/ 'set imap_user=user imap_pass=pwd' account-hook imaps://iis-imap.ee.ethz.ch/ 'set imap_user=user imap_pass=pwd' so... you can't figure this out yourself? folder-hook imaps://mail.messagingengine.com/ 'set [EMAIL PROTECTED]' folder-hook imaps://relay.poste.it/ 'set [EMAIL PROTECTED]' folder-hook imaps://lando/ 'set [EMAIL PROTECTED]' folder-hook imaps://mail.ethz.ch/ 'set [EMAIL PROTECTED]' folder-hook imaps://iis-imap.ee.ethz.ch/ 'set [EMAIL PROTECTED]' ~Kyle - -- Those who agree with us may not be right, but we admire their astuteness. -- Cullen Hightower -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkkglvQACgkQBkIOoMqOI14yXgCfcVrQca+ljRGm952W7N8dhwDJ Z8wAniwXtdEfV6h5FLTmB7B8XTFl+zBf =NUqo -END PGP SIGNATURE-
Re: From variable and multiple account
On 16.11.08, 15:56, Kyle Wheeler wrote: On Sunday, November 16 at 10:35 PM, quoth Alberto Rizzi: You can try something like this: folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]' The details, of course, depend on exactly what your accounts are. account-hook . 'unset imap_user; unset imap_pass' account-hook imaps://mail.messagingengine.com/ 'set imap_user=user imap_pass=pwd' account-hook imaps://relay.poste.it/ 'set imap_user=user imap_pass=pwd' account-hook imap://lando 'set imap_user=user imap_pass=pwd' account-hook imaps://mail.ethz.ch/ 'set imap_user=user imap_pass=pwd' account-hook imaps://iis-imap.ee.ethz.ch/ 'set imap_user=user imap_pass=pwd' so... you can't figure this out yourself? folder-hook imaps://mail.messagingengine.com/ 'set [EMAIL PROTECTED]' folder-hook imaps://relay.poste.it/ 'set [EMAIL PROTECTED]' folder-hook imaps://lando/ 'set [EMAIL PROTECTED]' folder-hook imaps://mail.ethz.ch/ 'set [EMAIL PROTECTED]' folder-hook imaps://iis-imap.ee.ethz.ch/ 'set [EMAIL PROTECTED]' ~Kyle Yes, it works. The first time I did a typo in my muttrc and it didn't match the folder. Now can I also use only one folder-hook to set the thread sort order under fastmail. Thanks to all of you
Re: text/html vs. text/plain attachments priority
On Sun, Nov 16, 2008 at 04:22:46PM EST, Cameron Simpson wrote: On 16Nov2008 12:52, Chris Jones [EMAIL PROTECTED] wrote: | On Sun, Nov 16, 2008 at 08:29:25AM EST, Peter Münster wrote: | On Sun, Nov 16 2008, Chris Jones wrote: | are affected), could anyone advise how I can fix that and make mutt | choose the text/plain version over the text/html version? | | You could put something like this in your muttrc: | alternative_order text/plain | | Wonderful! You just made my day. You may find you want to augument this later; there are various sources out there (typically newsletters) that send html and plain text, but put something totally useless in the plain text section. So you may end up using message-hook to make text/plain the default except for certain senders. Well now that Mr. Muenster kindly indicated the solution .. I was able to google for more info - using mutt alternative_order as keywords -- and take a look at the fine manual, naturally and I do realize that my alternative_order .. in my .muttrc is probably not going to be quite as flexible as it should be. One great feature of mutt is that you can usually experiment interactively with new settings while in mutt, but I'll be damned if I can figure out how to issue these. I tried :?alternative_order :alternative_order ? .. to query the default settings before I added the command to my .muttrc and restarted mutt and was never able to get this to work. No big deal but I'm obviously missing something. Thanks! CJ
Re: From variable and multiple account
On Sun, 16 Nov, 2008 at 20:52:12 +0100, Alberto Rizzi wrote: I have four imap accounts (personal, 2 university, mailing list) and I want to use four different Form: header depending on the folder I am in. In thunderbird I can configure a different From: addresse for each account and then when I compose an email, it choose the correct sender address based on the selected folder. I have four smtp accounts, one as the center mailbox, the other three forward new mails to this mailbox. I just fetch mails from this center mailbox, then use procmail to send the mails into different maildir based on the to|cc header. Of course, each maildir has different settings. I use folder-hook. Maybe there're better solutions, but I haven't figured out any. Maybe I can use a folder-hook but how can I create the correct regexp? How? Yeah, folder-hook works. The manual will help you, or google. -- Rgds, Cherife.
Re: From variable and multiple account
* Alberto Rizzi [EMAIL PROTECTED] [20081116 21:51]: Anders Karlsson ha scritto: [snip] The way I have done it, because I use maildir's (through offlineimap) under ~/Mail, my folder-hook's are simply folder-hook foldername1 set from=[EMAIL PROTECTED] folder-hook foldername2 set from=[EMAIL PROTECTED] folder-hook foldername3 set from=[EMAIL PROTECTED] I have not tried this with GMail account or similar yet, but if I get a chance to, I'll let you know what I find. Under each account I have several folders. In this mailinglist account (fastmail) I have 10 folder, one for each mailing list I am subscribed to. I don't want to write a folder hook for each folder I have subfolders too, and I need only enough of a pattern that the path is unique and the from field is set correctly. In ~/Mail, I have foldername1, foldername2 and foldername3, underneath each of those, there is INBOX and various other folders as per what is on each IMAP server that offlineimap sync's in. In my foldername3 I have mailing list subscriptions to among other things this list. Hope this helped, -- Anders Karlsson [EMAIL PROTECTED] All-Round Linux Tinkerer RHCE
Gmail style alias setting
Hello, Gmail can do a lot of work automatically, but I believe mutt can do it better. Such as alias setting, gmail can 1. store all mails appeared in all mail headers, e.g., From/To/CC/BCC 2. auto-complete when your key-in any part of a mail address. e.g., when you key in ab, addresses like [EMAIL PROTECTED] [EMAIL PROTECTED] Ab Barth, [EMAIL PROTECTED] will show up for your choice. 3. when storing alias, if the person's name is included in header, gmail will save it too, for example, if you receive a mail from Ab Barth, [EMAIL PROTECTED], the name and address will both be saved. Do you think it's possible to let mutt do the alias thing as smart as gmail? Please tell me how to. Thank you very much! Best Lars
Re: Gmail style alias setting
On Mon, Nov 17, 2008 at 01:03:59PM +0800, Chengqi(Lars) Song wrote: 1. store all mails appeared in all mail headers, e.g., From/To/CC/BCC No idea on this one, never particularly wanted to do it, but the others ... you betcha! 2. auto-complete when your key-in any part of a mail address. e.g., when you key in ab, addresses like [EMAIL PROTECTED] [EMAIL PROTECTED] Ab Barth, [EMAIL PROTECTED] will show up for your choice. Better. It shows a list and you use the arrow keys to get the one you want. 3. when storing alias, if the person's name is included in header, gmail will save it too, for example, if you receive a mail from Ab Barth, [EMAIL PROTECTED], the name and address will both be saved. Automatically. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / [EMAIL PROTECTED] GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Re: text/html vs. text/plain attachments priority
On Sun, Nov 16 2008, Chris Jones wrote: alternative_order .. in my .muttrc is probably not going to be quite as flexible as it should be. Just an example: # Plain as default: message-hook ~A 'alternative_order text/plain' # But not for a special sender: message-hook '~f [EMAIL PROTECTED]' 'unalternative_order *' Cheers, Peter -- http://pmrb.free.fr/contact/