viewing two multiple mails
Hi Mutt users: Mutt and console application are great, but there's one feature in the gui mail clients that I miss: I can open one message in a new window, then open another(possibly in another mailbox) to view them simultaneously. I know this is probably hard to achieve in a console application, but what I want to do at least is this: When I view an mail 1 in mailbox/directory 1, then I temporary suspend this viewing and go to an mail 2 in mailbox 2(or another message in the same mailbox). After consulting with the message 2 and quit, I want to return to the same position in the first mail. Currently what I do is I close mail 1 and change directory(c) to mailbox 2, but when I return to 1, I'm again at the newest message and I have to search again to go to message 1. Alternatively, I can fire up another instance of mutt in another xterm and view the mail. But often I get locking issues from my imap server, so that I get kicked out of inbox in instance 1 after using instance 2. I don't have this issue when viewing locally stored mailbox. Any ideas would be appreciated. Thanks. Jiang
Re: More on non-ascii chars in headers
On Tue, Sep 25, 2007 at 10:03:30AM +0200, Eyolf Østrem wrote: There was a thread a short while ago about non-ascii characters in the From name during which I changed my name from Oestrem to Østrem, and it works. Today, I happened to find one of my own messages in a search of the list at http://marc.info/?l=mutt-users, and there, my name appears as: Eyolf =?iso-8859-1?Q?=D8strem?= eyolf () oestrem ! com Not so nice to look at... Is there still some setting I should make/change, or is this down to marc.info's inability to handle unicode characters? Your name appears(including Ø) fine on my mutt display. My default encoding is unicode($LANG=en_US.UTF-8). Of course I cannot be sure for other inferior clients, but this is not the place to ask about outlook or thunderbird for I assume everyone on this list is using mutt:) Jiang Eyolf Østrem/Oestrem/=?iso-8859-1?Q?=D8strem?= -- The only real way to look younger is not to be born so soon. -- Charles Schulz, Things I've Had to Learn Over and Over and Over
Re: How to resend message multiple times effectively
For a few dozen recipients or less, place all the recipient addresses (comma-delimited) on the BCC: line, and place your own address on the TO: line. About a year ago, I had need to make a periodic mailing to a few hundred email addresses. I tried several approaches, but I did not find a satisfactory open-source package. Maybe I'm missing something obvious here, but what's wrong with having an alias file of this kind of content and the source it on .muttrc: alias mailinglist1 New List \ email address 1,\ email address 2,\ . . . email address n,\ my own address I'm sure we can write some kind of poor man's python script or shell/sed/awk script to add or remove address from this. You can then invoke this on the BCC field. Is this some sort of a performance problem? If so, that's not the fault of mutt but of $sendmail you're using, since that's what's handling it. But I serious doubt that a few hundred email can choke, say, postfix on a decently powerful machine. Let me know what I'm missing here. Jiang It appears that most of the mass mailing software has been written for Window$, and must be purchased. And some of the mass mailing software for Window$ is very good. If you have need to make a mass mailing on a regular basis, you may find that the best approach is to devote an old Window$ machine to the task, and shop around for a Window$ application. RLH
Re: From Jiang: question about dialog and mutt
Thanks a lot Gary. TTY is indeed the problem. Once I set it to be the correct one, it works. I attach my modified script in this email just in case anyone wants to use text console instead of zenity in rev_(?)'s script on http://wiki.mutt.org/?ConfigTricks/CheckAttach My script require $TTY to be set to correct value Jiang Hi everyone: There's another question. Is there a way to get this script to work when using the built-in smtp instead of external sendmail program? What do I put in in place of the sendmail when using the smtp built into mutt in recent version? Also, why can't we make this kind of attachment tracking into the mutt program itself, with configurable keywords for attachment in various languages? Is it because the fear of feature bloat? Thanks for any thoughts. Jiang
Re: From Jiang: question about dialog and mutt
Mutt doesn't lock the display when it calls sendmail--it has no means to do so--so this isn't a matter of mutt not surrendering the display. This appears to be a problem with your script. Not being able to see or try your script, it's hard to tell. This is just a hunch, but since the script's stdin is connected to a pipe from which it receives the message text, you may have to tell dialog to use /dev/tty as its stdin and/or stdout, something like this: dialog --yesno Can you see me now? 20 20 /dev/tty /dev/tty HTH, Gary Thanks a lot Gary. TTY is indeed the problem. Once I set it to be the correct one, it works. I attach my modified script in this email just in case anyone wants to use text console instead of zenity in rev_(?)'s script on http://wiki.mutt.org/?ConfigTricks/CheckAttach My script require $TTY to be set to correct value Jiang #!/bin/bash SENDMAIL=/usr/sbin/sendmail ### # this script uses a GUI app called zenity to ask for confirmation, # if not in GUI, just let it pass. If you want TUI (not GUI) query, # which means you replace zenity with something else, then # drop this DISPLAY check. ### #if [ -z $DISPLAY ]; then #exec $SENDMAIL $@ #fi ### # save msg in file to re-use it for multiple tests ### t=`mktemp -t mutt.XX` || exit 2 cat $t cat $t new ### # define tests for: anything you can think of can be done. # the return code of last exec'ed cmd is used in final decision below ### function multipart { grep -q '^Content-Type: multipart' $t } function word-attach { grep -v '^' $t | egrep -q 'attach*|Attach*' } ### # query function must return true to let the msg pass. ### function ask { #zenity --question --title 'mutt' --text 'Did you include the attachment (if you wanted to)?' #DIALOG=${DIALOG=dialog} #DIALOG=${DIALOG=$HOME/bin/dialog} #terminal=`tty` #terminal=/dev/pts/7 #echo $terminal new DIALOG=${DIALOG=dialog} $DIALOG --defaultno --title mutt --clear \ --yesno Have you added your attachment, if you want one? 10 30 $TTY $TTY # --yesno Have you added your attachment? 10 30 #$DIALOG --title mutt \ #--yesno Have you added your attachment? 10 30 #case $? in # 0) #echo true;; # 1) #echo false;; # 255) #echo ESC pressed.;; #esac } ### # FINAL DECISION: # chain series of functions, use ! || for logic connections, # see man $SHELL for more possibilites like grouping, dependencies. ### if multipart || ! word-attach || ask; then $SENDMAIL $@ $t status=$? else status=1 fi clear rm -f $t exit $status
From Jiang: question about dialog and mutt
Hi all: I'm trying to implement this script for checking whether I forget to put on attachment. I try to follow this procedure: http://wiki.mutt.org/?ConfigTricks/CheckAttach The only difference is that I want to use a text based dialog instead of zenity. The reason is that I'm accessing my mailbox on a remote computer through ssh. I can forward Xdialog or zenith dialog box via x11 over ssh, but that slows down the whole thing considerably, and defeat the purpose of having a text based client. I'm a text console purist:) Now I wanted to to implement it in the following manner. In place of zenity, I used dialog --title mutt --clear \ --yesno Have you added your attachment? 10 30 The problem is that when I do this, the mutt simply hang on the sending mail screen. My understanding is that zenity want to draw a dialog box like this: http://physics.harvard.edu/~jqian/dialog.png But mutt does not surrender the text terminal display. I tried various ways to suspend mutt but cannot get it to work. Is it a fundamental limitation of mutt in text console, and I have to give up and use graphic things like Xdialog or zenity instead? Or is there a way to let mutt give up the screen for a sec and display my choice dialog? Or alternatively, is there a patch for mutt to check attachment? Thanks in advance for any ideas. Jiang