Re: mutt's counterpart feature to gmail's archive?
On 16.04.15 00:32, Quolick wrote: What is mutt's counterpart feature to gmail's archive? what is used here? Well, I have procmail deliver incoming mail to about a dozen unread mailboxes, one per list, etc. Then at least 90% are deleted before or after reading, depending on the subject. The few worth keeping go into 1160 mailboxes (ATM), 58 of them mutt-related. It's a bit harder to keep track of the 422 for LinuxCNC, so I use a trivial bash function to list a subclass of mailboxes. That's often quicker than e.g. s mutttabtab and then scrolling down the list for the best topic match. (I generally don't archive until a thread has become quiet, and may then put them all in a mailbox only obliquely related to the subject lines, if the useful information has drifted. Or even split them.) 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? Once they're in subject-specific mailboxes, then a body search in mutt is often sufficient to find a keyword with a good chance of being a tag for relevant information. If everything is in one chaotic melting pot, then that avenue is generally useless. If the good oil might be in any of the 58 mutt mailboxes, then an egrep of ~/mail/mutt* is cheap radar. A subsequent body search in mutt, in one or two files, is then often all that is needed. The egrep is worth doing, because once in a while the most relevant post is still in the delivery mailbox, not yet archived. Erik
Re: mutt's counterpart feature to gmail's archive?
On 16.04.2015, Suvayu Ali wrote: ..I just tag it archived, and it disappears from my virtual folder. The physical message stays in the original mailbox as before. Interesting. To what degree does this actually penalize performance? I'm using good old procmail to mak a copy of every mail that made it to my inbox into a folder called archive..
Re: mutt's counterpart feature to gmail's archive?
On Thu, Apr 16, 2015 at 03:21:48PM +0200, Heinz Diehl wrote: On 16.04.2015, Suvayu Ali wrote: ..I just tag it archived, and it disappears from my virtual folder. The physical message stays in the original mailbox as before. Interesting. To what degree does this actually penalize performance? I'm using good old procmail to mak a copy of every mail that made it to my inbox into a folder called archive.. Well, if the virtual folder is big, opening the folder can take a while. But the tagging part is instantaneous. I still limit my virtual folders to show only the first X messages. Where X can vary between 300 to a thousand or so. That said, I can always access all messages via search, or by visiting the real folder. -- Suvayu Open source is the future. It sets us free.
Re: Do not mark as read automatically
* Thomas Schaper thomas.tim.scha...@gmail.com [04-16-15 11:39]: Hello all, I would like mutt to not mark my message as read when I open it but only when remove the 'N' flag. Is this possible or is there a workaround? look at the set command in man muttrc -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
Do not mark as read automatically
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello all, I would like mutt to not mark my message as read when I open it but only when remove the 'N' flag. Is this possible or is there a workaround? Kind regards, Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBCgAGBQJVL9XjAAoJEDytl03sadYXKKgH/0+LayU/VGOr/8ivKUEtODXM yI47yMVyCZXsxdbjcYHICcxcekp5jjjgothHbuox39UEWDvaelsSiMsE0X0ZE0Ls LdcwSA/NSiXvNZdqyF8QRQDXG7oLECMlZjKfAZmTEa+8okMrQAYPw7IYJ37Ee8N7 FubgcQIBCrWiIqk86fKmxDtT0HcLnJ31UCrjz4taVULX0faACR+7hiJSUQwFiSyt U3QIz3be/6s8z3gSyzh17HHxuLPXsV1E/7EbbNY+5V7+5lodTAswbTFmD7MA7LoJ edVTkwjpvMBM3rdqbDjJUHE93yALPErCrBlLOuNd+lOPsVOYPUgSH5qW5yrlrso= =wzyq -END PGP SIGNATURE-
Re: mutt's counterpart feature to gmail's archive?
On 2015-04-16 16:33, Luis Mochan wrote: Dear Marco, Please find attached my perl script. thanks for the script and the clear explanations! Marco -- http://mfioretti.com
Re: mutt's counterpart feature to gmail's archive?
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 explanations! Marco -- http://mfioretti.com -- o W. Luis Mochán, | tel:(52)(777)329-1734 /(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
Re: mutt's counterpart feature to gmail's archive?
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 attached my perl script. You should have the packages Term::Readline (I use Term::Readline::Gnu) and File::Copy. It takes two arguments, an action and the name of the file with the message to edit. The action should be one of menu, edit, append, remove, show, clean, list (in practive I only use 'edit'). If a change is performed, the message is replaced by the edited version. To use the programs I made some mutt macros. The relevant part of my muttrc file is: # labels # remember original editor. # Might not be what you want if editor is changed afterwards set my_editor=$editor macro index y enter-commandset editor=\~/.mutt/editlabel.pl edit\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Edit labels macro index YE enter-commandset editor=\~/.mutt/editlabel.pl edit\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Edit labels macro index YM enter-commandset editor=\~/.mutt/editlabel.pl menu\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Loop over label menu macro index YA enter-commandset editor=\~/.mutt/editlabel.pl append\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Append labels macro index YR enter-commandset editor=\~/.mutt/editlabel.pl remove\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Remove labels macro index YS enter-commandset editor=\~/.mutt/editlabel.pl show\\n\ tag-prefixedit\ enter-commandset editor=\$my_editor\\n Show labels macro index YC enter-commandset editor=\~/.mutt/editlabel.pl clean\\n\ tag-prefixeditnext-undeleted\ enter-commandset editor=\$my_editor\\n Clean labels macro index YL enter-commandset editor=\~/.mutt/editlabel.pl list\\n\ tag-prefixedit\ enter-commandset editor=\$my_editor\\n List labels macro index YX limit!~h X-Label:enter Limit to unlabelled macro index YY limit~h X-Label:enter Limit to labelled macro index \Cy limit~y Limit view to label #show labels in index set index_format=%4C %Z %{%b %d} %-15.15L %?M?(#%03M)(%5l)? %?y?(%.20Y) ?%s #display labels in messages unignore X-Label: ## In practice I only use YX to display only unlabelled (i.e., unprocessed messages), YY to only show processed messages (afterwards I use T to tag those messages and move all of them to mbox) y to insert/add/modify space separated labels \Cy to display only messages with a given label The program has history and completion to ease label edition. To that end, I use a file .mutt/Xlabels to store all the previously used labels. I use this system under debian linux using perl 5.18 (haven't upgraded it) under perlbrew. Regards, Luis Thanks, Marco -- http://mfioretti.com -- o W. Luis Mochán, | tel:(52)(777)329-1734 /(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ Consider using GnuPrivacyGuard https://www.gnupg.org/ My key: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB, yours? #! /usr/bin/env perl use strict; use warnings; use Fcntl qw(:DEFAULT :flock); use Term::ReadLine; use File::Copy; use locale; my ($action, $filename)=@ARGV; my $labelfilename=$ENV{HOME} . /.mutt/Xlabels; die $filename not readable unless -r $filename; #die $labelfilename not readable. Create it. unless -r $labelfilename; die strange filename unless $filename=~m{([^/]*)$}; my $basefilename=$1; my $tmpfilename=/tmp/editlabels-$basefilename.$$; my $history=$ENV{HOME}/.editlabelhistory; my $maxhistory=100; #how many labels to remember in history my $current=''; #current labels my %current; my %previouscurrent; my %labels; my %previouslabels; sysopen LABELS, $labelfilename, O_RDWR|O_CREAT or die Can't open $labelfilename $!; flock(LABELS, LOCK_SH) or die Can't lock $labelfilename $!; #puts a shared lock chomp(my @labels=LABELS); foreach(@labels){ #use %labels to remove duplicates $labels{$_}++; } %previouslabels=%labels; my $term=new Term::ReadLine 'X-Labels'; # prepare terminal to read labels my $attribs=$term-Attribs; $attribs-{completion_entry_function}= $attribs-{list_completion_function}; $term-using_history; $term-ReadHistory($history) if -r $history; my $wrong=; if($action eq menu){ for(;;){ $attribs-{completion_word} = [qw(append clean edit list remove show quit Append Clean Edit List Remove Show Quit)]; $action=lc $term- readline($wrong Append/Edit/Remove/Show/Clean/List/Quit: ); $action=~s/
Re: mutt's counterpart feature to gmail's archive?
On Thu, Apr 16, 2015 at 12:32:23AM +0200, Quolick wrote: Hi! 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? I see that everyone else either have written custom scripts, or manage the archiving manually. Since you mention something similar to Gmail, I would suggest use something search based: notmuch, mu, etc. I use notmuch[1] to index my messages, and mutt-kz[2] (a mutt fork with notmuch support) to read my emails. I usually read emails consolidated from several inboxes into one virtual folder. If I want to archive any thread, I just tag it archived, and it disappears from my virtual folder. The physical message stays in the original mailbox as before. Hope this helps, Footnotes: [1] http://notmuchmail.org/ [2] http://kzak.redcrew.org/doku.php?id=mutt:start -- Suvayu Open source is the future. It sets us free.
Re: mutt's counterpart feature to gmail's archive?
On Thu, Apr 16, 2015 at 09:47:21AM -0500, Luis Mochan wrote: I see that everyone else either have written custom scripts, or manage the archiving manually. Since you mention something similar to Gmail, I would suggest use something search based: notmuch, mu, etc. I use notmuch[1] to index my messages, and mutt-kz[2] (a mutt fork with notmuch support) to read my emails. I usually read emails consolidated from several inboxes into one virtual folder. If I want to archive any thread, I just tag it archived, and it disappears from my virtual folder. The physical message stays in the original mailbox as before. Hope this helps, I recall notmuch keeps its labels in a database, not within the messages. Is this right? An advantage of using X-Label is that when messages are synchronized between computers (I use mbsync) the labels are automatically synchronized also. I use 'mu' to index and when required produce virtual maildirs containing messages that match certain criteria, among whom one can include Xlabels. Yes this is correct, notmuch is more or less equivalent to mu. In fact, I think, even the underlying database for both is Xapian. I read my emails from one location; for backups, I can backup both the database and the maildirs. If you read emails on multiple machines, then syncing the tags can be a bit non-trivial. But scripting that is possible. I think someone on the notmuch list is working on a rather robust solution. -- Suvayu Open source is the future. It sets us free.
Re: Do not mark as read automatically
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Sorry I pressed r instead of 'L', here are the message that were private. (I hope this is ok for you Patrick) OK, I guess it is quite expected behaviour. I was just hoping I could keep my current work flow with unread emails need work. Maybe somebody knows a macro to do this? Kind regards, Thomas * Thomas Schaper thomas.tim.scha...@gmail.com [01-01-70 12:34]: There is nothing in de man page of muttrc about this issue. Kind regards, Thomas On Thu, Apr 16, 2015 at 12:23:42PM -0400, Patrick Shanahan wrote: * Thomas Schaper thomas.tim.scha...@gmail.com [04-16-15 11:39]: Hello all, I would like mutt to not mark my message as read when I open it but only when remove the 'N' flag. Is this possible or is there a workaround? look at the set command in man muttrc -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net You are correct. It is not possible, afaik. When a msg is read, a status flag is set in the message: Status:RO If you remove that flag/line, the msg appears as new N. afaik, there is no alternative. But this action is explained in the fine manuals. I should have been more explanative. - -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBCgAGBQJVMC3RAAoJEDytl03sadYX3fwIAKFuhmXajWxiYo9swsvTtWLb IOt+GxLB9E2MgpFh67J7FJ0pjXBFHaJ8aKWncv/uXIEHPCn2HHwFtQmVbr2NvEFH x5jgskH40trulNYoHFaOSOM82e8O+H9sNXbXuhj/5Xoz87zxnp8HjwRUC9fQ2Spr fVHmb4dWJgZixrO6WdFhPTW6DlGjN5HDpmL2b2Xhh72NAoEDIHvogQac2xhh/t7k 7XlVcr3fMQCuVE9TL8+AWxOpvmFfm1g6pVqpmNmqfAuqNRCu6kDthYnBsbfEkeub gl9kXnCkVb5e/rT8e0DhS35J2nBt3qwnBI1yJJqfdNUtiTw8jBpEstzyG+IgUpA= =2cmp -END PGP SIGNATURE-
Re: mutt's counterpart feature to gmail's archive?
On 16Apr15 00:32 +0200, Quolick wrote: 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? Plain and easy and comfortable: I just have two main mailboxes: inbox and trash. Also the fcc is set to inbox so that I can see in threaded view the history of dialogs/threads. To search the mailboxes I use mairix which I invoke inside mutt via a key-bind. Very quick and reliable by now. The most notable benefit for me was to get rid of the trouble how to sort mail into tons of mailboxes. The virtual view of mairix creates a temporary mailbox of of the search results. If there is interest I'll share some config and scripts on the mairix setup. -- Bastian
Re: mutt's counterpart feature to gmail's archive?
On 16.04.2015, bastian-muttu...@t6l.de wrote: Also the fcc is set to inbox so that I can see in threaded view the history of dialogs/threads. I'm doing virtually the same by specifying set record=+.INBOX To search the mailboxes I use mairix which I invoke inside mutt via a key-bind. Very quick and reliable by now. If there is interest I'll share some config and scripts on the mairix setup. Please go ahead ;-)
Re: mutt's counterpart feature to gmail's archive?
On 16.04.2015, Heinz Diehl wrote: If there is interest I'll share some config and scripts on the mairix setup. Please go ahead ;-) Btw, this is my setup. It's quite minimalistic. [htd@chiara ~]$ cat .mairixrc base=~/Maildir mfolder=.Search database=~/.mairixdb maildir=. maildir=.Drafts maildir=.INBOX maildir=.harvard maildir=.linux-pm maildir=.linux-usb maildir=.lkml maildir=.master maildir=.mutt-dev maildir=.mutt-users In .muttrc, I have this: macro generic F2 shell-escapemairix Search macro index F3 change-folder=.Searchenter Load the search results macro pager F3 change-folder=.Searchenter Load the search results
Re: mutt's counterpart feature to gmail's archive?
bastian-muttu...@t6l.de writes: [...] If there is interest I'll share some config and scripts on the mairix setup. yes, there is interest. Thanks! -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::