Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Luis Mochan
I use multiple space separated labels using only one X-label field to locally to classify my emails. I limit them with ~y and made some scripts to assign/edit them. Regards, Luis On Wed, Dec 16, 2020 at 03:42:07PM +0100, Marcus C. Gottwald wrote: > > Dear fellow Mutt users, > > I have incoming

Re: Muttprint

2018-03-07 Thread Luis Mochan
On Thu, Mar 08, 2018 at 09:42:02AM +1100, Brian Salter-Duke wrote: > Is there a recent version of muttprint? After an upgrade of Ubuntu to 17.10, I > get this error:- > > $* is no longer supported. Its use will be fatal in Perl 5.30 at > ./bin/muttprint line 1649. > String found where operator

Re: Emacs automatic line wrapping

2017-08-03 Thread Luis Mochan
On Wed, Aug 02, 2017 at 08:49:30PM -0700, Ian Zimmerman wrote: > On 2017-08-02 21:47, Jason wrote: > > > I am using emacs24 for my text editor with mutt (in a terminal). > > How can I set it to automatically wrap the lines at a certain number > > of characters? > > "M-x auto-fill-mode" will do

[SPAM?] Re: [SPAM?] Re: Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-16 Thread Luis Mochan
On Fri, Sep 16, 2016 at 11:45:44AM -0300, Marcelo Laia wrote: > On 15/09/16 at 08:10am, Luis Mochan wrote: > ... > When I press > > Shift+y followed by s in index mode view, current body message is saved inside > $HOME/attachments/ as textfile0 name. Yes. The text parts of the

[SPAM?] Re: [SPAM?] Re: [SPAM?] Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-15 Thread Luis Mochan
On Thu, Sep 15, 2016 at 11:33:41AM +0200, Richard Z wrote: > On Thu, Sep 15, 2016 at 10:53:02AM +1000, Cameron Simpson wrote: > > On 14Sep2016 16:12, Are Troi wrote: > > > Last night at a technical talk I lamented the loss around 5 years ago > ... > tried ripmime and munpak

[SPAM?] Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-15 Thread Luis Mochan
On Thu, Sep 15, 2016 at 07:55:12AM -0300, Marcelo Laia wrote: > On 14/09/16 at 08:06pm, Luis Mochan wrote: > > > Maybe you could use the program 'ripmime' directly from bash. I found > > it in the debian repositories. I use it manually through a mutt macro > > > >

[SPAM?] Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread Luis Mochan
On Wed, Sep 14, 2016 at 04:12:48PM -0700, Are Troi wrote: > Hi All, > > Last night at a technical talk I lamented the loss around 5 years ago > from Fedora of command-line tools to extract email attachments from a > BASH script and a colleague told me Mutt can do this. > ... Maybe you could use

[SPAM?] Re: add the content of another email to new message

2016-08-16 Thread Luis Mochan
To this end I always run several instances of mutt simultaneously under tmux. One with inbox, others with inbox-read-only, mbox, and sent. On Wed, Aug 17, 2016 at 08:17:43AM +1000, Cameron Simpson wrote: > On 16Aug2016 19:58, Jethro Tull wrote: > > I'm using vim as editor

Re: Very annoying quirk in mutt 1.5.24 on xubuntu 16.04

2016-05-13 Thread Luis Mochan
> > ...Why would you ever exit Mutt anyway? =8^) > > > :-) > > On my desktop machine I *don't* often exit from mutt as it tends to > have a dedicated terminal window. However I ssh into my dekstop > machine from all sorts of remote locations using various different > means and then multiple

Re: utf-8 characters not shown

2016-04-26 Thread Luis Mochan
Hello, I was able to see the cat and the mouse in K9/Android, but not in mutt under Debian/stretch running in an xterm. However, while I write this reply using emacs as my editor, I see the codes 01F 40B and 01F 401, so I guess the characters were not removed by mutt, but my system is lacking the

Re: How do you survive without notmuch?

2016-04-07 Thread Luis Mochan
On Thu, Apr 07, 2016 at 10:50:13PM +0200, bastian-muttu...@t6l.de wrote: > On 07Apr16 19:53 +0200, Andreas wrote: > > Am 07.04.2016 um 01:19 schrieb Cameron Simpson: > ... > By now I cannot imagine any solution which is more flexible (for me). > Comments welcome! I do basically the same, with some

Re: Is there a tool I can use to convert a whole email to webpage or something alike?

2015-11-19 Thread Luis Mochan
Maybe a script calling mhonarc (though I haven't used for some time). Luis On Mon, Nov 16, 2015 at 12:03:46PM +0800, Magicloud Magiclouds wrote: > Hi, > > Using Mutt, one pain is dealing with multi-media emails. Yes, with > w3m, I could almost read the email. And I could save the pictures then >

Re: Invoking an alternative command on a MIME part

2015-04-28 Thread Luis Mochan
Oh, but now you need a different pipe depending on the file type, e.g. for PDF and PNG. I don't really want that as mailcap already handles this. I use it only when I want to override mailcap for whatever reason, and then I specify the program I want to use in the pipe command. Otherwise I

Re: Invoking an alternative command on a MIME part

2015-04-27 Thread Luis Mochan
What I do in similar situations is pipe the attachment to a helper (I call it muttfilter) that accepts as first argument a file name, as second argument a command name and as further arguments any options to that command. The helper copies the attachment to the filename, runs the command with all

Re: mutt's counterpart feature to gmail's archive?

2015-04-16 Thread Luis Mochan
BTW, you would also need 'formail' Regards, Luis ps. I just read about notmuchfs. Looks nice too. On Thu, Apr 16, 2015 at 05:34:57PM +0200, M. Fioretti wrote: On 2015-04-16 16:33, Luis Mochan wrote: Dear Marco, Please find attached my perl script. thanks for the script and the clear

Re: mutt's counterpart feature to gmail's archive?

2015-04-16 Thread Luis Mochan
On Thu, Apr 16, 2015 at 07:08:50AM +0200, M. Fioretti wrote: On 2015-04-16 03:28, Luis Mochan wrote: The system is not too polished but serves me fine and has some similarities to gmails label system. If interested, I can share it. I **am** interested, please do it Dear Marco, Please find

Re: mutt's counterpart feature to gmail's archive?

2015-04-15 Thread Luis Mochan
What is mutt's counterpart feature to gmail's archive? what is used here? I don't want to delete messages, but I want to have them locally searchable, like gmail can do. What is the best practice? Just to move to another folder? It might not be the 'best' but I made a perl program to edit

Re: Disabling specific SMTP authenticator

2014-08-19 Thread Luis Mochan
I don't think i have a .msmtprc file, what program is that associated with? msmtp, lightweight smtp client, http://msmtp.sourceforge.net/

mask

2013-11-18 Thread Luis Mochan
In my email setup I recently changed from mboxes to maildirs. I access my maildirs directly from my office and through imap from home using dovecot. When I made the conversion using dovecot's dsync program the maildir folders acquired a leading dot in their names. I found that agreeable, as it

Re: I have forgotten ...

2013-06-20 Thread Luis Mochan
I use alt-q. On Thu, Jun 20, 2013 at 08:35:25AM -0600, Paul E Condon wrote: I am having a mental block, and cannot remember how to wrap text in Emacs while composing an email. Specifically, I need help remembering what key, or keys, should be pressed after selecting a region of text to get

Re: using a file selection command

2013-05-10 Thread Luis Mochan
To a degree. In edit mode, add an Attach: header. When you exit edit mode, mutt will attach the named file. Thanks! Very nice trick. -- o W. Luis Mochán, | tel:(52)(777)329-1734 /(*) Instituto de

Re: Long urls - update

2013-04-02 Thread Luis Mochan
Dear Kyle, ... /etc/urlhandler/url_handler.sh is a shell script that obtains its url doing '$url=$1'. Ahh, indeed, that could cause a problem. Variables are substituted simply, in an as if typed manner. Take this simple example: ... Thanks for your explanation. As I wrote last night,

Re: Long urls - update

2013-04-02 Thread Luis Mochan
Hello James, You are not using the program correctly. extract_urlview has worked perfectly with mutt, for me, for probably about 2 years now. Why bother trying to integrate it into your shell script, just use it as a stand-alone program and don't use urlview at all. the contents of my

Re: Long urls - update

2013-04-01 Thread Luis Mochan
did was modify the two 'system' calls. In a previous email to the list I included the patch. Ahh, see it's included in a message by Luis Mochan in this thread. By the way, the author of the program, Kyle Wheeler, wrote to me that he expects that adding the line COMMAND /etc/urlview

Re: Long urls - update

2013-04-01 Thread Luis Mochan
By the way, the author of the program, Kyle Wheeler, wrote to me that he expects that adding the line COMMAND /etc/urlview/url_handler.sh '%s' to the configuration file ~/.extract_urlview would be enough to solve the problem (with %s between quotes). I believe I had tried that and that

Re: Long urls - update

2013-04-01 Thread Luis Mochan
Hi Kyle, I'm the author of extract_url.pl, so perhaps I can shed some light here. Thanks. The *correct* place to fix the issue of escaping (or otherwise sanitizing) ampersands is in the sanitizeuri function (line 208). The current version of extract_url.pl uses this: sub

Re: Long urls - update

2013-04-01 Thread Luis Mochan
Unix shell handles variables abysmally. You need to help it a lot to do the right thing. *Always* quote variables, else if they're empty they tend to blow up on you. Thanks for the advice! Your script did work from the command line, but it was not enough when called from extract_url.pl.

Re: Long urls - update

2013-03-31 Thread Luis Mochan
Dear John, On Sat, Mar 30, 2013 at 05:15:28PM +0100, John Niendorf wrote: This looks really great, but where do I put the script? I made it exicutable and put it in my path and I got the error that it wasn't there. I coped it to ~/ and got the same error. John

Re: Long urls - update

2013-03-31 Thread Luis Mochan
I found a mistake in the extract_url.pl program: it doesn't escape ampersands when present in the url, so when the command to actually view the url is invoked, the shell gets confused. I made a quick fix by substituting $command=~s//\\/g before running command.

Re: Long urls - update

2013-03-31 Thread Luis Mochan
Line 633? 634? So: # $command =~ s/%s/'$url'/g; $command=~s//\\/g; Sorry for not having given the line numbers, etc. I actually made changes around 522 and 647, and defined a new subroutine (I named it wlmsanitize) which modifies the command to run. A patch follows. I'm a perl

Re: Run command on an attachment

2013-02-27 Thread Luis Mochan
Dear Salve, Thomas, On Wed, Feb 27, 2013 at 08:36:44PM +0100, Thomas Wallrafen wrote: Hello once more, On Wed, Feb 27, 2013 at 08:28:43PM +0100, Thomas Wallrafen wrote: Hej, On Wed, Feb 27, 2013 at 08:14:13PM +0100, Salve Håkedal wrote: ... Is it possible to scp an attachment

Re: sidebar patch

2013-02-11 Thread Luis Mochan
On Tue, Feb 12, 2013 at 08:02:39AM +1100, Brian Salter-Duke wrote: On Mon, Feb 11, 2013 at 09:53:17AM +0100, Scott Stevenson wrote: On Mon, Feb 11, 2013 at 06:56:46AM +1100, Brian Salter-Duke wrote: On Sun, Feb 10, 2013 at 06:46:11PM +0100, Scott Stevenson wrote: On Sun, Feb 10, 2013 at

Re: sidebar patch

2013-02-11 Thread Luis Mochan
On Tue, Feb 12, 2013 at 08:29:29AM +1100, Brian Salter-Duke wrote: ... Under Debian you could run sudo update-alternatives --config mutt to choose which mutt (patched or not) to run by default. I guess that Ubuntu is similar. Thus, it was not really necessary to

Re: sidebar patch

2013-02-11 Thread Luis Mochan
On Tue, Feb 12, 2013 at 09:22:20AM +1100, Brian Salter-Duke wrote: ... I guess there is some confusion: Synaptic, like aptitude and apt-get, is for installing and removing packages. Update-alternatives is to choose which program to use when you have several programs installed that offer

Re: mktemp: failed to create file via template

2013-02-05 Thread Luis Mochan
I use mutt under Debian/wheezy. I don't have the directory /home/user/tmp and yet I don't have this problem. Where is the template for the temporal files defined? Best regards, Luis On Tue, Feb 05, 2013 at 06:57:15PM +0100, Csanyi Pal wrote: Hi, after the upgrade of my operating system

Re: headers in mail vs forward vs bounce

2013-02-01 Thread Luis Mochan
Thanks! This must be it! I'm using mutt as distributed by Debian/testing. I'm attaching the output of mutt -v in case it helps to completely identify my version. Thanks and best regards, Luis On Fri, Feb 01, 2013 at 04:15:58AM +, Michael Elkins wrote: On Fri, Feb 01, 2013 at 04:10:52AM

Re: headers in mail vs forward vs bounce

2013-01-30 Thread Luis Mochan
Could have to do with your character set, or whether the email itself is encoded as 7 bit or 8 bit, I believe you are right, but I don't know though how to control this. On the other hand, forwarding mails, as opposed to bouncing them, has not failed. but I'm suspecting it may have more to

Re: headers in mail vs forward vs bounce

2013-01-29 Thread Luis Mochan
message. Regards, Luis On Tue, Jan 29, 2013 at 09:23:07AM -0800, Will Yardley wrote: On Mon, Jan 28, 2013 at 10:33:36PM -0600, Luis Mochan wrote: I mean the fullname. For example, my alias file contains the line alias mochan Luis Mochán moc...@fis.unam.mx so if I bounce a mail

Re: headers in mail vs forward vs bounce

2013-01-28 Thread Luis Mochan
, Will Yardley wrote: On Sat, Jan 26, 2013 at 12:34:55PM -0600, Luis Mochan wrote: I wonder if someone knows how to 'bounce' a message to a recipient whose name contains special characters, such as the accents áéíóú? I can 'forward', but 'bounce' fails. The manual http://www.mutt.org/doc

Re: headers in mail vs forward vs bounce

2013-01-26 Thread Luis Mochan
could remove non-ascii characters from my alias file, but I'd rather stick to correct orthography, if possible. (Sorry for insisting; won't ask again). Thanks and regards, Luis On Wed, Jan 23, 2013 at 11:35:17AM -0600, Luis Mochan wrote: Some names in my alias file include accented characters

