how to set up an macro to jump to a mail matching a pattern ?

2012-07-16 Thread chris
I want to bind key  to a macro which jump to a mail matching the pattern:
e.g. here is a pattern.
"~x .*@stardiviner"
I do not know where mutt has this function to jump to a mail.
macro index  

In one words:
I want this macro to do this:
Try to find whether has mail matching this pattern: "~x .*@stardiviner".
If not, then jump to another pattern "~P".
If not, then jump to next unread mail with 

Thanks in advance.

-- 
[ stardiviner ] ^^&^^ {I hate all of you !  Leave me alone}
IRC(freenode): stardiviner \\ Twitter:  @numbchild \\
GnuPG Key fingerprint
>>> 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433


signature.asc
Description: Digital signature


OT: tool/sw for syntax check of mail addr (RFC 3696)

2012-07-16 Thread Matthias Apitz


Hello,

Do we have anything in mutt which I could use to do a syntax check of
mail addrs as described in RFC 3696 (...)? Or are there any pointers to
such a tool, for C or Java? Thanks in advance

matthias
-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5


Re: Get Mutt and ISPs

2012-07-16 Thread Michelle Konzack
Hello Dave,

Am 2012-07-11 22:00:00, hacktest Du folgendes herunter:
> So what changes need to be made to .muttrc to get mutt to send
> email to my isp?

In your .muttrc:

set sendmail="/usr/bin/sendmail"

(sendmail is a symlink to msmtp)

and for msmtp you should read

man msmtp

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux
   Internet Service Provider, Cloud Computing


itsystems@tdnet Jabber  linux4miche...@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3   Tel office: +49-176-86004575
77694 Kehl  Tel mobil:  +49-177-9351947
Germany Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: OT: tool/sw for syntax check of mail addr (RFC 3696)

2012-07-16 Thread Michelle Konzack
Hello Matthias Apitz,

Am 2012-07-16 14:06:49, hacktest Du folgendes herunter:
> Do we have anything in mutt which I could use to do a syntax check of
> mail addrs as described in RFC 3696 (...)? Or are there any pointers to
> such a tool, for C or Java? Thanks in advance

Hehehe, currently I have not found a singel tool which  does  the  check
perfect, becaue the following mail ist 100% valid:

a~`*&^$_-={}'?b...@tamay-dogan.net

which is an alias to my standard E-Mail.  :-D

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux
   Internet Service Provider, Cloud Computing


itsystems@tdnet Jabber  linux4miche...@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3   Tel office: +49-176-86004575
77694 Kehl  Tel mobil:  +49-177-9351947
Germany Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: OT: tool/sw for syntax check of mail addr (RFC 3696)

2012-07-16 Thread Paul

On Monday, 16 July, 2012 at 13:06:49 BST, Matthias Apitz wrote:

Do we have anything in mutt which I could use to do a syntax check of
mail addrs as described in RFC 3696 (...)? Or are there any pointers to
such a tool, for C or Java? Thanks in advance


#!/usr/bin/env perl

use strict;
use warnings;
use Email::Valid;

print Email::Valid->address("a~`*&^\$_-={}'?b\@tamay-dogan.net") ? 'yes' : 'no';

--

.


Re: how to set up an macro to jump to a mail matching a pattern ?

2012-07-16 Thread David Champion
* On 16 Jul 2012, chris wrote: 
> I want to bind key  to a macro which jump to a mail matching the pattern:
> e.g. here is a pattern.
> "~x .*@stardiviner"
> I do not know where mutt has this function to jump to a mail.
> macro index  

It does; it's called "search".


> In one words:
> I want this macro to do this:
> Try to find whether has mail matching this pattern: "~x .*@stardiviner".
> If not, then jump to another pattern "~P".
> If not, then jump to next unread mail with 

That is harder though.  You can make a macro to search for any of those
patterns, but your logic as described amounts to a seqence of if/else
conditions, and you can't make a macro do that.

In other words, if you have messages in this order:

1. mail matching "~x .*@stardiviner"
...
10. mail matching "~N" (unread)
...
15. mail matching "~P"
...
30. mail matching "~x .*@stardiviner"

You can make a macro that skips from 1 to 10 to 15 to 30, but you can't
make a macro that goes from 1 to 30 to 15 to 10, which is what your
conditional logic describes.

-- 
David Champion • d...@uchicago.edu • IT Services • University of Chicago


Re: how to set up an macro to jump to a mail matching a pattern ?

2012-07-16 Thread chris
Excerpts from [ David Champion ]  On [2012-07-16 10:49:44 -0500]:

> * On 16 Jul 2012, chris wrote: 
> > I want to bind key  to a macro which jump to a mail matching the 
> > pattern:
> > e.g. here is a pattern.
> > "~x .*@stardiviner"
> > I do not know where mutt has this function to jump to a mail.
> > macro index  

> It does; it's called "search".


> > In one words:
> > I want this macro to do this:
> > Try to find whether has mail matching this pattern: "~x .*@stardiviner".
> > If not, then jump to another pattern "~P".
> > If not, then jump to next unread mail with 

> That is harder though.  You can make a macro to search for any of those
> patterns, but your logic as described amounts to a seqence of if/else
> conditions, and you can't make a macro do that.

> In other words, if you have messages in this order:

> 1. mail matching "~x .*@stardiviner"
> ...
> 10. mail matching "~N" (unread)
> ...
> 15. mail matching "~P"
> ...
> 30. mail matching "~x .*@stardiviner"
I have found one way to close my target a little:
macro index  "~N (~x .*@stardiviner)"

But I still do not know how to apply "?" into this patter. the "?" in this 
pattern seems is "literal". The "?" will call .

> You can make a macro that skips from 1 to 10 to 15 to 30, but you can't
> make a macro that goes from 1 to 30 to 15 to 10, which is what your
> conditional logic describes.

> -- 
> David Champion • d...@uchicago.edu • IT Services • University of Chicago

-- 
[ stardiviner ] ^^&^^ {I hate all of you !  Leave me alone}
IRC(freenode): stardiviner \\ Twitter:  @numbchild \\
GnuPG Key fingerprint
>>> 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433


signature.asc
Description: Digital signature


Re: how to set up an macro to jump to a mail matching a pattern ?

2012-07-16 Thread Tom Furie
On Tue, Jul 17, 2012 at 07:53:23AM +0800, chris wrote:
> I have found one way to close my target a little:
> macro index  "~N (~x .*@stardiviner)"
> 
> But I still do not know how to apply "?" into this patter. the "?" in this 
> pattern seems is "literal". The "?" will call .

Are you looking for '?' as the single character wildcard? That would be
'.'.

Cheers,
Tom

-- 
nominal egg:
New Yorkerese for expensive.


signature.asc
Description: Digital signature


Re: how to set up an macro to jump to a mail matching a pattern ?

2012-07-16 Thread chris
Excerpts from [ Tom Furie ]  On [2012-07-17 01:19:29 +0100]:

> On Tue, Jul 17, 2012 at 07:53:23AM +0800, chris wrote:
> > I have found one way to close my target a little:
> > macro index  "~N (~x .*@stardiviner)"

> > But I still do not know how to apply "?" into this patter. the "?" in this 
> > pattern seems is "literal". The "?" will call .

> Are you looking for '?' as the single character wildcard? That would be
> '.'.
No. I do not know what "?" does, but I guess it is about conditional.
I found "?" in this: macro index  "?"

> Cheers,
> Tom

> -- 
> nominal egg:
>   New Yorkerese for expensive.



-- 
[ stardiviner ] ^^&^^ {I hate all of you !  Leave me alone}
IRC(freenode): stardiviner \\ Twitter:  @numbchild \\
GnuPG Key fingerprint
>>> 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433


signature.asc
Description: Digital signature