Re: test shell env in .muttrc

2022-12-07 Thread Jon LaBadie

On Mon, Dec 05, 2022 at 06:18:05PM -0800, Will Yardley wrote:

On Mon, Dec 05, 2022 at 08:26:16PM -0500, Jon LaBadie wrote:


Perhaps I've overlooked the facility.  Is there a way to test the
shell environment in .muttrc?  Basically an "if" statement.

I enter mutt in several ways (direct, aliases, shell scripts,
functions, etc) and from several devices.  My smart phone needs a
different color scheme than the other devices.


I think there may be an internal way as well, but one option would be to
set an env var (e.g., TYPE) depending on the type of session, and then
do something like (untested):

source ~/.mutt/colors.${TYPE:-default}


Nice suggestion Will, tnx.

I chose XDG_SESSION_TYPE (automatically set: so far to either x11 or 
tty) and it seems to be doing what I was looking for.


--
Jon H. LaBadie j...@labadie.us
 154 Milkweed Dr (540) 868-8052 (H)
 Lake Frederick, VA 22630(703) 935-6720 (M)



Re: test shell env in .muttrc

2022-12-05 Thread Kevin J. McCarthy

On Mon, Dec 05, 2022 at 06:18:05PM -0800, Will Yardley wrote:

I think there may be an internal way as well, but one option would be to
set an env var (e.g., TYPE) depending on the type of session, and then
do something like (untested):

source ~/.mutt/colors.${TYPE:-default}


See also  for some examples of 
MuttLisp.  For example:


source (concat "~/.mutt/colors." (or $TYPE default))

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: test shell env in .muttrc

2022-12-05 Thread Will Yardley
On Mon, Dec 05, 2022 at 08:26:16PM -0500, Jon LaBadie wrote:

> Perhaps I've overlooked the facility.  Is there a way to test the
> shell environment in .muttrc?  Basically an "if" statement.
> 
> I enter mutt in several ways (direct, aliases, shell scripts,
> functions, etc) and from several devices.  My smart phone needs a
> different color scheme than the other devices.

I think there may be an internal way as well, but one option would be to
set an env var (e.g., TYPE) depending on the type of session, and then
do something like (untested):

source ~/.mutt/colors.${TYPE:-default}

Or you could key it on hostname, similar to this example:
https://lwn.net/Articles/587348/

You can also source a shell script to do some stuff
https://mutt-users.mutt.narkive.com/WovuIH31/conditionally-include-a-file-in-the-configuration

there may be some patches to support more within the config itself.
neomutt (which I don't use personally) has some support via this hook:
https://neomutt.org/feature/ifdef




test shell env in .muttrc

2022-12-05 Thread Jon LaBadie

Perhaps I've overlooked the facility.  Is there a way to
test the shell environment in .muttrc?  Basically an "if"
statement.

I enter mutt in several ways (direct, aliases, shell scripts,
functions, etc) and from several devices.  My smart phone
needs a different color scheme than the other devices.

It is easy enough to use a macro I have to rotate among
several color schemes, but I would prefer to automate it
on entry if possible.

Jon

--
Jon H. LaBadie j...@labadie.us
 154 Milkweed Dr (540) 868-8052 (H)
 Lake Frederick, VA 22630(703) 935-6720 (M)



Test

2019-03-25 Thread felixs
Test


Re: Test number two - spaces

2018-10-28 Thread Ian Zimmerman
Re-sending this to see if it is a reliable repro case.

On 2018-10-27 16:53, Ian Zimmerman wrote:

> > Oh, I feel the itch again.  Ow-ow, it's unbearable!  I must scratch,
> > 
> > Has anyone tried to verify Derek's GPG signature on his message?
> 
> Checking, checking, checking gently,
> Why it fails, that beats me.
> Bad sigs rub so unpleasantly.
> Let us check my own sweet key.

Ok, that worked.  Now let's try this: 
This line ends with a couple of dangling spaces.

Now _that_ would be really stupid!

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


signature.asc
Description: PGP signature


Re: Test number two - spaces

2018-10-28 Thread Kevin J. McCarthy
On Sun, Oct 28, 2018 at 08:55:00AM -0700, Ian Zimmerman wrote:
> Perhaps there is a little clue here.  Some kind of load balancing seems
> to be in effect at osuosl, different hosts (silver, whitealder,
> fraxinus, ash) are involved each time.  Possibly different amavis
> configuration on some of the hosts handling the outbound traffic.  Yes,
> I suspect amavis more than the other pieces; it should be the only piece
> that takes apart the MIME structure.

My Received headers match what you posted for the "Test number two"
email, and all the signatures verify for me.  In fact, I don't recall
seeing any failing signatures on this list, before or after the switch
to OSUOSL.

I would suspect something between OSUOSL and your spoolfile is causing
the problem.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Test number two - spaces

2018-10-28 Thread Ian Zimmerman
On 2018-10-28 04:19, Claus Assmann wrote:

> > RGH!!  I am losing my mind!!
> 
> Hopefully it's backed up somewhere...

;-)

> If you kept a copies of the mails which you originally sent
> and which you got back: what's the "diff"?

Indeed I have kept a file copy.  The diff confirms my suspicion that the
dangling spaces were the trigger.  I got this suspicion by looking at
Derek's messages, of which one verifies for me and the other does not.

  @@ -33,7 +89,7 @@
   > Let us check my own sweet key.

   Ok, that worked.  Now let's try this:=20
  -This line ends with a couple of dangling spaces.   =20
  +This line ends with a couple of dangling spaces.=20=20=20=20

   Now _that_ would be really stupid!

This does not tell us at which hop it happens, which software is
responsible, or (especially) why it depends on the _recipient_ aside
from all other things.

> Received: from localhost (localhost [127.0.0.1])
>   by silver.osuosl.org (Postfix) with ESMTP id A9B91227F9;
>   Sun, 28 Oct 2018 03:42:34 + (UTC)
> Received: from silver.osuosl.org ([127.0.0.1])
>   by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
>   with ESMTP id R3tMY4OIzjA6; Sun, 28 Oct 2018 03:42:33 + (UTC)
> Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
>   by silver.osuosl.org (Postfix) with ESMTP id 4C728227C1;
>   Sun, 28 Oct 2018 03:42:33 + (UTC)
> Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])
>  by ash.osuosl.org (Postfix) with ESMTP id C57471BF61D
>  for ; Sun, 28 Oct 2018 03:42:32 + (UTC)
> Received: from localhost (localhost [127.0.0.1])
>  by whitealder.osuosl.org (Postfix) with ESMTP id C2B3B86767
>  for ; Sun, 28 Oct 2018 03:42:32 + (UTC)
> Received: from whitealder.osuosl.org ([127.0.0.1])
>  by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
>  with ESMTP id 9o-8499bbnC7 for ;
>  Sun, 28 Oct 2018 03:42:32 + (UTC)

Perhaps there is a little clue here.  Some kind of load balancing seems
to be in effect at osuosl, different hosts (silver, whitealder,
fraxinus, ash) are involved each time.  Possibly different amavis
configuration on some of the hosts handling the outbound traffic.  Yes,
I suspect amavis more than the other pieces; it should be the only piece
that takes apart the MIME structure.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


Re: Test number two - spaces

2018-10-28 Thread Claus Assmann
On Sat, Oct 27, 2018, Ian Zimmerman wrote:
> On 2018-10-27 18:23, Claus Assmann wrote:

> > Just FYI: both test mails passed verification for me.

> RGH!!  I am losing my mind!!

Hopefully it's backed up somewhere...

> Here are the intermediate Received headers of the 2nd test mail as it
> came back to me.  Can you share the ones in your copy?

I deleted the mails already :-(
However, below are the Received headers of your most recent mail.

If you kept a copies of the mails which you originally sent
and which you got back: what's the "diff"?

Moreover, I downloaded the "raw" message from the MARC archive,
added some headers, and it verifies too. So I'm attaching that
as .gz file so it doesn't get messed up by some mail software.


Received: from localhost (localhost [127.0.0.1])
by silver.osuosl.org (Postfix) with ESMTP id A9B91227F9;
Sun, 28 Oct 2018 03:42:34 + (UTC)
Received: from silver.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id R3tMY4OIzjA6; Sun, 28 Oct 2018 03:42:33 + (UTC)
Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
by silver.osuosl.org (Postfix) with ESMTP id 4C728227C1;
Sun, 28 Oct 2018 03:42:33 + (UTC)
Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])
 by ash.osuosl.org (Postfix) with ESMTP id C57471BF61D
 for ; Sun, 28 Oct 2018 03:42:32 + (UTC)
Received: from localhost (localhost [127.0.0.1])
 by whitealder.osuosl.org (Postfix) with ESMTP id C2B3B86767
 for ; Sun, 28 Oct 2018 03:42:32 + (UTC)
Received: from whitealder.osuosl.org ([127.0.0.1])
 by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 9o-8499bbnC7 for ;
 Sun, 28 Oct 2018 03:42:32 + (UTC)
Received: from very.loosely.org (very.loosely.org [173.255.215.69])
 by whitealder.osuosl.org (Postfix) with ESMTPS id 2D87886761
 for ; Sun, 28 Oct 2018 03:42:32 + (UTC)
Received: from itz by ahiker.mooo.com with local (Exim 4.91_26-9591063a)
 (envelope-from ) id 1gGbtd-PD-8F
 for mutt-users@mutt.org; Sat, 27 Oct 2018 20:37:49 -0700



m2.gz
Description: application/gunzip


Re: Test number two - spaces

2018-10-27 Thread Ian Zimmerman
On 2018-10-27 18:23, Claus Assmann wrote:

> Just FYI: both test mails passed verification for me.

RGH!!  I am losing my mind!!

Here are the intermediate Received headers of the 2nd test mail as it
came back to me.  Can you share the ones in your copy?

  Received: from localhost (localhost [127.0.0.1])
  by fraxinus.osuosl.org (Postfix) with ESMTP id D1C788647F;
  Sun, 28 Oct 2018 00:22:33 + (UTC)
  X-Virus-Scanned: amavisd-new at osuosl.org
  Received: from fraxinus.osuosl.org ([127.0.0.1])
  by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
  with ESMTP id Ml_6-3RG8bAN; Sun, 28 Oct 2018 00:22:33 + (UTC)
  Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
  by fraxinus.osuosl.org (Postfix) with ESMTP id 3765E85F89;
  Sun, 28 Oct 2018 00:22:33 + (UTC)
  X-Original-To: mutt-users@mutt.org
  Delivered-To: mutt-us...@osuosl.org
  Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])
   by ash.osuosl.org (Postfix) with ESMTP id 10D901BF2F0
   for ; Sun, 28 Oct 2018 00:22:32 + (UTC)
  Received: from localhost (localhost [127.0.0.1])
   by silver.osuosl.org (Postfix) with ESMTP id 0E833220C2
   for ; Sun, 28 Oct 2018 00:22:32 + (UTC)
  X-Virus-Scanned: amavisd-new at osuosl.org
  Received: from silver.osuosl.org ([127.0.0.1])
   by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
   with ESMTP id IzrZogh12v0Z for ;
   Sun, 28 Oct 2018 00:22:31 + (UTC)
  X-Greylist: from auto-whitelisted by SQLgrey-1.7.6

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


Re: Test number two - spaces

2018-10-27 Thread Ian Zimmerman
On 2018-10-27 17:19, Ian Zimmerman wrote:

> Ok, that worked.  Now let's try this: 
> This line ends with a couple of dangling spaces.
> 
> Now _that_ would be really stupid!

And so it is - that one failed :-(

The best available conclusion is that at one the the hops on osuosl.org,
mails get rewritten in a way similar to what I described at the link
below.

https://very.loosely.org/itz-blog/the-problem-with-gpg-signatures.html

Which is depressing because the software involved seems to be all FOSS -
mailman, postfix and amavis.  Should I guess which one is responsible?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


Re: Test number two - spaces

2018-10-27 Thread Claus Assmann
On Sun, Oct 28, 2018, Ken Moffat wrote:

> 3. Neither the post you were asking about, nor either of your tests,
> passed verification here.

Just FYI: both test mails passed verification for me.


Re: Test number two - spaces

2018-10-27 Thread Ken Moffat
On Sat, Oct 27, 2018 at 05:19:23PM -0700, Ian Zimmerman wrote:
> On 2018-10-27 16:53, Ian Zimmerman wrote:
> 
> > > Oh, I feel the itch again.  Ow-ow, it's unbearable!  I must scratch,
> > > 
> > > Has anyone tried to verify Derek's GPG signature on his message?
> > 
> > Checking, checking, checking gently,
> > Why it fails, that beats me.
> > Bad sigs rub so unpleasantly.
> > Let us check my own sweet key.
> 
> Ok, that worked.  Now let's try this: 
> This line ends with a couple of dangling spaces.
> 
> Now _that_ would be really stupid!
> 
For the *very* little it is worth:

1. On lkml I typically get successful and failed verifications from
the same people.

2. On the few occasions I have bothered to sign posts, the list copy
that comes back to me fails to verify.

3. Neither the post you were asking about, nor either of your tests,
passed verification here.

/me wonders why I ever bothered to set up a key, since it wastes
time when reading lists, and only randomly works. ;-)

ĸen
-- 
Is it about a bicycle ?


Re: Test number two - spaces

2018-10-27 Thread Ian Zimmerman
On 2018-10-27 16:53, Ian Zimmerman wrote:

> > Oh, I feel the itch again.  Ow-ow, it's unbearable!  I must scratch,
> > 
> > Has anyone tried to verify Derek's GPG signature on his message?
> 
> Checking, checking, checking gently,
> Why it fails, that beats me.
> Bad sigs rub so unpleasantly.
> Let us check my own sweet key.

Ok, that worked.  Now let's try this: 
This line ends with a couple of dangling spaces.

Now _that_ would be really stupid!

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


signature.asc
Description: PGP signature


Test number one - single part, just ascii [Was: sigs again]

2018-10-27 Thread Ian Zimmerman
On 2018-10-27 10:25, Ian Zimmerman wrote:

> Oh, I feel the itch again.  Ow-ow, it's unbearable!  I must scratch,
> 
> Has anyone tried to verify Derek's GPG signature on his message?

Checking, checking, checking gently,
Why it fails, that beats me.
Bad sigs rub so unpleasantly.
Let us check my own sweet key.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


signature.asc
Description: PGP signature


urlview not listing test - 3rd

2016-09-19 Thread Miroslav Rovis
Hi!

It's about urlview not doing the work, and I'd like to see if my Mutt:

Mutt 1.6.2 (2016-07-01)
...
System: Linux 4.7.2-hardened-r1-160906 (x86_64)
ncurses: ncurses 6.0.20150808 (compiled with 6.0)
libidn: 1.33 (compiled with 1.32)
...
Compiler:
Using built-in specs.
...
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/5.4.0/lto-wrapper
...
Configured with: /var/tmp/portage/sys-devel/gcc-5.4.0/work/gcc-5.4.0/configure 
...

(I just noticed, as I'm second-time proofreading this or so, that the above
line is suspicious to me, that's the build dir in Gentoo, and it's been empty
since my last system update... Could that be something bad, how bad?...)

( But anyway, pls. see what my Mutt is like by gunzip'ing the attached:
Mutt-1.6.2.txt.gz
  ; it's not built with emerge --they use the sidebar and do not keep to
mainstream Mutt--, but I compiled it out-of-portage, the, let's call it
linux-form-scratch way... )

Or is my urlview maybe old...? Looking it up:

# equery l urlview
 * Searching for urlview ...
[IP-] [  ] net-misc/urlview-0.9:0
#
And that's the only one available in my Gentoo Portage, so I doubt.

What the problem is, the urlview will not find the links correctly. Pls.
follow on.

gunzip this attached email:
t-com_racun.O.eml.gz (O for original)

( you can also download it from:
http://www.croatiafidelis.hr/cenz/iskon-tcom-mr/message/20160913.203031.48fe8c4f.en.html
more exactly from where it reads: "Poruka kao e-pismo" (means "Message
as email"):
http://www.croatiafidelis.hr/cenz/iskon-tcom-mr/mbox/20160913.203031.48fe8c4f.rfc822
)

Try to open that t-com_racun.O.eml email with:

$ mutt -f t-com_racun.O.eml

The folder opens. Hit Enter to view the email. Now do:
^B

If it's not just my Mutt, then you will get this what I paste (just I did
sed 's/http/htNOtp/' and such, to not clutter with links):

===
UrlView 0.9: (25 matches) Press Q or Ctrl-C to Quit!

->1 
htNOtp://www.mailchimp.com/abuse/abuse.phtml?u=0d5eb20e6e39c5bf888683064=daad2b5f43=40bc5160c5
  2 
mailNOto:unsubscribe-mc.us9_0d5eb20e6e39c5bf888683064.daad2b5f43-40bc516...@mailin1.us2.mcsv.net?subject=unsubscribe
  3 
htNOtp://hrvatskitelekom.us9.list-manage.com/unsubscribe?u=0d5eb20e6e39c5bf888683064=6706e0975c=40bc5160c5=daad2b5f43
  4 www.hrvatskitelekom.hr/
  5 htNOtps://moj.hrvatskitelekom.hr/publi=
  6 htNOtps://play.google.com/store/apps/details?id=3Dcom.hrv=
  ...[14 lines cut here]...
 21 htNOtp://hrvatskitelekom.us9.list-manage.c=
 22 htNOtp://hrvatskitelekom.=
 23 
htNOtp://hrvatskitelekom.us9.list-manage.com/unsubscribe?u=3D0d5eb20e6e39c5=
 24 htNOtp://hrvatskitelekom.us9.list-manage1.com/profile?u=3D0d5eb20e=
 25 htNOtp://hrvatskitelekom.us9.list-manage.co=
===
(without the "===" lines).

And that's not the links that are in this email.

Do the following in your own $EDITOR, but the below is quicker for me to
explain than generally. (I also tried to do this editing with sed, but
didn't make it.)

Open the original email in Vim. Type exactly this:
:%s/=\n//gc
, which will ask you to remove all instances of two chars: char '=' (without
quotes) followed by newline.

(If you are using some other editor, short explanation:) in Vim you are
asked to do that on instances found from top to bottom.

Skip only first three (don't remove them!) and then just press 'a' which
will remove all the remaining 114 instances (in 42 lines). Save that
file as:

t-com_racun.eml

And now the urlview works! Try it:

$ mutt -f t-com_racun.eml

and then:
^B

That gets you:

===
UrlView 0.9: (24 matches) Press Q or Ctrl-C to Quit!

->1 
htNOtp://www.mailchimp.com/abuse/abuse.phtml?u=0d5eb20e6e39c5bf888683064=daad2b5f43=40bc5160c5
  2 
mailNOto:unsubscribe-mc.us9_0d5eb20e6e39c5bf888683064.daad2b5f43-40bc516...@mailin1.us2.mcsv.net?subject=unsubscribe
  3 
htNOtp://hrvatskitelekom.us9.list-manage.com/unsubscribe?u=0d5eb20e6e39c5bf888683064=6706e0975c=40bc5160c5=daad2b5f43
  4 
htNOtps://www.hrvatskitelekom.hr/webresources/newsletter/03-2016-e-racun-mail.html?utm_source=3Dnewsletter-ht_medium=3Demail_content=3Dnl-web_campaign=3De-racun-mail-09-2016
  5 
htNOtps://moj.hrvatskitelekom.hr/public?utm_source=3Dnewsletter-ht_medium=3Demail_content=3Dmoj-t_campaign=3De-racun-mail-09-2016
  6 
htNOtps://play.google.com/store/apps/details?id=3Dcom.hrvatskitelekom.m.mojT=3Dhr_source=3Dnewsletter-ht_medium=3Demail_content=3Dandroid_campaign=3De-racun-mail-09-2016
  7 
htNOtps://itunes.apple.com/us/app/moj-telekom-hr/id1076967450?mt=3D8_source=3Dnewsletter-ht_medium=3Demail_content=3Dios_campaign=3De-racun-mail-09-2016
 ...[14 lines cut here]...
 22 
htNOtp://hrvatskitelekom.us9.list-manage.com/track/click?u=3D0d5eb20e6e39c5bf888683064=3D212a61a16c=3D40bc5160c5
 23 

Re: GPG test

2011-06-12 Thread Chris Brennan
OK! I got creative and pretty much re-write my ~/.mutt/gpg.rc, ct now
contains the following:

# vim: syntax=muttrc

# -*-muttrc-*-

# These settings are from /usr/share/doc/mutt-1.5.21-r1/samples/gpg.rc
#
set pgp_sign_as=0xD5B20C0C
#set pgp_sign_as=0x6748EE46C7D11FB8DA89E4AEECD9A84D5B20C0C
#set pgp_sign_as=0xeecd9a84d5b20c0c

#set pgp_decode_command=gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose 
--quiet --batch --output - %f
#set pgp_verify_command=gpg --status-fd=2 --no-verbose --quiet --batch 
--output - --verify %s %f
#set pgp_decrypt_command=gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose 
--quiet --batch --output - %f
#set pgp_sign_command=gpg --no-verbose --batch --quiet --output - 
%?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f
#set pgp_clearsign_command=gpg --no-verbose --batch --quiet --output - 
%?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f
#set pgp_encrypt_only_command=pgpewrap gpg --batch --quiet --no-verbose 
--output - --encrypt --textmode --armor --always-trust -- -r %r -- %f
#set pgp_encrypt_sign_command=pgpewrap gpg %?p?--passphrase-fd 0? --batch 
--quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor 
--always-trust -- -r %r --
#set pgp_import_command=gpg --no-verbose --import %f
#set pgp_export_command=gpg --no-verbose --export --armor %r
#set pgp_verify_key_command=gpg --verbose --batch --fingerprint --check-sigs 
%r
#set pgp_list_pubring_command=gpg --no-verbose --batch --quiet --with-colons 
--list-keys %r
#set pgp_list_secring_command=gpg --no-verbose --batch --quiet --with-colons 
--list-secret-keys %r
##set pgp_good_sign=`gettext -d gnupg -s 'Good signature from ' | tr -d ''`
#set pgp_good_sign=^\\[GNUPG:\\] GOODSIG
#

# These settings are from http://wiki.mutt.org/?MuttGuide/UseGPG
#
set pgp_decode_command=gpg %?p?--passphrase-fd 0? --no-verbose --batch 
--output - %f
set pgp_verify_command=gpg --no-verbose --batch --output - --verify %s %f
set pgp_decrypt_command=gpg --passphrase-fd 0 --no-verbose --batch --output - 
%f
set pgp_sign_command=gpg --no-verbose --batch --output - --passphrase-fd 0 
--armor --detach-sign --textmode %?a?-u %a? %f
set pgp_clearsign_command=gpg --no-verbose --batch --output - --passphrase-fd 
0 --armor --textmode --clearsign %?a?-u %a? %f
set pgp_encrypt_only_command=pgpewrap gpg --batch --quiet --no-verbose 
--output - --encrypt --textmode --armor --always-trust --encrypt-to 0xC9C40C31 
-- -r %r -- %f
set pgp_encrypt_sign_command=pgpewrap gpg --passphrase-fd 0 --batch --quiet 
--no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor 
--always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f
set pgp_import_command=gpg --no-verbose --import -v %f
set pgp_export_command=gpg --no-verbose --export --armor %r
set pgp_verify_key_command=gpg --no-verbose --batch --fingerprint --check-sigs 
%r
set pgp_list_pubring_command=gpg --no-verbose --batch --with-colons 
--list-keys %r
set pgp_list_secring_command=gpg --no-verbose --batch --with-colons 
--list-secret-keys %r
set pgp_good_sign=^\\[GNUPG:\\] GOODSIG
#

# below settings from Jostein Berntsen jber...@broadpark.no
#
set pgp_autosign=no
set pgp_autoencrypt=no
set pgp_ignore_subkeys=yes
set pgp_entry_format=%4n %t%f %4l/0x%k %-4a %2c %u
set pgp_long_ids=no
set pgp_replyencrypt=yes
set pgp_replysign=no
set pgp_replysignencrypted=no
set pgp_retainable_sigs=no
set pgp_show_unusable=yes
set pgp_strict_enc=yes
set pgp_timeout=300
set pgp_verify_sig=no
set pgp_sort_keys=address
set pgp_create_traditional=no
#

# below are settings I found on my own
set my_header=X-PGP-Key: http://www.fahque.net/0xD5B20C0C.asc; # 
http://wiki.mutt.org/?MuttGuide/UseGPG
set pgp_use_gpg_agent = yes # 
http://therning.org/magnus/archives/106
set crypt_verify_sig=yes# 
http://wiki.mutt.org/?MuttGuide/UseGPG

# EOF

I tried to keep thinks as neat and organized as I could, the first 
block from /usr/share/doc/mutt-1.5.21-r1/samples/gpg.rc is completely
commented out except for the line to set my key. The rest of the blocks
I have created, I tried to ensure there were no duplicate or contrary 
settings.

As it stands, when I try to read encrypted mail with mutt I get the 
following message (after my password):

Invoking PGP... and then the message almost immediately switches to
Could not copy message and the encrypted messages remains unopened.

So that's where it stands right now, I've gotten further then before in
that I am no longer getting the bad passphrase error as I was before.

*EDIT* Check that, I tried to sign this mail and it failed, say hello to
my little friend bad passphrase.

-- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

Re: bkgdtest: a test for the extra spaces at the end of lines

2010-08-10 Thread Cameron Simpson
On 10Aug2010 02:25, Vincent Lefevre vinc...@vinc17.org wrote:
| On 2010-08-09 09:36:02 -0700, Michael Elkins wrote:
|  This was buried deep in a thread, so I am reposting for wider publication.
|  
|  Several people have complained that when selected text in the pager
|  that there is extra space at the end of pasted blocks.  This test
|  program is to help diagnose the problem.
| 
| Note that screen has bce support (I'm using TERM=screen-bce), but
| I sometimes get spaces at the end of lines in it (at least when
| switching window). The problem seems to come from screen, though.
| I reported it here:
| 
|   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578729

I can imagine it happening if the terminal _displaying_ the screen session
does not have bce...
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/


TEST: posts not getting through

2009-02-18 Thread Ennio-Sr
Sorry: trying to understand why my posts do not get through!

-- 
[Why use Win$ozz (I say) if ... even a fool can do that.  \\?//
 Do something you aren't good at! (as Henry Miller used to say)]  (°|°)
Regards, Ennio. )=(


test, please ignore

2008-10-20 Thread Brendan Cully
I'm testing whether posts to mutt-users are still generating
challenge-response messages.


a test .. sorry :(

2007-02-24 Thread Matt Richards
test message ...

I have setup lists in my mutt, but whenever I use it I dont seem to get
the message back to my mail server, normal email works fine and 'r' use
to work fine aswell, even if I did have to change the address manually.

humm ...


pgpl2dqLxPPh6.pgp
Description: PGP signature


mbox parsing test file

2002-04-16 Thread Volker Kuhlmann

There is this

  Mail client test file v0.5 (55kb): This mbox file triggers some bugs
  and has very long field values to trigger buffer overflows. 

at http://kmail.kde.org/mail-client-QA.gz . Mutt doesn't crash, but
shows only 18 mails whereas kmail shows 20. I guess that has to do with
different interpretation of From_. Is mutt supposed to behave as it
does?

Volker

-- 
Volker Kuhlmann is possibly list0570 with the domain in header
http://volker.orcon.net.nz  Please do not CC list postings to me.




Re: mbox parsing test file

2002-04-16 Thread Michael Tatge

Volker Kuhlmann ([EMAIL PROTECTED]) muttered:
   Mail client test file v0.5 (55kb): This mbox file triggers some bugs
   and has very long field values to trigger buffer overflows. 
 
 at http://kmail.kde.org/mail-client-QA.gz . Mutt doesn't crash, but
 shows only 18 mails whereas kmail shows 20. I guess that has to do with
 different interpretation of From_. Is mutt supposed to behave as it
 does?

Mutt does not see the last two mails:

X-From_: [EMAIL PROTECTED]  Fri Jun 16 00:15:22 2000
Subject: Date in 1975

From bla [EMAIL PROTECTED] Sat Jul 15 20:37:05 2000
X-From_: [EMAIL PROTECTED]  Sat Jul 15 20:36:34 2000
Subject: HTML only

Guess it does not recognize the two ^From_ lines because of the special
format. All other ^From_ lines look like this:

From aaa@aaa Mon Jan 01 00:00:00 1997

The other format is obviously the mailer test in this case. See X-From_:
Mutt failed.
Mutt also fails with Dates. If you sort by date/date the order is not
correct.

Michael
-- 
Problem solving under linux has never been the circus that it is under
AIX.
(By Pete Ehlke in comp.unix.aix)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: mbox parsing test file

2002-04-16 Thread Michael Elkins

Michael Tatge wrote:
 From bla [EMAIL PROTECTED] Sat Jul 15 20:37:05 2000
 X-From_: [EMAIL PROTECTED]  Sat Jul 15 20:36:34 2000
 Subject: HTML only
 
 Guess it does not recognize the two ^From_ lines because of the special
 format. All other ^From_ lines look like this:

Mutt expects the address to be a single token, so if it contains spaces it
should be double quoted.

 Mutt also fails with Dates. If you sort by date/date the order is not
 correct.

Probably because the timezone is missing.  Mutt expects dates of the form:
Tue Apr 16 09:21:34 PDT 2002




just a test for outgoing-mail via mutt exim

2001-10-27 Thread tphuong


Hi mutt-users,

I've installed mutt and exim for the first time and I don't know where to test them . 
So, excuse me if I disturb you with that .

mutt-user newbie

bye, 

mail from [EMAIL PROTECTED]




Test mail via mutt Exim

2001-10-27 Thread tphuong


Hi, excuse me for a test mail
with Mutt and Exim
As I don't where to send a echo -mail 

bye ,
from me [EMAIL PROTECTED]




test command in shell (was Re: Archivation through mutt?)

2001-09-25 Thread Olaf Schulz

Hallo Matj, 
I did not read your script but I want to answer your shell question:

On Tue, Sep 25, 2001 at 11:15:32AM -0400, Matj Cepl wrote:
  [...mail archival script...]

 I have divided script into two, because I was not able to debugg 
 your find command. However, I have now problem with bash. 
 Consider following screenshot:
 
 mail $ test -f ./sluzebni/; echo $?
testing if an ordinary file ./sluzebni/ exists
 1
no.

 mail $ test -d ./sluzebni/; echo $?
testing if  ./sluzebni/ is a directory.
 0
yes.
 mail $ ll
 total 332
 -rw-rw-r--1 matejmatej   0 kv  3 19:30 drafts
 drwxrwxr-x2 matejmatej4096 z  9 15:54 list
 drwxrwxr-x2 matejmatej4096 z 25 10:26 pratele
 -rw-rw-r--1 matejmatej  270658 kv  2 06:03 sent-200104
 -rw-rw-r--1 matejmatej   45374 kv  3 20:58 sent-200105
 drwxrwxr-x2 matejmatej4096 z 25 10:48 sluzebni
 
 If understand my bash manpage well, the second command should 
 produce 1 too. Have you any idea why it doesn't? I am using bash 
 2.04.11(1)-release on RedHat GNU/Linux 7.0.

two things, very general in unix:
in the shell a return code 0 means "OK, no errors, true"
in opposite to most programming and scripting languages where
0 is associated with false and values different from 0 with true.

what test (a shell builtin for bash) does, I wrote above.
ask your shell: help test 
to get a full list of it's behaviour.


Olaf
extra for you switched my font to iso8859-2



Re: test command in mailcap not recognizing %s

2001-08-18 Thread Gary Johnson

On Fri, Jul 27, 2001 at 12:29:09AM -0400, Joel Hammer wrote:
 I don't know how to make mutt distinguish between pdf and word (doc)
 documents. They both show up as octet stream. So, I am trying to put a test
 command into my mailcap file to test which type of file is attached, doc or
 pdf. I am not having much luck, so I think I need some help.

This is a common problem.  One solution has been to write a script that
is invoked to view any application/octet-stream attachment and let that
script choose the appropriate viewer based on the file name extension of
the attachment.  For an example, see

http://www.spocom.com/users/gjohnson/mutt/#octet

Another solution has been to modify mutt itself to scan the mime.types
file for the application type corresponding to the file name extension,
then scan the mailcap file again to find the viewer for this application
type.  I don't have a reference handy for this patch, but it's been
discussed in the mutt-dev list.

 Here is my mailcap line for pdf:
 
 application/octet-stream;/opt/Acrobat3/bin/acroread %s; 
test=/usr/local/bin/mutt-testpdf %s 
 
 Here is my script to test for the pdf file:
 
 echo This is 0 $0   /home/jlh/junk
 echo This is 1 $1   /home/jlh/junk
 echo This is all $*  /home/jlh/junk
 i=`echo $0 | sed -n /\.pdf$/p`
 [ -n $i ]  echo 0 || echo 1 
 
 Now, I have found many difficulties.
 First, %s never gets carried over into my script, which I test by looking at that 
junk file.

I've noticed that, too.  I don't know why it seems to work every place
except the test field.

 If I put a constant string in place of %s, then it shouws up as $1.
 $0 shows the name of the command. I thought that sh -c makes the first argument $0, 
not $1.

Nope.  $0 is always the name by which the command was invoked and $1 is
always the first argument.

 Finally, if I  make my test script just echo a 1, acroread is still
 invoked.

'echo 1' will put an ASCII 1 on your script's stdout.  You want to set
the return value of the script, which is done with the 'exit' command,
e.g., 'exit 0' for success and 'exit 1' for failure.  Since the exit
status of a script is the exit status of the last command, you could
simply end your script with

test -n $i

Of course, your script isn't going to work since you can't pass it the
file name, but at least you've learned a little about shell scripts.

 So, I am really confused. 
 Any insight appreciated.

HTH,
Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Uppercase - lowercase in 'test=...' in .mailcap

2001-07-31 Thread William Park

In my ~/.mailcap, I have

text/html; netscape %s; nametemplate=%s.html; test=ps -C X 1/dev/null 2/dev/null

It seems that Mutt translates the uppercase
ps -C ...
to lowercase
ps -c ...

Anyone have solution for this?  I'm running Mutt-1.2.5i.

-- 
William Park, Open Geometry Consulting, [EMAIL PROTECTED]
8 CPUs cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc.



test command in mailcap not recognizing %s

2001-07-27 Thread Joel Hammer

I don't know how to make mutt distinguish between pdf and word (doc)
documents. They both show up as octet stream. So, I am trying to put a test
command into my mailcap file to test which type of file is attached, doc or
pdf. I am not having much luck, so I think I need some help.

Here is my mailcap line for pdf:

application/octet-stream;/opt/Acrobat3/bin/acroread %s; 
test=/usr/local/bin/mutt-testpdf %s 

Here is my script to test for the pdf file:

echo This is 0 $0   /home/jlh/junk
echo This is 1 $1   /home/jlh/junk
echo This is all $*  /home/jlh/junk
i=`echo $0 | sed -n /\.pdf$/p`
[ -n $i ]  echo 0 || echo 1 

Now, I have found many difficulties.
First, %s never gets carried over into my script, which I test by looking at that junk 
file.
If I put a constant string in place of %s, then it shouws up as $1.
$0 shows the name of the command. I thought that sh -c makes the first argument $0, 
not $1.
Finally, if I  make my test script just echo a 1, acroread is still
invoked.
So, I am really confused. 
Any insight appreciated.
Joel






test

2001-03-18 Thread Dave Murray

I keep getting bounced off of lists, just checking



Test - Please ignore...

2001-02-17 Thread Jerome De Greef

Hurm, not received any mail since 02/11...

-- 
+---+
| Jerome De Greef | [EMAIL PROTECTED] |   [EMAIL PROTECTED]|
+-+[EMAIL PROTECTED]|  [EMAIL PROTECTED]  |
  +-+




Test

2000-11-04 Thread root

I am just a test mail
Please ignore me...




Re: Test

2000-11-04 Thread Rafael A . Schmitt

me too :)
* root ([EMAIL PROTECTED]) wrote:
 I am just a test mail
 Please ignore me...

   Rafael.
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  | Rafael Alexandre Schmitt| 
  | Blumenau -   Santa Catarina -  Brasil   |
  | Powered by Debian 2.2 (Potato)  |
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  




Re: Test

2000-11-04 Thread TrappedVector

Received Sat, Nov 04, 2000 at 06:16:00PM + from [EMAIL PROTECTED] (Rafael A . 
Schmitt)
 me too :)
 * root ([EMAIL PROTECTED]) wrote:
  I am just a test mail
  Please ignore me...
 

ok - so everythings working fine.

thnx

-- 
Random Fortune Message :
Linux - The way to fly so high!



Re: [OT] Re: Anyone has a good mailcap RunningX test?

2000-08-04 Thread Jan Houtsma

On Fri, Aug 04, 2000 at 12:42:59AM +0300, Mikko H?nninen wrote:
 Jan Houtsma [EMAIL PROTECTED] wrote on Thu, 03 Aug 2000:
  Only thing that works is manually unsetting $DISPLAY.
 
 Having $DISPLAY defined usually means that there's an X session running.
 Why do you have it defined anyway (in that telnet session) if you're not
 doing stuff from inside an X environment?  I'd look into fixing whatever
 is setting that environment variable for your telnet session...
 

Yes you are completely right. Thats exactly what i overlooked.
I wasn't aware that it was set from my /etc/zshenv file and i have no
idea why i ever put it in there anyways (must have been years ago already). 
I removed it and now its fine. 
Thanks,
jan




Anyone has a good mailcap RunningX test?

2000-08-03 Thread Jan Houtsma

Hi!

from my mailcap:
text/html;  netscape %s; test=RunningX
text/html;  lynx %s
text/html;  lynx -dump %s; copiousoutput

Where can i find a decent RunningX script?

What i want is to run netscape only when i run mutt locally on my pc at home
within the window manager. However when i am at work and telnet to my house
and start mutt from there i don't want it to start netscape but lynx or w3m.

Testing only $DISPLAY isn't good enough cause when i telnet to house 
it's still set to :0. And also X is found to be a running process because
at home i only locked my screen.
So i am looking for a way to test if i am running mutt really locally.

Who has the ultimate test to do this?
Thanks,
jan

-- 
   ___ ___ ___
  /  //  //  /  Jan H. Houtsma
 /  //  //  /   Comeniushof 92
/  //  //  /1216 HH Hilversum
 ___   /  _   _   / Netherlands
/  /  /  //  //  /  
   /  /__/  //  //  /   http://www.houtsma.net
  ///__//__/[EMAIL PROTECTED]



Re: Anyone has a good mailcap RunningX test?

2000-08-03 Thread Gary Johnson

On Thu, Aug 03, 2000 at 12:00:32PM +0200, Jan Houtsma wrote:

 Where can i find a decent RunningX script?
 
 What i want is to run netscape only when i run mutt locally on my pc at home
 within the window manager. However when i am at work and telnet to my house
 and start mutt from there i don't want it to start netscape but lynx or w3m.
 
 Testing only $DISPLAY isn't good enough cause when i telnet to house 
 it's still set to :0. And also X is found to be a running process because
 at home i only locked my screen.
 So i am looking for a way to test if i am running mutt really locally.

I have the same situation, except that I run mutt on my workstation at
work and telnet from home.  I use the RunningX program available from

http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c

Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | RF Communications Product Generation Unit
 | Spokane, Washington, USA




Re: Anyone has a good mailcap RunningX test?

2000-08-03 Thread Jan Houtsma

On Thu, Aug 03, 2000 at 11:20:07AM -0700, Gary Johnson wrote:
 On Thu, Aug 03, 2000 at 12:00:32PM +0200, Jan Houtsma wrote:
 
  Where can i find a decent RunningX script?
  
  What i want is to run netscape only when i run mutt locally on my pc at home
  within the window manager. However when i am at work and telnet to my house
  and start mutt from there i don't want it to start netscape but lynx or w3m.
  
  Testing only $DISPLAY isn't good enough cause when i telnet to house 
  it's still set to :0. And also X is found to be a running process because
  at home i only locked my screen.
  So i am looking for a way to test if i am running mutt really locally.
 
 I have the same situation, except that I run mutt on my workstation at
 work and telnet from home.  I use the RunningX program available from
 
 http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c
 
I downloaded the program and tested it. If you feed it an option it 
says "yes" or "no" dependent upon if it would return 0 or 1.

Regretfully it doesnt work. 

I tested it from another computer (windows box). From that box i log
into my linux server (which happens to have X running) and when i
run RunningX, it answers "yes". So thats wrong. Since i am not sitting at that
computer it should answer "no". Because now when i run mutt and view
an url it starts netscape on the server where i am not sitting an which
i can not see!  It should start lynx instead in the window i am sitting at at 
the other computer. 

Only thing that works is manually unsetting $DISPLAY.
Are there other solutions??



Re: Anyone has a good mailcap RunningX test?

2000-08-03 Thread Jan Houtsma

Never mind my stupid question. I just found a line DISPLAY=:0.0 in
my /etc/zshenv file which always (so also at a telnet session) 
sets the DISPLAY variable, which caused netscape to start instead of 
lynx or w3m when, from mutt, i visited an url in a telnet window.
I appologize and close this thread.

btw mutt is a wonderful program! I even use it at work now. 
thanks,

jan
-- 
   ___ ___ ___
  /  //  //  /  Jan H. Houtsma
 /  //  //  /   Comeniushof 92
/  //  //  /1216 HH Hilversum
 ___   /  _   _   / Netherlands
/  /  /  //  //  /  
   /  /__/  //  //  /   http://www.houtsma.net
  ///__//__/[EMAIL PROTECTED]




[OT] Re: Anyone has a good mailcap RunningX test?

2000-08-03 Thread Mikko Hänninen

Jan Houtsma [EMAIL PROTECTED] wrote on Thu, 03 Aug 2000:
 Only thing that works is manually unsetting $DISPLAY.

Having $DISPLAY defined usually means that there's an X session running.
Why do you have it defined anyway (in that telnet session) if you're not
doing stuff from inside an X environment?  I'd look into fixing whatever
is setting that environment variable for your telnet session...


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
"You don't grow by age, you grow by mind"  -- Lena Carin Molander




gpg test

2000-07-18 Thread Dale Morris

I've been fooling around with gpg and having some trouble with it. Can
anyone tell me if this message is showing up as properly signed? I may
have revoked this key, I'm not sure. 
thanks

 PGP signature


Re: gpg test

2000-07-18 Thread David T-G

Dale --

...and then Dale Morris said...
% I've been fooling around with gpg and having some trouble with it. Can
% anyone tell me if this message is showing up as properly signed? I may

Sure looks like it to me.


% have revoked this key, I'm not sure. 

Doesn't look like it, but I also don't know what happens when you try to
sign with a revoked key.  Why don't you whip up a test key, revoke it,
and then try it?


% thanks

HTH  HAND


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: gpg test

2000-07-18 Thread Mrinal Kalakrishnan

Hi,

Dale Morris typed:
 I've been fooling around with gpg and having some trouble with it. Can
 anyone tell me if this message is showing up as properly signed? I may
 have revoked this key, I'm not sure. 

Yup, it's properly signed:

[-- PGP output follows (current time: Tue Jul 18 16:06:23 2000) --]
 
gpg: Signature made Tue 18 Jul 2000 03:55:27 AM IST using DSA key ID 15094E24  
 
gpg: requesting key 15094E24 from wwwkeys.eu.pgp.net ...   
 
gpg: key 15094E24: public key imported 
 
gpg: Total number processed: 1 
 
gpg:   imported: 1 
 
gpg: Good signature from "Dale Morris (simplify) [EMAIL PROTECTED]"   
 
gpg: WARNING: This key is not certified with a trusted signature!  
 
gpg:  There is no indication that the signature belongs to the owner.  
 
gpg: Fingerprint: 7176 1203 A0D4 66AF 8CC2  CAA2 D28A 65DA 1509 4E24   
 
[-- End of PGP output --]  
 

-- 
Mrinal Kalakrishnan [EMAIL PROTECTED] http://mrinal.dhs.org/
Linux 2.2.12-20 || PGP:B1E86F5B || Mutt 1.2i (2000-05-09) || VIM 5.6 
-- 



Re: test=RunningX

2000-06-19 Thread Gary Johnson

On Mon, Jun 19, 2000 at 12:02:53AM +0200, [EMAIL PROTECTED] wrote:

 ...so it can be tested if an X-server is running. What is this program
 RunningX ? Is it an utility that comes with X (it is not on my
 machine), or a simple script in bash or so (a test about a variable
 like $TERM) ?

It's a C program that you can get from:

http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c

A lot of these mutt "helper" programs can be found from the Links
section of www.mutt.org.

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | RF Communications Product Generation Unit
 | Spokane, Washington, USA



Re: test=RunningX

2000-06-19 Thread clemensF

 Gary Johnson:

  ...so it can be tested if an X-server is running. What is this program
  RunningX ? Is it an utility that comes with X (it is not on my

you might consider just using standard "/usr/bin/test -n $DISPLAY".  no
need for special programs, if you test the existence of the x- variable
used to indicate, well, the display to use.

clemens



Re: test=RunningX

2000-06-19 Thread Mrinal Kalakrishnan

Hi,

clemensF typed:
 you might consider just using standard "/usr/bin/test -n $DISPLAY".  no
 need for special programs, if you test the existence of the x- variable
 used to indicate, well, the display to use.

No it's different. If you're in a console while X is running, the
RunningX test will fail, because it actually tries to open the
display. Whereas the $DISPLAY variable still exists, so "test -n
$DISPLAY" test passes. So if you're in a console, while X is running,
then it'll try to load netscape!

-- 
Mrinal Kalakrishnan [EMAIL PROTECTED] http://mrinal.dhs.org/
Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.3i (2000-06-09) || VIM 5.6 
-- 
"I would rather spend 10 hours reading someone else's source code than
10 minutes listening to Musak waiting for technical support which isn't."
(By Dr. Greg Wettstein, Roger Maris Cancer Center)



Re: test=RunningX

2000-06-19 Thread clemensF

 Mrinal Kalakrishnan:

 No it's different. If you're in a console while X is running, the
 RunningX test will fail, because it actually tries to open the
 display. Whereas the $DISPLAY variable still exists, so "test -n
 $DISPLAY" test passes. So if you're in a console, while X is running,
 then it'll try to load netscape!

that's good to know alright.  did the original poster mention this test to
be applied to "netscape -remote (URL)" or something suchlike?  how does
that work?

clemens



Re: test=RunningX

2000-06-19 Thread clemensF

 Mrinal Kalakrishnan:

 No it's different. If you're in a console while X is running, the
 RunningX test will fail, because it actually tries to open the
 display. Whereas the $DISPLAY variable still exists, so "test -n

isn't there some other way (a unix way) for trying to open the x- display?
is one of the standard /dev/* devices associated with an x- display?

clemens



Re: test=RunningX

2000-06-19 Thread David Champion

On 2000.06.19, in [EMAIL PROTECTED],
"clemensF" [EMAIL PROTECTED] wrote:
  Mrinal Kalakrishnan:
 
  No it's different. If you're in a console while X is running, the
  RunningX test will fail, because it actually tries to open the
  display. Whereas the $DISPLAY variable still exists, so "test -n
 
 isn't there some other way (a unix way) for trying to open the x- display?
 is one of the standard /dev/* devices associated with an x- display?

Generally, it's a unix-domain socket (AF_UNIX), usually
/tmp/.X11-unix/X{displaynumber}.  XOpenDisplay() is the standard way to
open it.  This RunningX program is no more than a wrapper for
XOpenDisplay, so it's about as canonical as you get.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



Re: test=RunningX

2000-06-19 Thread Thomas Dickey

On Tue, Jun 20, 2000 at 03:04:19AM +0200, clemensF wrote:
 
 isn't there some other way (a unix way) for trying to open the x- display?
 is one of the standard /dev/* devices associated with an x- display?

no (there's a socket associated with it, but the location and permissions
vary from one platform to another).

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://dickey.his.com
ftp://dickey.his.com



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-12 Thread Thomas Roessler

On 2000-06-12 15:46:03 +1000, CaT wrote:

 Which version of mutt should I try to see if I can
 reporduce this? I've noticed there have been
 official-looking patches about and wanna see if I can
 get this to happen again.

I think we have already been reproducing what you
describe, and there are some patches already.  So, with
some luck, there'll be a sane 1.2.1 during this week.

Anyway, thanks for your help.

-- 
http://www.guug.de/~roessler/



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-12 Thread CaT

On Mon, Jun 12, 2000 at 09:17:48AM +0200, Thomas Roessler wrote:
 On 2000-06-12 15:46:03 +1000, CaT wrote:
 
  Which version of mutt should I try to see if I can
  reporduce this? I've noticed there have been
  official-looking patches about and wanna see if I can
  get this to happen again.
 
 I think we have already been reproducing what you
 describe, and there are some patches already.  So, with

Yup. Saw the thread.

 some luck, there'll be a sane 1.2.1 during this week.

Grooovy.

 Anyway, thanks for your help.

No worries. Sorry about not providing more details but RL thwacked me
during the week. :/

-- 
CaT ([EMAIL PROTECTED])   URL: http://www.zip.com.au/dev/null

'He had position, but I was determined to score.'
-- Worf, DS9, Season 5: 'Let He Who Is Without Sin...'



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-11 Thread CaT

On Mon, Jun 05, 2000 at 11:53:51PM +1000, CaT wrote:
 On Mon, Jun 05, 2000 at 11:43:22AM +0200, Thomas Roessler wrote:
  On 2000-06-05 10:29:16 +1000, CaT wrote:
  
   Before attempt:
  
   -%-Mutt: /tmp/damien.work [Msgs:5492 New:12 Old:1176 Post:1 36M]---(reverse-
  
   After attempt:
  
   ---Mutt: /var/spool/mail/damien.work [Msgs:5038 New:9 Old:1074 Post:1 34M]--
  
  What precisely did happen between these two versions of
  the mail folder?  Please be a little bit more precise. ;-)
 
 Hehe. I'll try tomorrow with a step by step list of what I did
 and what happened (well as close to this as I can get :). ATM
 I'm dead tired.

Bah. Didn't find the time last week. Sorry. 8(

Which version of mutt should I try to see if I can reporduce this? I've
noticed there have been official-looking patches about and wanna see if
I can get this to happen again.

-- 
CaT ([EMAIL PROTECTED])   URL: http://www.zip.com.au/dev/null

'He had position, but I was determined to score.'
-- Worf, DS9, Season 5: 'Let He Who Is Without Sin...'



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-05 Thread AG

Hi CaT!

On Mon, 05 Jun 2000, CaT wrote:


 I had both /tmp and /var/spool/mail filled up. I selected two msgs for
 deletion as well as read one document. It would not let me quit. I
 trie dit multiple times. I freed up space on /var/spool/mail so that it
 has 160meg free and it still would not let me quit. I freed up space
 on /tmp so that it has 92meg free and it let me quit.
 
 8(

Would you run into a quota problem if you set tmpdir $HOME/tmp?  That
would get around the issue of somebody else filling up /tmp.


-- 
   _
 _|_|_
  ( )   *Anton Graham
  /v\  / [EMAIL PROTECTED]
/(   )X
 (m_m)   GPG ID: 18F78541
Penguin Powered!



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-05 Thread Thomas Roessler

On 2000-06-05 10:29:16 +1000, CaT wrote:

 Before attempt:

 -%-Mutt: /tmp/damien.work [Msgs:5492 New:12 Old:1176 Post:1 36M]---(reverse-

 After attempt:

 ---Mutt: /var/spool/mail/damien.work [Msgs:5038 New:9 Old:1074 Post:1 34M]--

What precisely did happen between these two versions of
the mail folder?  Please be a little bit more precise. ;-)

 I had both /tmp and /var/spool/mail filled up. I
 selected two msgs for deletion as well as read one
 document. It would not let me quit. 

This almost sounds like reasonable behaviour, as it sounds
like mutt had detected that it couldn't commit the changes
to the mail folder.

Were there any messages about preserved temporary files?
When a folder can't be written back, a temporary file
containing the folder which should have been written
should be left in $TMPDIR.

-- 
http://www.guug.de/~roessler/



Re: Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-05 Thread CaT

On Mon, Jun 05, 2000 at 11:43:22AM +0200, Thomas Roessler wrote:
 On 2000-06-05 10:29:16 +1000, CaT wrote:
 
  Before attempt:
 
  -%-Mutt: /tmp/damien.work [Msgs:5492 New:12 Old:1176 Post:1 36M]---(reverse-
 
  After attempt:
 
  ---Mutt: /var/spool/mail/damien.work [Msgs:5038 New:9 Old:1074 Post:1 34M]--
 
 What precisely did happen between these two versions of
 the mail folder?  Please be a little bit more precise. ;-)

Hehe. I'll try tomorrow with a step by step list of what I did
and what happened (well as close to this as I can get :). ATM
I'm dead tired.

  I had both /tmp and /var/spool/mail filled up. I
  selected two msgs for deletion as well as read one
  document. It would not let me quit. 
 
 This almost sounds like reasonable behaviour, as it sounds
 like mutt had detected that it couldn't commit the changes
 to the mail folder.

Yup. But something wrong happened to it's internal picture of the mailbox I think.

 Were there any messages about preserved temporary files?

Nope. it counted up as it was parsing the maiblox during the save and then
whammo, no status message at the bottom and the quit failed. I THINK though
that something akin to a status message MAY have flashed instantaneously 
before my eyes though.

 When a folder can't be written back, a temporary file
 containing the folder which should have been written
 should be left in $TMPDIR.

None was left in /tmp and $TMPDIR is not set on my system. I just size
sorted the contents and there was nothing there. the youngest tmp file
left by mutt was from May 25 and is about 9k in size. It's contents is
weird though:

Status: O
Content-Length: 118
Lines: 4


Status: O
Content-Length: 196
Lines: 15


Status: O
Content-Length: 1668
Lines: 47


Status: O
Content-Length: 149886
Lines: 3372


Status: O
Content-Length: 0
Lines: 0


Status: O
Content-Length: 0
Lines: 0


Status: O
Content-Length: 0
Lines: 0

etc...

The file name is: /tmp/mutt.damien-nessie-263


-- 
CaT ([EMAIL PROTECTED])   URL: http://www.zip.com.au/dev/null

'He had position, but I was determined to score.'
-- Worf, DS9, Season 5: 'Let He Who Is Without Sin...'



Results of corruption test on 1.2 (was: Re: mailbox corruption and mutt)

2000-06-04 Thread CaT

On Sun, Jun 04, 2000 at 07:29:53PM +0300, Mikko Hänninen wrote:
 CaT [EMAIL PROTECTED] wrote on Sun, 04 Jun 2000:
  Ok.. NOW I'm using 1.2. Grr. Compiled 1.2, went to play
  with my bros on their nintendo, came back and forgot I
  didn't install :)
 
 And the result of trying to re-create the problem with 1.2 is ..?

Before attempt:

-%-Mutt: /tmp/damien.work [Msgs:5492 New:12 Old:1176 Post:1 36M]---(reverse-

After attempt:

---Mutt: /var/spool/mail/damien.work [Msgs:5038 New:9 Old:1074 Post:1 34M]--

I had both /tmp and /var/spool/mail filled up. I selected two msgs for
deletion as well as read one document. It would not let me quit. I
trie dit multiple times. I freed up space on /var/spool/mail so that it
has 160meg free and it still would not let me quit. I freed up space
on /tmp so that it has 92meg free and it let me quit.

8(

-- 
CaT ([EMAIL PROTECTED])   URL: http://www.zip.com.au/dev/null

'He had position, but I was determined to score.'
-- Worf, DS9, Season 5: 'Let He Who Is Without Sin...'



test, i am receiving failings...

2000-05-23 Thread jgh

test
-- 
/helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."
  Fingerprint: 2F76 2856 776A 3E07 9F3E  452A 17D9 9B28 D75E 0A36
  GnuPG http://www.gnupg.org  Get Private!  1024D/D75E0A36



test

2000-05-18 Thread Russell Hoover

test

-- 
 // [EMAIL PROTECTED] //




Procmail Test on Msgid.Cache

2000-04-17 Thread Jason Helfman

testing testing 1 to 3

-- 
/helfman

"At any given moment, you may find the ticket to the circus that has always beenin 
your possession."
Fingerprint: 2F76 2856 776A 3E07 9F3E  452A 17D9 9B28 D75E 0A36
GnuPG http://www.gnupg.org  Get Private!



test (n/t)

2000-03-10 Thread J McKitrick


-- 
-jm



test send

1999-10-12 Thread John Poltorak

test - please ignore




Re: test send

1999-10-12 Thread John Poltorak

On Tue, Oct 12, 1999 at 01:25:38PM +0100, John Poltorak wrote:
 test - please ignore


Sender: [EMAIL PROTECTED]
Precedence: bulk

I'm not sure what I've changed but, I've suddenly got Mutt
actually sending out mail.

This has been a real struggle, but it looks as though
elm is getting very close to being obsolete on my system.

--
John




Re: RunningX test

1999-04-23 Thread David Shaw

On Fri, Apr 23, 1999 at 01:30:50PM -0400, kiss the sun and walk on air wrote:
 The documentation for MIME references a script called RunningX for use
 with the test parameter in the .mailcap file. Where may one find this?

http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c

I suppose you could just test for the presence of $DISPLAY and if it
exists, you are running X.  Does anyone know of any circumstances where
that could fail?

David

-- 
   David Shaw  |  [EMAIL PROTECTED]  |  WWW http://www.jabberwocky.com/
+---+
   "There are two major products that come out of Berkeley: LSD and UNIX.
  We don't believe this to be a coincidence." - Jeremy S. Anderson