headers in mail vs forward vs bounce

2013-01-23 Thread Luis Mochan
Some names in my alias file include accented characters such as áéíóú. When I compose/forward a message to someone with those characters in his name the message has no problem, but when I bounce a message delivery fails with the message INVALID HEADER Non-encoded 8-bit data. Is there a fix?

Re: Making changes by edit-type persistent

2013-01-21 Thread Luis Mochan
I don't believe it is (with Mutt). You'd have to edit the raw message with a text editor. I sometimes have had a related problem; not persistency but simply being able to choose which command to run in order to open an attachment. For example, I when I receive a pdf attachment I open it with

Re: duplicates and x-labels

2013-01-11 Thread Luis Mochan
On Wed, Jan 09, 2013 at 10:10:52PM -0600, Luis Mochan wrote: On Wed, Jan 09, 2013 at 10:04:30PM -0600, Luis Mochan wrote: ... It seems that after adding an X-Label to a message locally, offlineimap doesn't propagate that change back to the mail server. I meant the imap server. I

Re: duplicates and x-labels

2013-01-09 Thread Luis Mochan
:54PM -0600, Luis Mochan wrote: I have an occasional but somewhat annoying problem. I made a program to edit X-Labels to somewhat emulate the behavior of gmail. When using my mail account remotely I use IMAP to access a dovecot server. Everything works fine, but occasionally, the network fails

