Re: Can I have a send hook dependent on *two* addresses in the To: ?
On Thursday 11/17/11 22:21:19 CST, Chris Green wrote: > I want to filter out some cases where E-Mail gets sent to two addresses > and should only be sent to one address. > > E.g. I have a mailing list where for various nefarious reasons when I do > a L[ist reply] the To: line is as follows:- > > To: ix...@ixion.org.uk, ix...@ixiemaster.ixion.org.uk > > So can I use a send-hook to replace the above To: with a corrected, > single destination, To: ? > Why don't you just subscribe one of them? If you have to sucscribe both, try to use send-hook/message-hook on header To: to subscribe/unsubscribe them dynamicly. If there has both of them just subscribe one. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Forward with attachments
On Monday 11/21/11 18:44:13 CST, Mailing Lists wrote: > Hello, > i would forward a received mail with his attachments, but for my mutt's > configuration it do not happens: is it possible and how can i do? > > Best regards > Massimo I think it could be done by following steps, a) press 'v' to view attachments b) tag attachments(including messages) you want to forward c) press ';' + 'f' to forward all tagged attachments -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: key binding for sidebar folder list
On Thursday 11/24/11 19:38:02 CST, SK wrote: > Hi, > > I know there are key bindings to go up and down the mailbox folder in > the sidebar. Is there any way I can make my life a bit more easier by > binding a key to select a specific mailbox folder. For example ctrl-1 > would select the first inbox, ctrl-2 the second etc.? > > Regards, > SK What you find should probably be a macro like this, macro index,pager \C1 "=inbox/" "Open =inbox/" It works for folder changing, but it doesn't show any effect in sidebar. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: mutt and msmtp -- better error handling?
I think a lot of people have the setting like you. Check this small program which may help you. https://code.google.com/p/msmtp-notify/ It monitors the msmtp log and sends various kinds of notification on mail sent. On Thursday 09/19/13 02:08:22 CST, Óscar Pereira wrote: > (This might turn out to be the wrong place to post this, but I > decided to do so in case anyone has some useful suggestions for > this) > > Dear all, > > One of the accounts I use mutt with is setup with offlineimap to > download the email, and msmtp to send it. Yesterday, the smtp server > I use with that account (gmail's smtp) was unavailable during the > afternoon. However, when I sent an email from mutt, neither mutt nor > msmtp reported an error. In fact, mutt displayed the familiar "Mail > sent" message in the lower left corner. And what's worse, the mail I > was just composing was *gone*! Not sent to the recipient, but also > not stored anywhere locally. This scenario was reproducible, and the > behaviour was always the same. > > To prevent this problem in the future, I have set record to store > all sent mail to a local folder (that I can clean up afterwords). In > gmail's case this works well because it will ensure (if it's > functioning properly...) that your sent mail will end up in the > proper "sent_mail" folder. And I would very much rather have two > copies of an important mail than none at all. > > If anyone happens to be using the same type of setup, have you ever > encountered this scenario? And if so, how do you cope with it? > > Thanks in advance! > --Óscar > -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: server pop
Hello, if you have two accounts on the same server, you may set the account-hooks like this, account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' hope it could help you. - du yang On Thu, Jan 06, 2011 at 18:04 +0100, St閜hane Ortega wrote: > Hello, > > I'm a french and novice user of mutt. > I would like to know how to configure mutt for received messages from two > server pop. > > I've put in my muttrc : > set pop_host=pop.free.fr:110 > account-hook . 'unset pop_user; unset pop_pass; unset tunnel' > account-hook pop://pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' > #account-hook pop://pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***' > > but I received messages from only one server... > Could you help me please ? > -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: server pop
Hi, sorry for a typing error in the last post. it should be, account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***' - du yang On Thu, Jan 06, 2011 at 18:04 +0100, St閜hane Ortega wrote: > Hello, > > I'm a french and novice user of mutt. > I would like to know how to configure mutt for received messages from two > server pop. > > I've put in my muttrc : > set pop_host=pop.free.fr:110 > account-hook . 'unset pop_user; unset pop_pass; unset tunnel' > account-hook pop://pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' > #account-hook pop://pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***' > > but I received messages from only one server... > Could you help me please ? > -- 子曰:“君子矜而不争,群而不党。” --《论语》
Re: format string: time for today, date for others.
Hi, I improved the script to fulfill the author's the expectation(just display time for today's mails), only 'if condition' changed. - du yang #!/bin/bash epoch="$1" if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" else echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" fi On Thu, Jan 06, 2011 at 00:38 +0100, Andreas Kneib wrote: > Hi, > > * Yue Wu schrieb am Donnerstag, den 06. Januar 2011: > > > Is there a date/time string that show the time only for today's emails > > but date for else? So, in the index, the emails that got today will > > show the time only, but the ones that got on other days will show the > > date and time. > > I use this script: > http://groups.google.com/group/de.comm.software.mailreader.misc/browse_thread/thread/ab966bddc0b42446/421549103438b830?q=#421549103438b830 > > In ~/.muttrc: > #v+ > set index_format="./format_date.sh '%[%s]' |" > #v- > > # > #!/bin/bash > # > # File: format_date.sh > > epoch="$1" > > if [ $(($(date '+%s') - $1)) -gt 86400 ]; then > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > else > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > fi > # > > > Andreas --
Re: format string: time for today, date for others.
On Fri, Jan 07, 2011 at 18:21 +0800, Yue Wu wrote: > On Fri, Jan 07, 2011 at 03:40:12PM +0800, du yang wrote: > > Hi, > > > > I improved the script to fulfill the author's the expectation(just display > > time for today's mails), > > only 'if condition' changed. > > > > - du yang > > > > > > #!/bin/bash > > > > epoch="$1" > > > > if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then > > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > > else > > > > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > > fi > > Must it be bash script? No bash here, it fails the test with sh... > Change '#!/bin/bash' to '#!/bin/sh' in the script header, then it may work. else please post the error details. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: format string: time for today, date for others.
On Fri, Jan 07, 2011 at 18:54 +0800, Yue Wu wrote: > On Fri, Jan 07, 2011 at 06:32:44PM +0800, du yang wrote: > > > > Change '#!/bin/bash' to '#!/bin/sh' in the script header, then it may work. > > > > else please post the error details. > > > > I've tried it, but many messages like: > > usage: date [-jnu] [-d dst] [-r seconds] [-t west] > [-v[+|-]val[ymwdHMS]] ... > [-f fmt date | > [cc]yy]mm]dd]HH]MM[.ss]] > [+format] > >[:-gt: unexpected > operator > > mess up my mutt index screen at all. > Oh it may be the symbol $() which caused the problem. It is ok on my machine just because /bin/sh is a soft link to bash. Here I post a new one. if it still doesn't work, you may have to post the date command help('date --help') to see if it is a problem of your 'date'. - du yang == #!/bin/sh epoch="$1" _today="`date '+%Y-%m-%d'`" _yesterday=`date -d "$_today" "+%s"` if [ $_yesterday -gt $epoch ]; then echo "%4C %Z %[%d-%m-%y] %?M?%-11.11F [%2M]&%-16.16F? (%?c?%4c&%4l?) %?H?[%H]?%s%" else echo "%4C %Z %[ %H:%M] %?M?%-11.11F [%2M]&%-16.16F? (%?c?%4c&%4l?) %?H?[%H]?%s%" fi -- 临江仙·滚滚长江东逝水--杨慎 滚滚长江东逝水,浪花淘尽英雄。 是非成败转头空。青山依旧在,几度夕阳红。 白发渔樵江渚上,惯看秋月春风。 一壶浊酒喜相逢。古今多少事,都付笑谈中。
Re: format string: time for today, date for others.
On Fri, Jan 07, 2011 at 05:29 -0600, David Champion wrote: > * On 07 Jan 2011, du yang wrote: > > Hi, > > > > I improved the script to fulfill the author's the expectation(just display > > time for today's mails), > > only 'if condition' changed. > > ... > > if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then > > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > It occurs to me that there is an optimization for this specific case. > Since the desired breaking point is simply "the beginning of today", > you can exploit the fact that %Y%m%d is a monotonic function when you > interpret it as an integer. (That is, it alpha-sorts and integer-sorts > in the same order as it date-sorts.) > > set index_format="./format_date.sh '%[%Y%m%d]' |" > > #!/bin/sh > > if [ $1 -eq `date +%Y%m%d` ]; then > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > else > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > fi > > I'm still not sure about performance though. I have a 58-row terminal > and do not want to run 116 processes for each page view in mutt. :) > > > > Aha, finally I have discovered a use for mutt's % expando. > You can optimize this one step further. > > set index_format="./format_date.sh '%[%Y%m%d]' '%<%Y%m%d>' |" > > #!/bin/sh > > if [ $1 -eq $2 ]; then > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > else > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > fi > > A single exec per message now; that's as good as it gets without > patching mutt. > > I 'stole' % for my nested_if patch because it looked > completely useless, so if you happen to be using nested_if, this latter > version won't work. Now that I see a purpose for %<...> I'll have to > revisit nested_if. (Unfortunately all the paired symbols are used > already.) > Excellent! your improvement is helpful for some slow machines and machines during high load such as compiling. And mutt should be a single thread program, so it could just flush the terminal line by line, and would not fork many processes simultaneously. - du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: format string: time for today, date for others.
On Fri, Jan 07, 2011 at 18:21 +0800, Yue Wu wrote: > On Fri, Jan 07, 2011 at 03:40:12PM +0800, du yang wrote: > > Hi, > > > > I improved the script to fulfill the author's the expectation(just display > > time for today's mails), > > only 'if condition' changed. > > > > - du yang > > > > > > #!/bin/bash > > > > epoch="$1" > > > > if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then > > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > > else > > > > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > > fi > > Must it be bash script? No bash here, it fails the test with sh... > you can first test it like this, # ./format_date.sh 1294329609 -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: format string: time for today, date for others.
On Fri, Jan 07, 2011 at 05:07 -0600, David Champion wrote: > * On 07 Jan 2011, Yue Wu wrote: > > On Fri, Jan 07, 2011 at 03:40:12PM +0800, du yang wrote: > > > > > > if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then > > > echo "%4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > else > > > echo "%4C %Z %{ %H:%M} %-15.15F (%?l?%4l&%4c?) %?H?[%H]?%s%" > > > fi > > > > Must it be bash script? No bash here, it fails the test with sh... > > This is a POSIX sh script, not Bourne, which is why it fails for you. > Specifically, $(command) is a POSIX construction that is not supported > by conventional Bourne shells. You can fix it by replacing this: > > if [ $(date -d "$(date '+%Y-%m-%d')" "+%s") -gt $epoch ]; then > > with this: > > now=`date '+%Y-%m-%d'` > if [ `date -d "$now" "+%s"` -gt $epoch ]; then > > However, if I'm not mistaken that command still relies on GNU extensions > to the "date" command. (Mixing POSIX and GNU is another common > portability problem in the Linux era.) Since you appear to be using > FreeBSD you may have problems with that even after adapting the shell > syntax. (In fact I think it's even more confusing. Where the -d > option will simply fail on a pure POSIX system, I think it is actually > a completely different option on BSD, which has its own extensions > separate from GNU's.) > > Remember that setting $index_format to a piped command means that the > command is run once each time a message is displayed on your index. I > wrote the code to allow $index_format to be a piped command, and as I > remember the result is *not* cached. Since the command in this case is > a shell script, it's actually going to run three commands: sh, date, and > another date. > > For these reasons -- portability and performance -- I would not use > shell for this purpose. I prefer Python, but Perl might be a better > choice since it typically has a lower startup time. Naturally for > performance concerns, C would be the best choice. > You are absolutely correct. Considering performance in mind is always better. But scripts and languages like java is still very important in computer world. Because it allows people to accomplish their tasks easily without making any seriously mistake like core dump. It hides many system implementation details to whom doesn't care it. It frees programmers from memory tuning and it helps not-so clever programmers doing thing correctly. Most cases for people, function is more important than performance. They just care working or not. Why Java is so popular in commercial world.. Simply because bosses like it. At last not the least, for researching and system which is performance-sensitive, C/C++ is still the best choice. - du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: How to show number of emails in folder when in folder list?
On Tuesday 01/11/11 18:13:21 CST, Yue Wu wrote: > On Tue, Jan 11, 2011 at 11:02:52AM +0100, Sebastian Schwarz wrote: > > On 2011-01-10 at 21:59 -0500, Patrick Shanahan wrote: > > > I don't see any variable to display number of msgs, but someone > > > may recall a patch that provides that. I don't recall one :^( > > > > At least, there is %N: > > > > > %N N if folder has new mail, blank otherwise > > > > For local mailboxes with unread mail Mutt just displays an > > "N", as the description states. However for IMAP folders Mutt > > actually displays the number of unread messages instead. > > > > But there is still no format sequence for the total number of > > messages, neither for a local nor for an IMAP mailbox. > > Will it be included into mutt in the near future? Is it hard to > implement? > You could register a trouble report into the mutt bug tracking system for this enhancement. Then the mutt develop team could decide whether to implement it or not in future. If no one register it, mutt develop team may suppose that no one needs such a feature. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: How to only show folders have new emails in folder view?
Hi, In the folder view, what are displayed are the defined mailboxes, and they are defined in the muttrc statically. Mailboxes with no new mails have to be undefined if we just want to display mailboxes with new mail. Maybe using macro is the best way to implement the function. But according the mutt manual, it seems there is no variable to check a mailbox having new mails a not and it is had to implement control flows inside macros. Maybe it is possible to use a external program to check which mailboxes have new mails, then dynamically define those mailboxes undefined others. Regards, du yang On Tuesday 01/11/11 18:39:29 CST, Yue Wu wrote: > Hi, group, > > As the title, I want to only show the folders have new emails when in > folder view, how to do that? > > I'm using a method, but don't know if there's a better or built-in > way: write a sh script to detect if the mail folder has files in new/, > if yes, then add it in mailboxes command. > -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: $folder_format with IMAP
On Saturday 03/26/11 06:42:16 CST, Aaron Toponce wrote: > It seems that may printf() sequences that are available for $folder_format > aren't working when using IMAP. I'm guessing that many of these are for > local folders only? Flags like %d for example. In fact, the only working > string that seems to display anything for me is the following: > > set folder_format="%3C %3N %f" > > Has anyone else notices this? Is there something else that I need to set? > I'm coming up short with anything that would say one way or the other. > > Thanks, > Same with me, I think they are available in printf() but mostly the values of those flags are empty. - adu -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
Re: fcc-hook: how to tame it?
On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote: > I have fcc-hook in one of my 3 profile, like this: > > ~/.mutt/profile.mymail3 > fcc-hook . "+MyMail3/Sent" > > In my muttrc, I have: > unhook send-hook > send-hook . "source ~/.mutt/profile.mymail1\n" > send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward > signature=''" > send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n" > > When I sent a e-mail to friend1 or friend2, the message is salved at > MyMail3/Sent, what is very nice. > > However, after this action, all other messages that I sent is salved > at this mailbox! > > I have googled and found a lot of issues like me. Here is 2 out many messages > I found: > > http://tech.groups.yahoo.com/group/mutt-users/message/49010 > http://www.davep.org/mutt/muttrc/fcc-hooks.html > > and manual's section 3.15. > > Have you a way to unset fcc-hook? Or I will need to write it to > /dev/null? If this the way, how I could do that? In muttrc or in > profile.mymail1? > > ~/.mutt/profile.mymail1 don't have fcc-hook seted. > > Thank you very much! > > Marcelo Hi, I think you have to set a fcc-hook in each of you profiles if you don't want to save all mails to "+MyMail3/Sent". Because the hooks will never be changed itself only it was set to a new value, and there is only one place for fcc-hook setting in your profiles, so mutt will use it to forever. if you just care mails to friend1 and friend2, you could try this 2 lines, fcc-hook .* "=Sent" fcc-hook "~t (friend1|friend2)" "+MyMail3/Sent" then the first line is the default fcc-hook action on sent mails. the second is a specific action on mails to friend2 and friend2. if you don't want to save mails, you can set the first line to, fcc-hook .* "/dev/null" Hope this could help you. PS, you could also combine fcc-hook with other hooks(like folder-hook, send-hook...) to get fcc-hook dynamically changed. - du yang -- 临江仙·滚滚长江东逝水--杨慎 滚滚长江东逝水,浪花淘尽英雄。 是非成败转头空。青山依旧在,几度夕阳红。 白发渔樵江渚上,惯看秋月春风。 一壶浊酒喜相逢。古今多少事,都付笑谈中。
Re: Sidebar patch bolds text inside message body
On Sunday 10/16/11 02:29:25 CST, Onoie Andrei wrote: > The issue is that everything that I highlight in the body or the header > of the message becomes bold or sometimes reversed. > Say I have > > color header color74 color233 "^From" > > 'From' in the header of the mail becomes in bold.This didn't happen when > I didn't have the sidebar patch applied. > I have no idea why this is happening. > If anybody has a fix for this, then please reply to the mail. > > Thanks in advance. I am using mutt with sidebar which is installed by gentoo portage. there is no such problem as you said. so I suggest you to try the sidebar patch from gentoo portage. you can download the patches here, http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/mutt-1.5.21-gentoo-patches-r7.tar.bz2 there patches seems to be relate to sidebar. gentoo portage installed some other patches as well, so it is not sure there would be no problem if just installed the only three patches for sidebar. my 'mutt -v' is, Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r7) Copyright (C) 1996-2009 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: Linux 3.0.6-gentoo (i686) ncurses: ncurses 5.9.20110404 (compiled with 5.9) hcache backend: GDBM version 1.9.1. 13/08/2011 (built Sep 22 2011 19:05:02) Compile options: -DOMAIN -DEBUG +HOMESPOOL -USE_SETGID +USE_DOTLOCK +DL_STANDALONE -USE_FCNTL +USE_FLOCK +USE_POP -USE_NNTP +USE_IMAP -USE_SMTP -USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL -USE_GSS +HAVE_GETADDRINFO -HAVE_REGCOMP +USE_GNU_REGEX +COMPRESSED +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP -CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE ISPELL="/usr/bin/ispell" SENDMAIL="/usr/sbin/sendmail" MAILPATH="Maildir" PKGDATADIR="/usr/share/mutt" SYSCONFDIR="/etc/mutt" EXECSHELL="/bin/sh" MIXMASTER="mixmaster" To contact the developers, please mail to . To report a bug, please visit http://bugs.mutt.org/. fg.sidebar-dotpathsep ar.sidebar-utf8 sidebar patch-1.5.11.vk.pgp_verbose_mime cd.trash_folder.3.4 dgc.subjrx fg.change_folder_next fg.smarttime vvv.initials vvv.quote vvv.nntp patch-1.5.20hg.pdmef.progress.vl.2 rr.compressed patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: external file manager
On Thursday 10/20/11 20:09:26 CST, Volker Bouffier wrote: > On 13Oct2011 22:08, stardiviner wrote: > > I usually attach files to a message by putting "Attach:" header lines in > > during the edit mode. Now, I have a vi macro bound to ^A to do this with > > file completion easily, which makes me happy. > Great idea! This has the additional advantage that I can attach files while > writing the mail. I often forget the attachment with mutt. > There have had solutions for file attaching like so. For emacs, post-mode can do that. As I know, the solution is mainly for the problem poeple often forget attaching files with mutt.;-) -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to automatic save mails to a folder from index.
On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote: > How to *automatic* save mails from pyt...@python.com in INBOX/ to folder > Python/ > when I quit or switch mail folders. > I have readed man muttrc, and mutt wiki, can not find a good solution. > I tried to search mutt mailing list archive, not found too. > I think save-hook cannot do this. maybe some triggers can do this. > > Thanks in advance. > Try to use a macro like this, folder-hook "=INBOX" "push ' ~f pyt...@python.com=Python/'" -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to automatic save mails to a folder from index.
On Friday 10/21/11 23:04:15 CST, stardiviner wrote: > => On [2011-10-21 14:02:01 +0800]: > du yang Said: > > On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote: > > > How to *automatic* save mails from pyt...@python.com in INBOX/ to folder > > > Python/ > > > when I quit or switch mail folders. > > > I have readed man muttrc, and mutt wiki, can not find a good solution. > > > I tried to search mutt mailing list archive, not found too. > > > I think save-hook cannot do this. maybe some triggers can do this. > > > > > > Thanks in advance. > > > > > > > Try to use a macro like this, > > > > folder-hook "=INBOX" "push ' ~f > > pyt...@python.com=Python/'" > This almost can arrive my destination. Is there a way to make it only execute > this hook when you > leave Mutt ? I usually press *q* to leave Mutt. > Maybe I can rebind key *q* with this hook, and add *quit* behind this hook. > this seems can not work. > Do you have better solution ? > > > The outer command "push ''" should be removed if you try to bind it a macro. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: watch/monitor mailbox and notify new mails
On Saturday 10/22/11 19:26:52 CST, stardiviner wrote: > 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. > If you are looking for a desktop widget, you can try gnubiff, xbiff2, xbiff, and etc. the first one supports multiple mailbox. the second seems just support only one mailbox. the last one xbiff only support mbox. So gnubiff is most probably suitable for you. If you just need a notify program, you can also try libnotify. Use a script to check new mails and use the command notify-send to send notifications. I personally like the small and simple program xbiff, so I use a C program + xbiff + libnotify. which the C program is use to check mailboxes and then write a mbox file which could be monitored by xbiff. Best regards, du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: trouble with tag-prefix-cond
On Sunday 10/23/11 05:35:49 CST, Cameron Simpson wrote: > I have a folder-hook that's seeming to not work. It is thus: > > folder-hook . 'push ":set > auto_tag=no~T~=~T:set > auto_tag=yes" >[...] > It has just occurred to me, as I type this, from the name > "tag-prefix-cond", that it is not a little "if" statement but a > variant of "tag-prefix" - is that the case? Should I just drop the inner > "tag-prefix"? Yes, "tag-prefix-cond" is a variant of "tag-prefix". normally the action after "tag-prefix" would be done on the current selected message if there is no matching. But "tag-prefix-cond" will do nothing. Best regards, du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
IMAP fetch header failed
Hi, I have a gmail INBOX with more than 20,000 messages. I configured mutt IMAP to this mailbox. For this is the first time to this mailbox, mutt try to fetch all the headers at the beginning and always got the problem "tls_socket_read (A TLS packet with unexpected length was received.)" when just fetched about 5000 headers. I've to set imap_keepalive to 300, 100, 30 and 10, but without success. mail_check and timeout is 30 and 10 respectively. I remember mutt can continue to fetch the remaining headers after a restart, but now mutt always fetch all the headers after the failure. Here are some error information with debug level 5: [2011-10-23 08:16:18] tls_socket_read (A TLS packet with unexpected length was received.) [2011-10-23 08:16:22] imap_cmd_step: Error reading server response. [2011-10-23 08:16:22] Error opening mailbox Who can give me some suggestions to solve or workaround this problem to get mutt working? Thanks in advance. Best regards, du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Sunday 10/23/11 14:02:01 CST, stardiviner wrote: > => On [2011-10-23 10:56:38 +0800]: > du yang Said: > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not > fetch so much > headers. Maybe you need to delete or catalyzes your gmail. I subscribed some mailing lists, so the mailbox is increasing rapidly. I don't want to delete mails within one year, so it easily reached 20,000. But anyway this is a mutt's problem, so I expect to get a solution or workaround on mutt's side. -- Best Regards, du yang signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Sunday 10/23/11 17:18:19 CST, stardiviner wrote: > => On [2011-10-23 14:28:03 +0800]: > du yang Said: > > On Sunday 10/23/11 14:02:01 CST, stardiviner wrote: > > > => On [2011-10-23 10:56:38 +0800]: > > > du yang Said: > > > If your Gmail INBOX really has 20, messages, I think mutt IMAP can > > > not fetch so much > > > headers. Maybe you need to delete or catalyzes your gmail. > > I subscribed some mailing lists, so the mailbox is increasing rapidly. > > I don't want to delete mails within one year, so it easily reached > > 20,000. > > But anyway this is a mutt's problem, so I expect to get a solution or > > workaround on mutt's side. > At first, build up some labels so that you can search mailing list, then move > to differentt labels. > As much as I know, you can make some filter some mailing list to different > on gamil. > Then you will have a little mails in INBOX. > Then when you want to check out mailing list. you can switch mailbox to those > labels. Thanks for your suggestion. This is a fine workaround if no way to make mutt work itself. I will try this if I can't find a way to solve on mutt's side. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Sunday 10/23/11 18:54:06 CST, Michael Graham wrote: > On Sun, Oct 23, 2011 at 10:48, du yang wrote: > > > > At first, build up some labels so that you can search mailing list, then > > > move to differentt labels. As much as I know, you can make some filter > > > some mailing list to different on gamil. > > > Then you will have a little mails in INBOX. > > > Then when you want to check out mailing list. you can switch mailbox to > > > those labels. > > > > Thanks for your suggestion. > > This is a fine workaround if no way to make mutt work itself. I will try > > this if I can't find a way to solve on mutt's side. > > I’m with Stardiviner on this one: I don’t think this *is* really a fault in > mutt. I don’t think mutt was designed to handle that many emails in a single > folder > You may be best trying to use something like procmail to process the > amil according to criteria into folders and go from there. As for how you’d > set that up, though, I’m not sure. > Yes, I can try to workaround the problem as Stardiviner suggests. But to make mutt more error-tolerant I think mutt still has something to be improved. For header fetching mutt could do a better job. The first is to manage a well-format header cache file when connection not available temporarily or disconnected on the server end. The second is to re-fetching the remaining headers but not all headers each time.(The second one is rely on the first.) Best regards, du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Monday 10/24/11 16:45:22 CST, Michael Graham wrote: > On Sun, Oct 23, 2011 at 05:06, du yang wrote: > > > Yes, I can try to workaround the problem as Stardiviner suggests. But to > > make mutt more error-tolerant I think mutt still has something to be > > improved. > > I agree that mutt could do a better job of handling it, but all the MUAs I’ve > ever used extensively (Thunderbird, Lotus Notes, Outlook, Apple Mail) have > had a similar problem of choking up once mailboxes reach the high thousands. > I’m not going to delve into the philosophy of whether sorting that much mail > is a job for mutt or for another, specialised mail filing/sorting application. Mutt has been brilliant enough. I might demand too much ;) > You should file a bug report/feature request, and in the meantime, > you’ll probably have to fall back on Stardiviner’s workaround until it gets > fixed. I have made it work with Stardiviner's workaround. Also a bug report has been registered. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Monday 10/24/11 17:09:40 CST, Aaron Toponce wrote: > On Sun, Oct 23, 2011 at 02:02:01PM +0800, stardiviner wrote: > > => On [2011-10-23 10:56:38 +0800]: du yang Said: > > > I have a gmail INBOX with more than 20,000 messages. I configured mutt > > > IMAP to this mailbox. For this is the first time to this mailbox, mutt > > > try to fetch all the headers at the beginning and always got the > > > problem "tls_socket_read (A TLS packet with unexpected length > > > was received.)" when just fetched about 5000 headers. > > > > > If your Gmail INBOX really has 20, messages, I think mutt IMAP can not > > fetch so much > > headers. Maybe you need to delete or catalyzes your gmail. > > Garbage. I have over 70,000 emails in my account, over 40,000 of which are > in the debian-users mailing list folder. I just recently reinstalled my > computer, and had to re-fetch all 40K headers, and while it took a while to > do so over IMAP, it did so successfully, without hiccup. > I search a lot about the "tls_socket_read" problem. It's caused by SSL connection time out or broken. In my case, I tuned mutt with many timeout parameters but without success. If mutt's no problem, the connection may be disconnected on server end or the ISP's firewall. Your case said gmail has no problem, so the problem should reside in my ISP's firewall. But I can't do anything on that. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Monday 10/24/11 17:39:14 CST, Aaron Toponce wrote: > The "tls_socket_read" connection issues are related to GnuTLS. If you > recompile Mutt with OpenSSL instead, those errors go away. Might be worth > looking into if it's a big issue for you. Thanks for this good hint, I will try it. Currently I compiled Mutt with both GnuTLS and OpenSSL support. So I will try to disable GnuTLS and have a look. > Possible. Again, running tcpdump(1) should be the first thing you do when > troubleshooting a network-related issue, rather than trying to find some > error in your config. Just a thought. Thanks again. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Monday 10/24/11 21:17:41 CST, stardiviner wrote: > I find most of people who using Mutt has this situation. > They have a lot of mails to download, I think someone should write a stuff to > download > all mails from mailing list. This will save a lot of project and time. > So that you do not need to save those mails from mailing list. > And this stuff should have some options: download from a time point ..., etc. > And should work with Mutt. This will be a awesome stuff. Instead of downloading mails from time to time, there are alot of tools do a similar thing. There are tools do IMAP2Maildir syncing like the popularly used "offlineimap". And there are some other tools could IMAP2IMAP syncing like "imapsync" which allows you sync remote mails with your local IMAP server. If mutt could do this job fine, there is no need to make things that complicated. If no way to make mutt work well on such function, some other substituted solutions above could be tried. (If you need offline checking mails, the above 2 solutions worth trying. And they also have some other advantages.) But with the proof from Aaron, mutt could do it without problem. So I insist on trying to look for a solution with mutt at first ;-) Best regards du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
On Monday 10/24/11 17:39:14 CST, Aaron Toponce wrote: > The "tls_socket_read" connection issues are related to GnuTLS. If you > recompile Mutt with OpenSSL instead, those errors go away. Might be worth > looking into if it's a big issue for you. > Possible. Again, running tcpdump(1) should be the first thing you do when > troubleshooting a network-related issue, rather than trying to find some > error in your config. Just a thought. > I finally tried those suggestions. The result is, both SSL and GnuTLS have problems. I got tcp dumps for both of them, but I don't have enough knowledge to figure out where problem happens. I paste some tcpdump summary text here, hope somebody could help me. For OpenSSH: 4037 982.190384 192.168.0.57 74.125.53.16 TCP 66 53014 > pop3s [ACK] Seq=398 Ack=1945 Win=20304 Len=0 TSval=9706922 TSecr=812615806 4038 982.190500 192.168.0.57 74.125.53.16 TLSv197 Application Data 4039 982.685390 74.125.53.16 192.168.0.57 TLSv1214 Application Data 4040 982.685565 192.168.0.57 74.125.53.16 TLSv1107 Application Data 4041 983.220497 74.125.53.16 192.168.0.57 TCP 66 pop3s > 53014 [ACK] Seq=2093 Ack=470 Win=7872 Len=0 TSval=812616836 TSecr=9707046 4042 983.328344 74.125.53.16 192.168.0.57 TLSv1106 Application Data 4043 983.328483 192.168.0.57 74.125.53.16 TLSv1110 Application Data 4044 983.822867 74.125.53.16 192.168.0.57 TCP 66 pop3s > 53014 [ACK] Seq=2133 Ack=514 Win=7872 Len=0 TSval=812617439 TSecr=9707207 4045 989.404200 74.125.53.16 192.168.0.57 TLSv1105 Application Data 4046 989.404357 192.168.0.57 74.125.53.16 TLSv197 Application Data 4047 989.898699 74.125.53.16 192.168.0.57 TCP 66 pop3s > 53014 [ACK] Seq=2172 Ack=545 Win=7872 Len=0 TSval=812623515 TSecr=9708726 4048 993.060645 74.125.53.16 192.168.0.57 TLSv1100 Application Data 4049 993.060806 192.168.0.57 74.125.53.16 TLSv197 Application Data 4050 993.555730 74.125.53.16 192.168.0.57 TCP 66 pop3s > 53014 [ACK] Seq=2206 Ack=576 Win=7872 Len=0 TSval=812627171 TSecr=9709640 4051 993.682243 74.125.53.16 192.168.0.57 TLSv1106 Application Data 4052 993.682386 192.168.0.57 74.125.53.16 TLSv193 Encrypted Alert 4053 993.682545 192.168.0.57 74.125.53.16 TCP 66 53014 > pop3s [FIN, ACK] Seq=603 Ack=2246 Win=23088 Len=0 TSval=9709795 TSecr=812627297 4054 993.682999 74.125.53.16 192.168.0.57 TCP 66 pop3s > 53014 [FIN, ACK] Seq=2246 Ack=576 Win=7872 Len=0 TSval=812627298 TSecr=9709640 4055 993.683015 192.168.0.57 74.125.53.16 TCP 66 53014 > pop3s [ACK] Seq=604 Ack=2247 Win=23088 Len=0 TSval=9709795 TSecr=812627298 4056 994.177265 74.125.53.16 192.168.0.57 TCP 60 pop3s > 53014 [RST] Seq=2246 Win=0 Len=0 4057 994.177662 74.125.53.16 192.168.0.57 TCP 60 pop3s > 53014 [RST] Seq=2247 Win=0 Len=0 For GnuTLS: 14636 4098.516468 192.168.0.57 74.125.127.16 TCP 86 [TCP Dup ACK 14634#1] 36170 > imaps [ACK] Seq=778 Ack=9546260 Win=62704 Len=0 TSval=12583322 TSecr=907553405 SLE=9553250 SRE=9554648 SLE=9547658 SRE=9551852 14637 4098.517410 74.125.127.16 192.168.0.57 TLSv11464 Ignored Unknown Record 14638 4098.517540 192.168.0.57 74.125.127.16 TCP 86 [TCP Dup ACK 14634#2] 36170 > imaps [ACK] Seq=778 Ack=9546260 Win=62704 Len=0 TSval=12583322 TSecr=907553405 SLE=9553250 SRE=9556046 SLE=9547658 SRE=9551852 14639 4098.993071 74.125.127.16 192.168.0.57 TLSv11464 [TCP Retransmission] Ignored Unknown Record 14640 4098.993270 192.168.0.57 74.125.127.16 TCP 78 36170 > imaps [ACK] Seq=778 Ack=9551852 Win=57264 Len=0 TSval=12583441 TSecr=907554367 SLE=9553250 SRE=9556046 14641 4098.994223 74.125.127.16 192.168.0.57 TLSv11464 [TCP Retransmission] Ignored Unknown Record 14642 4098.994248 192.168.0.57 74.125.127.16 TCP 66 36170 > imaps [ACK] Seq=778 Ack=9556046 Win=55888 Len=0 TSval=12583441 TSecr=907554367 14643 4098.995256 74.125.127.16 192.168.0.57 TLSv11464 [TCP Retransmission] Ignored Unknown Record 14644 4098.995279 192.168.0.57 74.125.127.16 TCP 78 [TCP Dup ACK 14642#1] 36170 > imaps [ACK] Seq=778 Ack=9556046 Win=55888 Len=0 TSval=12583441 TSecr=907554367 SLE=9554648 SRE=9556046 14645 4101.525748 74.125.127.16 192.168.0.57 TLSv11464 Ignore
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 11:46:48 CST, stardiviner wrote: > I want to color one special mail in a thread from one mailing list. > for example: > Subject . > [r] `-> (I replied here) > | `-> > | > `-> (someone replied me at here, I want to color this mail in mutt > color theme) > how to do this ? Try things like this, # messages from me color index magenta default "~P !~N !~T !~F" #color index magenta white "~P ~N !~T !~F" #color index magenta green"~P ~T !~F" #color index magenta red "~P ~F" You can refer to this mutt colors definitions, http://aperiodic.net/phil/configs/mutt/colors -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 12:06:10 CST, du yang wrote: > On Tuesday 10/25/11 11:46:48 CST, stardiviner wrote: > > I want to color one special mail in a thread from one mailing list. > > for example: > > Subject . > > [r] `-> (I replied here) > > | `-> > > | > > `-> (someone replied me at here, I want to color this mail in mutt > > color theme) > > how to do this ? > > http://aperiodic.net/phil/configs/mutt/colors > Sorry for I didn't exactly understand what you trying to do. If you want to color mails from someone special, you can try the expression '~t x...@xyx.com' in color command. It is case-insensitive. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 12:27:20 CST, du yang wrote: > If you want to color mails from someone special, you can try the > expression '~t x...@xyx.com' in color command. It is case-insensitive. > Sorry again. the expression should like this '~f x...@xyx.com' ;-) -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP and '+.' format
On Wednesday 10/26/11 07:40:07 CST, Paul wrote: > With it set as > > set record="+.Sent" > > it doesn't put sent mails into the Sent folder (although I'm sure I saw the > status briefly say it was uploading the message after (or is it before?) it > was sent). With it set like this: You can re-compile mutt with debug support, and then use 'mutt -d 5' instead to generate the debug file '.muttdebugX' in home directory. the sent message uploading path should be found in the file. Hope this could help you to figure out your problem. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: IMAP fetch header failed
Hi, I finally got it work with a workaround. The problem is mostly caused by a timeout somewhere and mutt can't get recovered. I managed to get a faster connection which can download the headers in a much shorter time. Then the TLS read problem is no longer occured. The connection is via a IPv6 proxy which is much faster than direct IPv4 here. This workaround may not work all the time in case I have extremely a large amount of mails. So I tried isync (currently named mbsync) also. It works fine. It allows you checking mails offline. And you can also config it to store only *recent* mails. But it has the SSL/TLS read as well when getting very large mails, so I made a IPv6 patch in order to use my IPv6 connection. I will try to share this patch somewhere. Best regards du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: sub-mailbox in mailbox
On Saturday 10/29/11 15:31:11 CST, stardiviner wrote: > I'm using mutt patch *sidebar*. > I hope sidebar can show new mail highlight and list out sub-mailboxes. > 1] new mail highlight. (even in sub-mailboxes) > 2] I find mutt can not list out mailboxes when they are in another mailbox. > for example: > I have two mailboxes in another mailbox. > apps/ > `-weechat/ > `-tmux/ > when I switch to apps mailbox with sidebar, mutt can not list out this > two mailboxes. > how to set muttrc to do this ? > > I set *mailboes* in a file. here is the example. > mailboxes =Perl > mailboxes =ubuntu > mailboxes =Arch > mailboxes =apps > The mailboxes have to be defined explicitly in order to be recognized by mutt. So this line > mailboxes =apps needs to be substituted with mailboxes =apps/weechat mailboxes =apps/tmux -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Nested Folders Not Accessible With OfflineIMAP
On Sunday 10/30/11 06:48:28 CST, Michael Graham wrote: > When I exit, I see this in the terminal printed several times, just > after the command to start mutt: > > sh: line 0: [: missing `]' > Are the last one script? There is one space missing in it. the if condition should be like if [ -x $folder ]; instead of if [ -x $folder]; Is that your problem? The first one script looks having no problem on syntax after removing tailing space. Best regards du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Nested Folders Not Accessible With OfflineIMAP
On Sunday 10/30/11 19:00:14 CST, Michael Graham wrote: > I tried making the fix you suggested, but it still hasn’t workedi — I still > can’t access the nested folders. I don’t get the previous error in printed > in the terminal on exit, but I now get this: > > sh: line 0: [: too many arguments > sh: line 0: [: /Users/mike/.mail/Deleted: binary operator expected > sh: line 0: [: /Users/mike/.mail/Sent: binary operator expected > Mailbox is unchanged. > > I suspect “Deleted” and “Sent” are “Deleted Messages” and “Sent Messages”. I > use these mailboxes because my iPhone created them and I can’t work out how > to make it use other folders. > Any other ideas on how to fix this? Hi Mike, I think the error is mostly caused by the space in the directory names. Try to use a double-quote mark for variable $folder in if condition. if [ -x "$folder" ]; -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Nested Folders Not Accessible With OfflineIMAP
On Tuesday 11/01/11 21:24:02 CST, Michael Graham wrote: > Hi Du Yang, > > Thanks for the above; it fixed the terminal errors, and now I’m running it > without anything being printed to the terminal on exit. > However, it’s *still* not letting me traverse the nested folders using > the browser — I just end up in the top-level folder. I can go there directly > using macros (I have one, ga, set to get me to the current year’s archive > folder). > My .muttrc is now as follows: > >set mbox_type =Maildir >set pager_stop >set folder="~/.mail" >set spoolfile ="~/.mail/INBOX" >set record="~/.mail/Sent\ Messages" >set postponed ="~/.mail/Drafts" >set mask ="!^\\.[^.]" > > mailboxes ! + `\ > for file in ~/.mail/.*; do \ >box=$(basename "$file"); \ >if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = '.customflags' \ >-a ! "$box" = '.subscriptions' ]; then \ > echo -n "\"+$box\" "; \ >fi; \ > done; \ > for folder in ~/.mail/*; do \ >if [ -x $"folder" ]; then \ > box=$(basename "$folder"); \ > for file in ~/.mail/$box/.*; do \ > box2=$(basename "$file"); \ > if [ ! "$box2" = '.' -a ! "$box2" = '..' -a ! "$box2" = > '.customflags' \ > -a ! "$box2" = '.subscriptions' ]; then \ >echo -n "\"+$box/$box2\" "; \ > fi; \ > done; \ > fi; \ > done` > > Any ideas on why I can’t burrow down into the lower-level folders using the > browser? > Hi Mike, There is minor error in your script. The if condition's syntax is incorrect, it should be like as writing below. (Note the quote mark position.) if [ -x "$folder" ]; then The intention of the script is to generate first level mailboxes start with '.' as well as the sub-level mailboxes(mbox or maildir) which starts with '.'(except '.', '..', '.customflags', '.subscriptions'). Note to show the sub-level mailboxes it requires the first level folder not start with '.'. Is this you want? I have some tests with the script. there is a maildir folder structure created as below, # find .maildir/ .maildir/ .maildir/list .maildir/list/.c .maildir/list/.a .maildir/list/.b .maildir/inbox .maildir/.mbox .maildir/.list .maildir/.list/.c .maildir/.list/.a .maildir/.list/.b # ./a.sh "+.list" "+.mbox" "+list/.a" "+list/.b" "+list/.c" # ./b.sh "+.list" "+.mbox" "+.list/.a" "+.list/.b" "+.list/.c" The a.sh's result should be the author's expectation. the b.sh is assume that the first level folder starts with '.' when showing sub-level mailboxes. Both of them are attached. Which one is you like? or both? Best regards du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ a.sh Description: A.SH b.sh Description: B.SH signature.asc Description: Digital signature
Re: Nested Folders Not Accessible With OfflineIMAP
On Thursday 11/03/11 05:48:25 CST, Michael Graham wrote: > None of my sublevel mailboxes start with a ‘.’ — they’re just regular > mailboxes. A quick ls shows: > > drwx-- 7 mike 238B 31 Oct 18:58 Accounts/ > drwx-- 5 mike 170B 31 Oct 18:58 Archive/ > drwx-- 14 mike 476B 31 Oct 18:58 Archives/ > drwx-- 5 mike 170B 31 Oct 18:58 Deleted Messages/ > > > Is that where my problem is? Should I force offlineimap to generate sublevel > mailboxes that start ‘.’? If all your mailboxes are regular boxes, please try this script, # find .maildir/ .maildir/ .maildir/list .maildir/list/Archive .maildir/list/.c .maildir/list/.a .maildir/list/Accounts .maildir/list/.b .maildir/list/Deleted Messages .maildir/inbox .maildir/.mbox .maildir/.list .maildir/.list/.c .maildir/.list/.a .maildir/.list/.b # ./c.sh "+inbox" "+list" "+list/Accounts" "+list/Archive" "+list/Deleted Messages" Does this you expect? Best regards, du yang -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ c.sh Description: C.SH signature.asc Description: Digital signature
Re: attach multipe files from within mutt
On Friday 11/04/11 19:40:06 CST, Eric Smith wrote: > I cannot find a way to attach multiple files in one go > from within mutt. I can go to attach and then to fle browser > and there select with a tag, but I cannot get all the tagged files to > attch to the mail message. > > How would I do that? > Tag the files to be attached, then leave the indicator on one of the tagged messages and press Enter. That works for me. And I found that tags on files will be erased if changing folder. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Mutt and msmtp "errorcodes"
On Friday 11/11/11 19:21:16 CST, Martin Kjær Jørgensen wrote: > Hey > > Is there a way to make mutt listen or wait for msmtp succeeding or > failing, and react accordingly? (or any other MTA for that matter) > Please check the mutt parameter sendmail_wait. If set, mutt will be waiting until mail sent successfully or failed. But it is not convenient that you have to wait for mail being sent and have to open another mutt program to view mails or send another mail. > In my current setup I have to monitor msmtp logs to be sure that the > mail from mutt is actually sent. For instance, mutt doesnt block or > throw errors if msmtp TLS fails. > Maybe you have interests on this msmtp notify program. It help to monitor the msmtp log file and send notify with libnotify. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: Mutt and msmtp "errorcodes"
On Friday 11/11/11 20:20:36 CST, du yang wrote: > On Friday 11/11/11 19:21:16 CST, Martin Kjær Jørgensen wrote: > > Hey > > > > Is there a way to make mutt listen or wait for msmtp succeeding or > > failing, and react accordingly? (or any other MTA for that matter) > > > > Please check the mutt parameter sendmail_wait. If set, mutt will be waiting > until mail sent successfully or failed. But it is not convenient that you > have to wait for mail being sent and have to open another mutt program to > view mails or send another mail. > > > In my current setup I have to monitor msmtp logs to be sure that the > > mail from mutt is actually sent. For instance, mutt doesnt block or > > throw errors if msmtp TLS fails. > > > Maybe you have interests on this msmtp notify program. It help to monitor the > msmtp > log file and send notify with libnotify. > Sorry for missing the link. http://code.google.com/p/msmtp-notify Just start it in background on system startup. It is a simple program written in C, so don't worry about resource usage. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature