Re: How do you survive without notmuch?
On Thu, Apr 07, 2016 at 07:53:48PM +0200, Andreas wrote: > > Usually when I reach for notmuch it is because I have mismanaged my > > folders. Hmm, that message about blah isn't there - where is it? > > Me too and while it does find the message it does not tell me /where/ it > is. How do you do this? muttjump [1] claims to be able to solve this problem but I did not tested it. I'm usually totally fine with the feature of getting the whole thread of a message (-r thread parameter for notmuch-mutti [2]) macro index,pager ,t \ "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ notmuch-mutt -r thread\ `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ "notmuch: reconstruct thread" Best regards Sebastian Tramp 1. https://github.com/weisslj/muttjump 2. https://notmuchmail.org/notmuch-mutt/ -- WebID: http://sebastian.tramp.name
Re: create multipart/alternative
On Thu, Feb 27, 2014 at 07:18:31AM -0600, David Champion wrote: is it possible to create mulitpart/alternative message parts in the compose screen? This patch adds what you need: https://bitbucket.org/dgc/mutt-dgc/raw/42d6f8d629ad3f0ceb7f4790013d3cec665d0df6/dgc.groupalts Great! Thanks a lot. Will try it and give feedback later ... The group-alternatives binding for the componse menu (where you press 's' to send) combines selected attachments into a multipart/alternative group. The move-up and move-down bindings then allow you to change their order. Sounds like its possible to do exactly what I want with this. There exists some post send filter to achieve this but they do not work in combination with encryption (and I do not have the sent copy in my archive) Another idea: Is it possible to put the complete message to a tool from the compose screen (which can parse and change it completely) and re-read it afterwards? I thinks is would allow a lot of other feature too. I don't know offhand how you would generate the content. MIME is not that hard to write if you know the structure, but I don't know a tool off the top of my head that will generate it for you. Since I would like to add more than just a html alternative based on markdown (e.g. semantic annotation of parts of the message) - I will not use a ready tool but a library. I've experimented with the Swift Mailer PHP Library and its easy enough to use to have fast results. However, if you have one: a trick I have used for things of this flavor is to: * postpone the message * open your postponed folder as a regular mutt mailbox * find the postponed message * edit the raw mesage * save * sync * go back to your regular mutt session * recall the postponed message * finish and send Do you think this can be encoded in a macro? Best regards Sebastian Tramp -- WebID: http://sebastian.tramp.name
Re: disable text wrapping
On Fri, Feb 28, 2014 at 02:40:00PM +0100, YuGiOhJCJ Mailing-List wrote: On Mutt 1.5.21, my editor is Vim 7.3. I don't like when it breaks automatically my lines when I am writing an e-mail. Hi, this is rather a vim than a mutt configuration issue. try set nowrap in addition to set textwidth=0 in your vimrc or directly while you write the mail. source: http://vim.wikia.com/wiki/Toggle_auto-wrap Best regards Sebastian Tramp Is there a way to disable the text wrapping in Mutt? (I saw the wrap setting in ~/.muttrc that can be set to positive, negative or null value but in these 3 cases, the text wrapping is still enabled) -- WebID: http://sebastian.tramp.name pgpVwHmJZINyR.pgp Description: PGP signature
create multipart/alternative
Hi mutt users, is it possible to create mulitpart/alternative message parts in the compose screen? I need to write text/html mails (please don't ask ...) as multipart/alternative. My idea is to write markdown with vim and then convert it to text/html and add it to the message. Currently I'm using this macro for this: macro compose 'escM' pipe-messagecat ~/.cache/mutt/md2html.md cat ~/.cache/mutt/md2html.md | markdown ~/.cache/mutt/md2html.htmlenterattach-file~/.cache/mutt/md2html.htmlenter It works fine but the html part is not included as an alternative part for the text/plain part. There exists some post send filter to achieve this but they do not work in combination with encryption (and I do not have the sent copy in my archive) Another idea: Is it possible to put the complete message to a tool from the compose screen (which can parse and change it completely) and re-read it afterwards? I thinks is would allow a lot of other feature too. Best regards Sebastian Tramp -- WebID: http://sebastian.tramp.name pgpwGyJmdp77u.pgp Description: PGP signature
Re: Encrypting postponed messages
On Thu, Sep 05, 2013 at 06:45:46PM +1200, Chris Bannister wrote: On Wed, Sep 04, 2013 at 05:30:16PM +0100, Óscar Pereira wrote: The subject seems pretty self-explanatory. Use case, you're writing an email, which is already marked as to be sent encrypted, but you have to postpone it. In the meantime offlineimap runs and syncs you mailboxes, and thus your mail which is to be sent encrypted ends up in (say) Gmail's remote folder -- UNencrypted. This seems like an offlineimap issue, rather than anything to do with mutt. indeed - I had similar problems and changed my setup in a way that offlineimap is started only on demand. Currently, that means: 1. if idlemail.py [1] detects new mail in incoming folders 2. after I quit mutt I want to experiment with fsniper [2] in order to start offlineimap automatically when a maildir is changed locally but also without this, these two triggers are fine. Also you could start it by macro the maildir sync key to a macro which syncs and then starts offlineimap. Best regards Sebastian 1. http://www.cc.gatech.edu/~sburnett/posts/2010-11-21-imap-idle.html 2. https://github.com/l3ib/fsniper -- WebID: http://sebastian.tramp.name pgpzNfuzo0Sw4.pgp Description: PGP signature
using a file selection command
Hi there, instead of using the file browser of mutt to select an attachment, I want to start a specific script / application which returns the file I want to attach. more concrete: I want to select one of the most recent edited documents from the desktop index so I do not need to remember where the file is and to browse through many dir levels. Is there a way to configure that somehow? Best regards Sebastian Tramp -- WebID: http://sebastian.tramp.name pgpUAUV1qWA_d.pgp Description: PGP signature
time zone conversion
Hi all, I'm looking for a way to convert the date header to my local time zone in the mail detail view. I'm aware of the index format %D option but need this for the (internal) pager. Any ideas? Best regards Sebastian Tramp -- WebID: http://sebastian.tramp.name
Re: time zone conversion
On Mon, Jan 23, 2012 at 01:32:33PM +, Paul wrote: I'm looking for a way to convert the date header to my local time zone in the mail detail view. I'm aware of the index format %D option but need this for the (internal) pager. Any ideas? This is not fantastic, but it's worked for me: Indeed, this works great. Now I only need to combine that with t-prot but thats not a problem. ST -- WebID: http://sebastian.tramp.name
Re: external file manager
On Wed, Oct 26, 2011 at 11:32:45PM +0200, Christian Brabandt wrote: Would there be interest, to implement an interface to range in the previously mentioned Vim-Plugin? +1 :) - I already use your CheckAttach extension as a submodule from your repo [1] (assuming you are chrisbra :) - and this would be a great enhancement of the extension. Yes that is me. Try the version from github and be sure to have :let g:checkattach_filebrowser='ranger' in your .vimrc. That should be all you need. I had to update to the newest stable version because the old version does not support to choose multiple files. Now it works really great, thanks a lot! Seebi -- WebID: http://sebastian.tramp.name
Re: external file manager
On Wed, Oct 26, 2011 at 09:52:55AM +0200, Christian Brabandt wrote: Would there be interest, to implement an interface to range in the previously mentioned Vim-Plugin? +1 :) - I already use your CheckAttach extension as a submodule from your repo [1] (assuming you are chrisbra :) - and this would be a great enhancement of the extension. Best regards Sebastian Tramp 1. https://github.com/chrisbra/CheckAttach -- WebID: http://sebastian.tramp.name
Re: watch/monitor mailbox and notify new mails
On Sat, Oct 22, 2011 at 07:26:52PM +0800, stardiviner wrote: Maybe fsniper is for you: A tool that monitors a given set of directories for new or modified files then applies rule based scripts https://github.com/l3ib/fsniper I've never tried out myself but its on my roadmap - currently I start my scripts cron based. Best regards Sebastian Tramp I have googled some ways to watch(monitor) mailbox(I use maildir) and Notify when have new mails. First one is use some scripts. I found one on github that monitor maildir can notify. This method should be more simple. Second is use mutt's own status_format = filter '' | to pipe to a script. then script will notify you. but I use sidebar patch, this method can not display status_format any more. I have tried those method. Or maybe write one script to run in cron to watch maildir. Anyway, I have not find good method still. If you have any idea about this. Or if you have some good hints or suggests. please tell me, thanks. -- WebID: http://sebastian.tramp.name
Re: external file manager
On Tue, Oct 11, 2011 at 07:16:13PM +0100, Volker Bouffier wrote: is it possible to use an external file manager, for instance to select an attachment. I like ranger much more than the integrated file manager. This would be a really great feature and I really hope that its not to complicated. Open mutt regarding this would also be more unix-like. BTW: How can you start ranger in a way that you can choose a file and exit after that? Best regards Sebastian Tramp -- WebID: http://sebastian.tramp.name
Re: mairix search
On Thu, May 05, 2011 at 09:08:36PM +0200, Jostein Berntsen wrote: I use mairix, but it seems like mu is being quite actively developed: Yes, mu is quite actively developed. I liked it a fair amount. I just have a feeling that notmuch has a brighter future. I tested the most recent version of mu v. 0.9.5, works great with many useful features. That cfind option is a nice one. This is indeed an interesting feature. Do you use it instead of lbdbq? Seebi -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
On Tue, May 03, 2011 at 10:21:10AM -0400, Tim Gray wrote: I use mairix, but it seems like mu is being quite actively developed: Yes, mu is quite actively developed. I liked it a fair amount. I just have a feeling that notmuch has a brighter future. Does notmuch have a similar feature to mu's cfind? I did not find it in the docu -- but the project name is policy also in terms of documentation :-) Seebi -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
On Tue, May 03, 2011 at 11:20:02AM -0400, Tim Gray wrote: Can you share your config parts regarding notmuch / mutt integration? (or do you use it via emacs?) I don't use it via emacs. The mutt integration is very similar to what you'd do with mairix or mu. A couple of bindings that just run the command line 'notmuch' program with your search terms following. You do need to do a bit of command line piping to turn the filenames that notmuch outputs as search results into symbolic links. Then you jump to a maildir with the results. Though you can run it directly like this, I wrote a little python script that I call instead which gives me readline search history and cleans out the search results automatically when I make a new search. I've attached the script 'notmuch-mutt.py'. Hi Tim, thanks for this resource! Seebi -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
On Tue, May 03, 2011 at 12:26:45AM -0400, Tim Gray wrote: On Apr 29, 2011 at 01:56 PM +0200, Sebastian Tramp wrote: Is searching / indexing with mairix state of the art or is there a better solution available? I am quite happy with that, just wanted to ask ;-). I found that mairix was a lot better for me than nmzmail. I used mairix for quite a bit. I then found mu (and figured out how to compile it on OS X). I liked that even more. Now however, I'm running notmuch as just an indexer. It's pretty fast. I really like it. It's also being actively developed. And the best part in my mind is that it's developed as a library with a command line utility. So my secret dream is that some enterprising developer hooks notmuch directly into mutt. That would be awesome. Sounds interesting. do you think, notmuch is faster than mairix (not that I have a problem with mairix speed, just for our information) Can you share your config parts regarding notmuch / mutt integration? (or do you use it via emacs?) best regards Sebastian Tramp -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
On Mon, May 02, 2011 at 06:00:04PM -0400, Ed Blackman wrote: On Fri, Apr 29, 2011 at 02:08:33PM -0700, Omen Wild wrote: Quoting Ed Blackman e...@edgewood.to on Fri, Apr 29 17:03: In my case, mairixquery is a Perl script that prompts me for the mairix search string, gives me yes or no prompts for whether to search threads or augment previous results, and saves the most recent 100 searches so that I can make edits if the query returns too little or way too much. That sounds really interesting. Any chance you would be willing to share it? Sure. I've attached it. great, it works for me. just a notice for the other: under debian/ubuntu, there is a dependency for the libterm-readline-gnu-perl package ... best regards Sebastian Tramp
Re: mairix search
On Fri, Apr 29, 2011 at 05:03:39PM -0400, Ed Blackman wrote: Hi Ed, this sounds really useful. Since I use tmux, I need to change this macro to control tmux instead but this is not such a problem. Can you provide a download link for your mairix wrappe? thx ST On Fri, Apr 29, 2011 at 01:56:51PM +0200, Sebastian Tramp wrote: I have a question regarding macros in mutt. Currently I use these two macros for searching: macro generic ,f shell-escapemairix search via mairix macro generic ,,f change-folderkill-line=searchenter load the search results mailbox Can I optimize it in the way that after finishing the search with ,f - the result mailbox is automatically loaded? I run mutt inside screen, and use the following macro to switch to a separate window to run a mairix query. It will open mutt on the search folder if the query is successful. Otherwise, it will exit, which returns me to the original screen session (mutt). # prompt for mairix search parameters macro index,pager,browser ,m \ enter-command set my_wait_key=\$wait_key wait_key=noenter\ shell-escapescreen -X screen -t 'mutt search' sh -c 'mairixquery mutt -f =search'enter\ enter-commandset wait_key=\$my_wait_key my_wait_keyenter mairix query In my case, mairixquery is a Perl script that prompts me for the mairix search string, gives me yes or no prompts for whether to search threads or augment previous results, and saves the most recent 100 searches so that I can make edits if the query returns too little or way too much. It doesn't need to be that fancy for this strategy to work for you, assuming you read mutt inside screen. All it has to do is let you enter mairix command line options after the new screen has already been launched. -- Sebastian Tramp WebID: http://sebastian.tramp.name
Re: mairix search
On Sat, Apr 30, 2011 at 02:12:51AM +0100, Christian Ebert wrote: Hi Christian, this is exactly what I wanted. Thanks very much! ST I have a question regarding macros in mutt. Currently I use these two macros for searching: macro generic ,f shell-escapemairix search via mairix macro generic ,,f change-folderkill-line=searchenter load the search results mailbox Can I optimize it in the way that after finishing the search with ,f - the result mailbox is automatically loaded? Is searching / indexing with mairix state of the art or is there a better solution available? I am quite happy with that, just wanted to ask ;-). I use the following shell script for interactive mairix search from within mutt; it also makes a rudimentary attempt to search using a fallback charset for non-ascii strings. #!/bin/sh threads= augment= charset=`printf '%s' $LANG | cut -d . -f 2` fallback=windows-1252 yorn() { local ans printf '%s %s ' $1 (yes/[no]) read -e ans case $ans in y*|Y*) return 0;; *) return 1;; esac } printf '%s\n' Enter mairix query: read -e query test -z $query exit 0 yorn Retrieve thread(s)? threads=--threads yorn Append message(s) to mfolder? augment=--augment query=`echo $query | iconv -f $charset -t UTF-8` mairix $threads $augment $query queryx=`echo $query | iconv -f $charset -t $fallback` if [ $queryx != $query ]; then echo trying $fallback mairix $threads --augment $queryx fi muttrc: set my_mairixfolder=`awk -F '=' '/^mfolder/ { print $2 }' ~/.mairixrc` macro index,pager ,m \ enter-command set my_wait_key=\$wait_key wait_key=noenter\ shell-escape mairixquery.shenter\ enter-command set wait_key=\$my_wait_key my_wait_keyenter\ change-folder+$my_mairixfolder mairix query macro browser ,m \ enter-command set my_wait_key=\$wait_key wait_key=noenter\ shell-escape mairixquery.shenter\ enter-command set wait_key=\$my_wait_key my_wait_keyenter\ exitchange-folder+$my_mairixfolder mairix query For reverse detection of the original mails I recommend muttjump: https://github.com/weisslj/muttjump c -- Sebastian Tramp WebID: http://sebastian.tramp.name
mairix search
hi, I have a question regarding macros in mutt. Currently I use these two macros for searching: macro generic ,f shell-escapemairix search via mairix macro generic ,,f change-folderkill-line=searchenter load the search results mailbox Can I optimize it in the way that after finishing the search with ,f - the result mailbox is automatically loaded? Is searching / indexing with mairix state of the art or is there a better solution available? I am quite happy with that, just wanted to ask ;-). thanks and best regards Sebastian Tramp -- Sebastian Tramp WebID: http://sebastian.tramp.name