Re: duplicates and x-labels

2013-01-09 Thread Luis Mochan
On Wed, Jan 09, 2013 at 10:04:30PM -0600, Luis Mochan wrote: ... It seems that after adding an X-Label to a message locally, offlineimap doesn't propagate that change back to the mail server. I meant the imap server.

duplicates and x-labels

2013-01-05 Thread Luis Mochan
I have an occasional but somewhat annoying problem. I made a program to edit X-Labels to somewhat emulate the behavior of gmail. When using my mail account remotely I use IMAP to access a dovecot server. Everything works fine, but occasionally, the network fails and the connection is broken before

Re: Putting table in email?

2012-11-20 Thread Luis Mochan
Emacs' org-mode permits editing of text tables. There is an orgtbl minor mode to edit tables outside of an .org file. Regards, Luis On Tue, Nov 20, 2012 at 06:59:57AM -0800, Ray Van Dolson wrote: On Tue, Nov 20, 2012 at 09:32:16AM -0500, Peter Davis wrote: I'm using mutt on OS X, with emacs

Re: Marking mail as read after move

2012-11-01 Thread Luis Mochan
I have a related question: after I edit a message (to add X-labels with an ad-hoc editor), it is marked as new. I would like it to have the same flags as it had before editing. How can it be done? Regards, Luis On Fri, Nov 02, 2012 at 01:04:20AM +0200, Nikola Petrov wrote: Hi, Is there a

