Re: How can I know if error happens when sending mail?
thanks, your suggestion is applied :) On Wed, 03 Jun 2009, Kyle Wheeler wrote: On Wednesday, June 3 at 05:20 PM, quoth Chengqi(Lars) Song: -code lars:~$ less .bin/msmtp-wrap #! /bin/bash msmtp $* if [ $? != 0 ] then gxmessage -wrap -fg red -bg black -default okay -center MSMTP: `tail -1 ~/.getmail/msmtp.log` fi -- I have a few minor suggestions. First, you probably don't want to use $*, but you probably want to use $@ instead, to preserve any arguments that might have spaces in them. Secondly, you don't have to use the $? variable, you can simply do this: #!/bin/bash if ! msmtp $@ ; then gxmessage -wrap -fg red -bg black -default okay -center \ MSMTP: `tail -1 ~/.getmail/msmtp.log` fi ~Kyle -- No nation is permitted to live in ignorance with impunity. -- Thomas Jefferson
confirm deleting mail
hi, when deleting mails, usually press 'd' to mark it, then switch to maildir list to confirm deleting those marked mails, then switch back. Is there easier way? Thanks Lars
Re: How can I know if error happens when sending mail?
yeah, the manual says we will be informed, but in fact i tested and didnt see any information about the error. lars On Tue, 02 Jun 2009, Nicolas Rachinsky wrote: * JP Bruns emailj...@gmx.de [2009-06-02 10:37 +0200]: Is there anything for console-only systems? Mutt is a great piece of software, but - in my eyes - is lacking this important feature. Would it be possible to take the return-code/-message of the *smtp program and display that on the status-line (or the message(?)-line)? What about creating a mail-reply to that message on its own with the sending-error as body and mark that as new mail? Please wrap your lines. The manual says about sendmail_wait: Note that if you specify a value other than 0, the output of the child process will be put in a temporary file. If there is some error, you will be informed as to where to find the output. So it seems, the feature you want is already there. Nicolas -- http://www.rachinsky.de/nicolas
How can I know if error happens when sending mail?
Hi, I'm using msmtp to send mail. I've set sendmail_wait=-1 in .muttrc to make sending mail not blocking. But there comes a problem. If any error happens when sending mail, I will not aware about it. And sometimes it cause trouble to my work. How can I solve this problem? I need to be told if error happens in sending mail. Thanks Lars
auto CC to self
Hi, I want to CC every mail to my backup mailbox, say larsbac...@gmail.com, is it possible to configure that in mutt? Thanks. Regards Lars
Re: auto CC to self
it does work, thanks! On Mon, 01 Jun 2009, Markus Maria Miedaner wrote: -Urspr?ngliche Nachricht- Von: Chengqi(Lars) Song son...@gmail.com Gesendet: 01.06.09 10:34:13 An: mutt-users mutt-users@mutt.org Betreff: auto CC to self Hi, I want to CC every mail to my backup mailbox, say larsbac...@gmail.com, is it possible to configure that in mutt? Thanks. Regards Lars Ciao Lars, my_hdr Cc: your email address or my_hdr Bcc: your email address should do the job. cheers, markus Text: GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de
Re: How can I know if error happens when sending mail?
Hi Markus, Thanks for the method you provided. In fact I thought of that too. But still it's not efficient to watch that log file everytime after sending a mail. Logwatch should work but still I wonder if there is any easier way to do this job. Could we possible wrap msmtp in a shell script, and in the script call pass all parameters to msmtp and watch consequential results? Have anybody done that? Thanks Lars On Mon, 01 Jun 2009, Markus Maria Miedaner wrote: Hi, I'm using msmtp to send mail. I've set sendmail_wait=-1 in .muttrc to make sending mail not blocking. But there comes a problem. If any error happens when sending mail, I will not aware about it. And sometimes it cause trouble to my work. How can I solve this problem? I need to be told if error happens in sending mail. Thanks Lars Ciao Lars, you can specify a log_file for msmtp by adding the following to each account_setting in your .msmtprc logfile ~/msmtp.log all you need to do then is to watch the file after sending an email. it may take a few seconds before the logentries are written for each mail. for notification you could add a logwatcher to automate this process. cheers, markus ___ Nur bis 31.05.: WEB.DE FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss f?r 17,95 Euro/mtl.! http://produkte.web.de/go/02/ - End forwarded message -
Re: How can I know if error happens when sending mail?
indeed can not interrupt mutt, but can send a local mail to myself instead i think ... lars On Mon, 01 Jun 2009, Kyle Wheeler wrote: On Tuesday, June 2 at 12:08 AM, quoth Chengqi(Lars) Song: Thanks for the method you provided. In fact I thought of that too. But still it's not efficient to watch that log file everytime after sending a mail. Logwatch should work but still I wonder if there is any easier way to do this job. Could we possible wrap msmtp in a shell script, and in the script call pass all parameters to msmtp and watch consequential results? Have anybody done that? Sure, you could do that, but what then? What should the shell script do if sending the message fails? It can't interrupt your mutt session... ~Kyle -- The government of the United States is not in any sense founded on the Christian Religion. -- US Treaty with Tripoly, 1797
error about TLS when sending mail
Hi, I always get this message when sending mail: Apr 30 20:24:19 host=smtp.abc.com tls=on auth=on user=lars from=l...@abc.com recipients=larsgg.tosp...@abc.com errormsg='TLS handshake failed: The Diffie Hellman prime sent by the server is not acceptable (not long enough).' exitcode=EX_PROTOCOL the domain name is substituded to abc.com for privacy. When I use other msmtp servers there is nothing wrong. only the 'abc.om' has this problem. How can I fix it? lars
Re: error about TLS when sending mail
but Outlook works well with that server... can mutt ignores that error msg? lars On Thu, 30 Apr 2009, Kyle Wheeler wrote: On Thursday, April 30 at 09:12 PM, quoth Chengqi(Lars) Song: Hi, I always get this message when sending mail: Apr 30 20:24:19 host=smtp.abc.com tls=on auth=on user=lars from=l...@abc.com recipients=larsgg.tosp...@abc.com errormsg='TLS handshake failed: The Diffie Hellman prime sent by the server is not acceptable (not long enough).' exitcode=EX_PROTOCOL the domain name is substituded to abc.com for privacy. When I use other msmtp servers there is nothing wrong. only the 'abc.om' has this problem. How can I fix it? Sounds like it's their problem, not yours. If you can force your mail server to avoid using TLS when talking to them, then you can probably send mail, but ... their TLS setup is basically broken. Not much you can do other than avoid it. ~Kyle -- The optimist thinks this is the best of all possible worlds. The pessimist fears it is true. -- J. Robert Oppenheimer
Re: error about TLS when sending mail
it works, great! thanks lars On Thu, 30 Apr 2009, Christian Ebert wrote: * Chengqi(Lars) Song on Thursday, April 30, 2009 at 21:12:12 +0800 I always get this message when sending mail: Apr 30 20:24:19 host=smtp.abc.com tls=on auth=on user=lars from=l...@abc.com recipients=larsgg.tosp...@abc.com errormsg='TLS handshake failed: The Diffie Hellman prime sent by the server is not acceptable (not long enough).' exitcode=EX_PROTOCOL the domain name is substituded to abc.com for privacy. When I use other msmtp servers there is nothing wrong. only the 'abc.om' has this problem. How can I fix it? ^ In case this means that you're using msmtp, this is an msmtp and not a mutt question ;-) I seem to remember encountering something similar when using msmtp though. From man msmtp: --tls-min-dh-prime-bits=[bits] Set or unset minimum bit size of the Diffie-Hellman (DH) prime. See the tls_min_dh_prime_bits command below. [...] tls_min_dh_prime_bits [bits] Set or unset the minimum number of Diffie-Hellman (DH) prime bits that msmtp will accept for TLS sessions. The default is set by the TLS library and can be selected by using an empty argument to this command. Only lower the default (for example to 512 bits) if there is no other way to make TLS work with the remote server. Setting tls_min_dh_prime_bits 512 in my msmtprc helped me overcome the problem, perhaps the same holds true for you. c -- Was hei?t hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] _F R E E_ _V I D E O S_ http://www.blacktrash.org/underdogma/ http://www.blacktrash.org/underdogma/index-en.html
Re: Notification on new mails
Thanks, this should be enough for me. btw, what's the meaning of :0whc? lars On Sun, 26 Apr 2009, Cameron Simpson wrote: On 26Apr2009 19:18, I wrote: | Your rule becomes: | | :0 | * ^(Subject|From|To|Cc|Bcc):.*vip | { | :0whf | | announce-email ... | :0 | $MAILDIR/inbox-vip | } Sorry, that should be :0hwc, not :0hwf. -- Cameron Simpson c...@zip.com.au DoD#743 http://www.cskk.ezoshosting.com/cs/ It's amazing how much 'mature wisdom' resembles being too tired. - Lazarus Long
Re: Notification on new mails
I'm using bare X + WindowManager instead of Desktop. I use osd-cat for some other notifications. lars On Sat, 25 Apr 2009, J. Limon wrote: On Sat, Apr 25, 2009 at 01:55:39PM +0800, Chengqi(Lars) Song wrote: Hi, Im using getmail/procmail/mutt/msmtp as my personal mail toolkit. It works well but lacks of notification on new mails. How do you deal with that? I want to add a notification to new coming mail in my inbox-vip mail box. How can I modify my procmailrc for that? the corresponding lines are: :0 * ^(Subject|From|To|Cc|Bcc):.*vip $MAILDIR/inbox-vip how to add a command when those lines works? echo the Subject to osd-cat to display new mail' title on screen for example. Thanks lars What is your desktop of choice? I know there are several gnome apps to monitor mbox and maildir mailboxes.. -- If a problem can be solved there is no use worrying about it. If it can't be solved, worrying will do no good.
Notification on new mails
Hi, Im using getmail/procmail/mutt/msmtp as my personal mail toolkit. It works well but lacks of notification on new mails. How do you deal with that? I want to add a notification to new coming mail in my inbox-vip mail box. How can I modify my procmailrc for that? the corresponding lines are: :0 * ^(Subject|From|To|Cc|Bcc):.*vip $MAILDIR/inbox-vip how to add a command when those lines works? echo the Subject to osd-cat to display new mail' title on screen for example. Thanks lars
better mailbox lists
hi, when i type c ? in my mutt i got these: 1 drwx-- 70 lars lars 4.0K Apr 02 22:03 ../ 2 drwxr-xr-x 5 lars lars 4.0K Jan 09 15:12 inbox/ 8 drwxr-xr-x 5 lars lars 4.0K Jan 09 15:12 postponed/ 9 drwxr-xr-x 5 lars lars 4.0K Jan 09 15:12 sent/ how can i remove that ../ ? thanks lars
Re: address alias file for mutt from command line
i think you can find your alias file and edit it directly. lars On Tue, 31 Mar 2009, zhang zhengquan wrote: Dear mutt community: Recently I found that echo | mutt -s subjetc -a attachment recipi...@host extremely convenient to use especially if you have lots of attachments. The only problem is that the recipient name is sometimes cumbersome to type. I wonder if there is an alias file that I can edit for this purpose. Thanks for any pointers, Zhang
Re: forwarding mail
thanks, this is brilliant. On Sat, 28 Mar 2009, Sander Smeenk wrote: Quoting Chengqi(Lars) Song (son...@gmail.com): the default forwarding in mutt is to attach the original mail as a file, but i like to forward with quoting original mail text. How to configure it? thanks I use these two macros, which i believe i've gotten from this list too: macro index f :set mime_forward=no\nforward-message macro pager f :set mime_forward=no\nforward-message macro index F :set mime_forward=yes\n:set mime_forward_decode=no\nforward-message macro pager F :set mime_forward=yes\n:set mime_forward_decode=no\nforward-message Now 'f' just quote-forwards, and F forwards as an attachment. -Sndr. -- | What do sheep count when they want to fall asleep? | 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D
forwarding mail
hi, the default forwarding in mutt is to attach the original mail as a file, but i like to forward with quoting original mail text. How to configure it? thanks lars
how to mark all as read?
hi, i know how to do it step by step: ctrl-t ~N enter ;N enter but how to bind this function to a single key? best lars
Re: how to mark all as read?
great, it works well for me best lars On Mon, 05 Jan 2009, Ed Blackman wrote: On Mon, Jan 05, 2009 at 02:12:46PM +0800, Chengqi(Lars) Song wrote: i know how to do it step by step: ctrl-t ~N enter ;N enter but how to bind this function to a single key? macro index Escc untag-pattern~T\ntag-pattern~N\ntoggle-newuntag-pattern~T\n Change the key to something you'd prefer. The first part clears any existing tags, so that the toggle-new doesn't turn the New flag on for those messages. It won't do anything if you don't have tagged messages. Ed
receiving duplicated mails from this mailing list
hi, im receiving duplicated mails from this mailing list from several days ago. is there anything wrong? best lars
Replying a mail in a mail list
Hi, When I'm replying a mail in a mail list, for example, a mail in mutt-users@mutt.org from [EMAIL PROTECTED], the default target is To: [EMAIL PROTECTED], how to changed it to the following? To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org Do I need something like hook? Could you please help me on this? Thanks. Best Lars
Re: Replying a mail in a mail list
Thanks your for your help. I found that L works without lists or subscribe in .muttrc. When I use L the target address becomes To: mutt-users@mutt.org, amazing. What's the effect of lists and subscribe then? I noticed that after adding them, there will be a tag 'L' in front of all mails from mutt-users mail list. lars On Tue, 02 Dec 2008, Ionel Mugurel Ciobica wrote: On 2-12-2008, at 19h 09'34, Chengqi(Lars) Song wrote about Replying a mail in a mail list Hi, When I'm replying a mail in a mail list, for example, a mail in mutt-users@mutt.org from [EMAIL PROTECTED], the default target is To: [EMAIL PROTECTED], how to changed it to the following? To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org Do I need something like hook? Could you please help me on this? Thanks. If you declare it as a mail list you can use `L' instead of `r' to replay. lists mutt-users@mutt.org #this declare the mail list (you will be cc-ed by list members) subscribe mutt-users@mutt.org #this tells mutt you are subscribed and you will not be cc-ed. Regards, Ionel
Displaying mails in thread mode
Hello, How to display mails in thread mode like Gmail does? Could you paste your thread-mode related settings? Thanks. Best Lars
Blocking when sending mail
Hello, Mutt is blocked when sending mail. It takes a long time if the mail is large. Is it possible to send mail in a non-blocking mode? Thanks Lars
Gmail style alias setting
Hello, Gmail can do a lot of work automatically, but I believe mutt can do it better. Such as alias setting, gmail can 1. store all mails appeared in all mail headers, e.g., From/To/CC/BCC 2. auto-complete when your key-in any part of a mail address. e.g., when you key in ab, addresses like [EMAIL PROTECTED] [EMAIL PROTECTED] Ab Barth, [EMAIL PROTECTED] will show up for your choice. 3. when storing alias, if the person's name is included in header, gmail will save it too, for example, if you receive a mail from Ab Barth, [EMAIL PROTECTED], the name and address will both be saved. Do you think it's possible to let mutt do the alias thing as smart as gmail? Please tell me how to. Thank you very much! Best Lars
How to re-distribute mails in inbox?
Dear All, Is it possible to sent all mails in Inbox to procmail to re-sort them again? Thanks. Best Lars
Re: How to re-distribute mails in inbox?
Hey all, I asked the original question and sorry i forgot to mention that my mails are in MailDir, and the for i in * do... solution works, thanks! best lars On Fri, 14 Nov 2008, Grant Edwards wrote: On 2008-11-14, Steve [EMAIL PROTECTED] wrote: What if inbox is maildir format? What if inbox is on an IMAP server? -- Grant Edwards grante Yow! Thousands of days of at civilians ... have produced visi.coma ... feeling for the aesthetic modules --
How to save all mail addresses of existing mails?
Hello, I have over 1000 mails and I want to save all the mail addresses appeared in them to aliases. Is there an easy way to do this? It will be frustrating to do it one by one. Best Lars