Re: select wrapped lines / click long url / bug 3453

2012-10-23 Thread Luis Mochan
On Tue, Oct 23, 2012 at 08:38:56PM +0530, Mandar Mitra wrote: ... My setup works, but some might call it convoluted. I run mutt within a multi-term running inside emacs, and use emacsclient as the viewer + editor. I put the cursor anywhere on the URL and type C-xo to open it in a browser

Re: Android MUA does not display mail correctly because of Content-Disposition in header

2012-09-27 Thread Luis Mochan
I don't recall any problem reading with Android 2.1 mail sent by mutt. I use K-9 as my Android mail client in my phone. Best regards, Luis On Wed, Sep 26, 2012 at 11:06:00PM +0200, Ambrevar wrote: [Mutt 1.5.21 on FreeBSD and Arch Linux] Hi My fellows recently let me aware of the fact that

Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-16 Thread Luis Mochan
I used to have my password in the .muttrc file; bad mistake (I found out after mailing my rc file to this list). After introducing it manually for awhile, I wrote it in a small file with restricted permissions (set imap_pass='my_password') which I source from the rc file (source

Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-16 Thread Luis Mochan
What exactly is the problem with entering the password manually? Laziness. Not a very strong reason, but I just wondered if restricting the permissions of the file would be enough protection. From the answers so far, I gather not. Related to my previous question, I have a text file,

resend

2012-08-08 Thread Luis Mochan
Due to a misconfiguration in my mail server, I sent several messages that were not delivered but were sent back to me enclosed in a failure notification . Now that I have fixed the problem I want to send those messages again. What is the best procedure to do it? Does mutt have something similar to

Re: resend

2012-08-08 Thread Luis Mochan
On Wed, Aug 08, 2012 at 03:35:35PM -0400, Nathan Stratton Treadway wrote: On Wed, Aug 08, 2012 at 12:58:05 -0500, Luis Mochan wrote: send those messages again. What is the best procedure to do it? Does mutt have something similar to the emacs function 'rmail-retry-failure' to strip away

Re: resend

2012-08-08 Thread Luis Mochan
Thanks Paul, The problem is that I don't want to bounce the complete message; first I want to strip the failure notification part. Regards, Luis On Wed, Aug 08, 2012 at 03:16:29PM -0400, Paul Hoffman wrote: On Wed, Aug 08, 2012 at 12:58:05PM -0500, Luis Mochan wrote: Due to a misconfiguration

Re: resend

2012-08-08 Thread Luis Mochan
On Wed, Aug 08, 2012 at 04:05:29PM -0500, Luis Mochan wrote: On Wed, Aug 08, 2012 at 03:35:35PM -0400, Nathan Stratton Treadway wrote: On Wed, Aug 08, 2012 at 12:58:05 -0500, Luis Mochan wrote: send those messages again. What is the best procedure to do it? Does mutt have something

Re: alias

2012-07-28 Thread Luis Mochan
Thanks John for change of cipher suggestion. My problem is though when I am far away from my office. Regards, Luis the On Fri, Jul 27, 2012 at 03:53:36PM +, John Long wrote: On Fri, Jul 27, 2012 at 10:20:16AM -0500, Luis Mochan wrote: Thanks everybody for their answers and suggestions. I

Re: alias

2012-07-27 Thread Luis Mochan
On Fri, Jul 27, 2012 at 12:06:00PM +, John Long wrote: On Fri, Jul 27, 2012 at 01:57:02PM +0200, SK wrote: ... I too have this problem. I use SSH to connect to a remote server and run mutt inside a tmux session, But I don't know how to view attachments or more importantly attach

Re: alias

2012-07-27 Thread Luis Mochan
, Jul 27, 2012 at 02:18:59PM +, John Long wrote: On Fri, Jul 27, 2012 at 08:22:20AM -0500, Luis Mochan wrote: Maybe this is a dumb question: as we can use IMAP to access remote mailboxes, could we also use it to access other remote files with configuration commands and 'source' them

alias

2012-07-26 Thread Luis Mochan
I receive my email at a desktop in my office and I access it through mutt at my office and remotely through my laptop using IMAP. Thus, I have configuration files at my desktop and at my laptop. However, there are parts of the configuration which should be identical, such as my list of alias and a

Re: alias

2012-07-26 Thread Luis Mochan
, but my network is not too reliable, so a local mutt and a remote IMAP server seems to have worked best for me, with the small annoyance of duplicated configuration files. Regards and thanks, Luis On Thu, Jul 26, 2012 at 10:29:49PM -0400, Patrick Shanahan wrote: * Luis Mochan moc...@fis.unam.mx

Re: alias

2012-07-26 Thread Luis Mochan
Dear Leo, Maybe I don't know enough about tmux (nor screen). How do you get to the mail server/mutt program? Through a ssh session? How do you visualize attachments? Do you use the -X option of ssh? Does tmux offer a tools for connecting to the server? Anyway, thanks for your suggestions. Best

Re: Thank you for Mutt

2012-07-24 Thread Luis Mochan
On Tue, Jul 24, 2012 at 06:29:33PM +0100, Joe McCool wrote: On Tue, Jul 24, 2012 at 6:19 PM, stargr...@stargrave.org wrote: Thanks to all the Mutt developers, contributors, and user community. Mutt is a great app! It doesn't suck at all. Joining in! Really, Mutt is absolutely the best

Re: archive messages in gmail

2012-07-22 Thread Luis Mochan
AAH! I get it. That's because you have trash= set to Google's Trash, which is how you tell it that you want things purged forever. So $ obeys the trash= variable, which trashes it completely. If you drop trash= and use my macros instead for deleting, which actually

Re: archive messages in gmail

2012-07-20 Thread Luis Mochan
On Thu, Jul 19, 2012 at 01:38:21PM -0700, Robin Lee Powell wrote: On Tue, Jul 17, 2012 at 06:56:19PM -0500, Luis Mochan wrote: I have used gmail from mutt occasionally using the attached rc file. Today I decided to clean my gmail account, deleting some messages and saving others

archive messages in gmail

2012-07-17 Thread Luis Mochan
I have used gmail from mutt occasionally using the attached rc file. Today I decided to clean my gmail account, deleting some messages and saving others in their corresponding folders under, for example =here or =there (under imaps://imap.gmail.com:993/). Things seemed to be working well. After

Re: archive messages in gmail

2012-07-17 Thread Luis Mochan
I forgot to attach the rc file, sorry. Regards, Luis On Tue, Jul 17, 2012 at 06:56:19PM -0500, Luis Mochan wrote: I have used gmail from mutt occasionally using the attached rc file. Today I decided to clean my gmail account, deleting some messages and saving others in their corresponding

Re: archive messages in gmail

2012-07-17 Thread Luis Mochan
to learn gmail's keyboard shortcuts). Best regards, Luis On Wed, Jul 18, 2012 at 01:44:30AM +0100, James Freer wrote: On 18 July 2012 01:17, Luis Mochan moc...@fis.unam.mx wrote: I forgot to attach the rc file, sorry. Regards, Luis On Tue, Jul 17, 2012 at 06:56:19PM -0500, Luis

Re: Two dictionaries in emacs to compose

2012-07-08 Thread Luis Mochan
Thanks! It solves my similar problem with Spanish and English. I used castellano8 instead of russian below. Regards, Luis On Sat, Jul 07, 2012 at 06:49:27AM -0700, fe...@crowfix.com wrote: On Sat, Jul 07, 2012 at 10:03:20AM -0300, Marcelo Luiz de Laia wrote: Hello, I use emacs to compose

Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread Luis Mochan
# To use a sensible browser to view HTML attachments from mutt, add the # following line to the .mailcap file. # # text/html; /path/to/mutt_browse %s # # AUTHOR # Luis Mochan moc...@fis.unam.mx # Shamelessly adapted from mutt_netscape by # Gary A. Johnson garyj

Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread Luis Mochan
Thanks Chris! You're right (it was a fast translation from Spanish). Regards, Luis On Sat, Jun 23, 2012 at 04:57:04AM +1200, Chris Bannister wrote: On Fri, Jun 22, 2012 at 09:38:10AM -0500, Luis Mochan wrote: # DESCRIPTION # Runs a browser on a copy of a file, and sleeps for a while

Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread Luis Mochan
David, Thanks for the suggestion! Luis On Fri, Jun 22, 2012 at 12:50:02PM -0500, David Champion wrote: * On 22 Jun 2012, Luis Mochan wrote: I guess a solution used for browsing html attachments (discussed here some time ago; see attached perl script) may be adapted for running

Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread Luis Mochan
But that would defeat the purpose of the copy which is to have a stable file for LibreOffice to read while allowing mutt to wipe and delete its temporary file. A hard link would work if it wasn't that mutt wipes the file before unlinking it. I guess not. If I understand correctly, the file

Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread Luis Mochan
On Fri, Jun 22, 2012 at 11:27:23AM -0700, Gary Johnson wrote: On 2012-06-22, Luis Mochan wrote: But that would defeat the purpose of the copy which is to have a stable file for LibreOffice to read while allowing mutt to wipe and delete its temporary file. A hard link would work

Re: mutt, html and chrome

2012-05-16 Thread Luis Mochan
Dear Marco, Of course, simplicity is usually best! Thanks! Luis This seems more like an hack but it works most of the times: text/html; /usr/bin/sensible-browser '%s' sleep 2; ... text/html; /usr/bin/iceweasel '%s' sleep 2; ... --

mutt, html and chrome

2012-05-15 Thread Luis Mochan
Very recently I started having a curious situation when I open the html version of messages with mutt. My default browser is 'chrome'. Typically, in mutt I press 'v', I find the html message from the list, I press return and the message is displayed in a new window in my running 'chrome'.

Re: mutt, html and chrome

2012-05-15 Thread Luis Mochan
Looks more like mutt is handing over the URI file:///tmp/mutt.html to your browser and before this has time to fetch the file, mutt has deleted it again; depends on your configuration in .mailcap I'm using the system's defaults since some long time ago. I guess the relevant lines in my

Re: mutt, html and chrome

2012-05-15 Thread Luis Mochan
wrote: Luis Mochan schrieb am 15.05.2012 um 15:22 (-0500): ... IIRC there was an issue where the file would get deleted before the browser would get its hands on it. There's a set of Python scripts that fixes this problem: https://bitbucket.org/blacktrash/muttils Relevant Mutt

Re: mutt, html and chrome

2012-05-15 Thread Luis Mochan
-0500, Luis Mochan wrote: Thanks Michael, I'll try that when I get to my office. I found an alternative solution at http://www.spocom.com/users/gjohnson/mutt/#html by running a simple script that saves the file and then call's the browser. Best regards, Luis

Re: mutt and stdin

2012-04-17 Thread Luis Mochan
On Tue, Apr 17, 2012 at 01:10:43PM -0300, Andrei Mikhailov wrote: Thank you ! I think I now understand, more or less, why it does not work as expected. Perhaps my question is more about Linux, than about Mutt. What I really want to achieve is the following: echo mydata | myscript.sh

Re: Editing multiple messages with bash

2012-04-02 Thread Luis Mochan
I made an enhanced version of editlabel available at http://sourceforge.net/projects/editxlabel/ It handles tag-prefix but it still edits messages one at a time. However, I added a history mechanism so that adding the same labels to multiple files is relatively easy. Regards, Luis On Tue,

Re: Macro to move mail to trash in Gmail.

2012-01-12 Thread Luis Mochan
Acoording to the manual, there is a variable: resolve Type: boolean Default: yes When set, the cursor will be automatically advanced to the next (possibly undeleted) message whenever a command that modifies the current message is executed. I guess unsetting 'resolve' would help. Regards,

Re: flags on re-edited message

2012-01-04 Thread Luis Mochan
of all of them. On Tue, Jan 03, 2012 at 09:54:13PM -0600, Luis Mochan wrote: Hello, After I re-edit a message I have sent or a message I have received, usually to set or modify the X-Labels header, I loose the flags of the message. For example, if I read a message, reply to it and later edit

Re: flags on re-edited message

2012-01-04 Thread Luis Mochan
Mistake: I meant 'replied' instead of 'read' flag. On Wed, Jan 04, 2012 at 12:58:30PM -0600, Luis Mochan wrote: Well, I found today that if I remove the New flag, the Read flag becomes visible if I had read the original message, so that flag is not actually lost, but only hidden by the New

flags on re-edited message

2012-01-03 Thread Luis Mochan
Hello, After I re-edit a message I have sent or a message I have received, usually to set or modify the X-Labels header, I loose the flags of the message. For example, if I read a message, reply to it and later edit it to set its X-Labels, the original message is marked for deletion and the new