Re: Problem displaying special characters (ie. Euro symbol)

2002-08-14 Thread Vineet Kumar

* Mark J. Reed ([EMAIL PROTECTED]) [020814 07:58]:
 On Wed, Aug 14, 2002 at 04:11:50PM +0200, Marc wrote:
  Hi all!
  
  I have a little problem displaying the Euro symbol (among some others)
  in mutt. It always ends up in \200 instead of the Euro symbol. I use
  XTerm as my terminal. Maybe that's of interest for someone.
 .]
  Content-Type: text/plain; charset=iso-8859-1
 Has the Euro symbol been added to Latin-1?  
 If so, what did it replace - the generic currency symbol at
 0xA4?  None of my iso-8859-1 fonts seem to have the symbol, so
 I thought you had to use Unicode to get it.  

ISO-8859-15, the Latin-9 character set, is essentially Latin-1 with the
Euro character replacing the currency symbol at 0xA4.  There are only a
handful of other differences between Latin-1 and Latin-9.

The Euro symbol is not in iso-8859-1, and anyone sending mail claiming
to be iso-8859-1 with something intended to be rendered as an Euro
symbol is wrong.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
As we enjoy great advantages from inventions of others, we should be glad
of an opportunity to serve others by any invention of ours; and this we
should do freely and generously.  --Benjamin Franklin



msg30276/pgp0.pgp
Description: PGP signature


Re: Emacs question

2002-08-13 Thread Vineet Kumar

* Bo Peng ([EMAIL PROTECTED]) [020813 19:36]:
 I am in mal mode now. I can see --:** mutt-. (Mail Fill)--L9-All
  but no color. Do I need to add something else to my .emacs?

Have you turned on font-lock-mode?

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
http://www.aclu.org/It's all about Freedom.



msg30254/pgp0.pgp
Description: PGP signature


Re: mv /var/mail/hans mbox safely, visual bell

2002-08-09 Thread Vineet Kumar

* Sven Guckes ([EMAIL PROTECTED]) [020804 10:43]:
 * Hans Ginzel [EMAIL PROTECTED] [2002-08-04 14:43]:
  how can I move in a script mail from the
  spoolfile to mbox safely (with locking)?
 
 script as in does not use mutt at all?  dunno.

Well, he didn't specify without using mutt.

Something like (untested):

#!/bin/sh
mutt -e tag-pattern.entertag-prefixsaveenterquit

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
#includestdio.h
int main() {
puts(Reader! Think not that \n
 technical information \n
 ought not be called speech;);
return 0;
}



msg30184/pgp0.pgp
Description: PGP signature


Re: BUG/RFI: scope of 'send-hook' too large ...

2002-07-03 Thread Vineet Kumar

* Malcolm Herbert ([EMAIL PROTECTED]) [020702 03:11]:
 Not sure if my list subscription has gone through yet (I haven't seen
 any confirmation so it might not have) but you might want to know about
 this anyway ...
 
 Is there any way to limit the scope of the changes made with the -hook
 commands? For instance, I have several mailing lists for which I use a
 different address to post from, so I use something like
 
 send-hook blah 'my_hdr From: Malcolm Herbert [EMAIL PROTECTED]'
 
 to set my From: header appropriately. Unfortunately if I send to these
 lists my From: header remains changed, for the life of the session.

Right. Others have already pointed out the correct way of doing things
(using a default hook). I think it's worth pointing out that the hooks
do not introduce any sort of temporary environment -- that is, whatever
command they execute, it's exactly the same as if you had just executed
that same command manually. They just do it automatically when they
match a certain pattern. They never remember an old setting and set it
back when they're finished -- they have no concept of that. They only
are matched at certain times: folder-hook when you enter a folder,
send-hook after getting a recipient list, message-hook before formatting
a message, etc. There are no hooks for leaving a folder, leaving the
compose menu, or leaving the pager. You just use the default hook to set
a sane value next time you enter one of those areas.

 
 Is there any way to limit the scope of the send-hook change to just
 the message being composed, then either reverse the change, or have it
 revert automatically?

In the time between when this message is sent and the next message is
started, it doesn't matter what the From: header says. So setting the
default hook is fine: next time the send-hook is applied, it'll be set
back. It can be seen as lazy, but it works.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
Computer Science is no more about computers
than astronomy is about telescopes. -E.W. Dijkstra



msg29359/pgp0.pgp
Description: PGP signature


Re: [Feature request] mailbox aliases and internal filtering

2002-07-02 Thread Vineet Kumar

* Vincent Lefevre ([EMAIL PROTECTED]) [020701 08:47]:
 And using push doesn't work correctly with IMAP folders because
 the corresponding characters are sent as password characters (for
 security reasons, I don't store my password on my account, though
 I could change my mind later).

If you're not using SSH or SSL for your IMAP anyway, it's no less safe
in your go-r .muttrc than it is on the wire each time you connect. You
might as well set it there.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
Computer Science is no more about computers
than astronomy is about telescopes. -E.W. Dijkstra



msg29341/pgp0.pgp
Description: PGP signature


Re: Mutt in Gnome Terminal

2002-06-26 Thread Vineet Kumar

* Peter T. Abplanalp ([EMAIL PROTECTED]) [020626 12:29]:
 On Wed, Jun 26, 2002 at 09:18:54PM +0200, Robert Ian Smit wrote:
  Hi,
 
 hello.
 
  I don't know if the --command option for gnome-terminal causes a
  different environment to be set. And if so if it's a feature or a
  bug. After searching faqs, checking manuals and browsing bugzillas,
  I give up. Would some kind soul shed some light on my frustrating
  situation?
 
 i don't know why this is happening but why not try:
 
 gnome-terminal --command . /home/logname/.bashrc;mutt

I'm guessing this wouldn't work, as . is a shell builtin. If
gnome-terminal were running the command in a shell, $OP wouldn't have
the problem in the first place!

A better suggestion (As David T-G gave) is to get that environment
variable in your parent process' environment, maybe with ~/.Xsession or
similar.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
Computer Science is no more about computers
than astronomy is about telescopes. -E.W. Dijkstra



msg29275/pgp0.pgp
Description: PGP signature


Re: Bug handling long lines ?

2002-06-25 Thread Vineet Kumar

* Cedric Duval ([EMAIL PROTECTED]) [020625 11:59]:
 Pedro Alves wrote:
  It really, truly absolutly looks like a mutt problem.
 
  I'm sending a tgz'd mailbox with only one line.
 
 Is this supposed to be a valid charset?
 
  Content-Type: text/html; charset=3DISO-8859-1

Looks like the '=' in 'charset=ISO-8859-1 got QP-encoded.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
[T]he ad skips It's theft  Any time you skip a commercial...
you're actually stealing the programming. - Turner CEO Jamie Kellner
Is fair use dead?   Help the EFF help you!   http://www.eff.org/



msg29242/pgp0.pgp
Description: PGP signature


format=flowed

2002-05-25 Thread Vineet Kumar

I'm not quite sure I'd want it, but it's bugging me that I haven't yet
figured out how I'd do it if I did want it. ;-)

I have discovered $text_flowed, but as the manual claims, To actually
make use of this format's features, [I]'ll need support in [my] editor.
Has anybody any idea of how to get this working with any particular
editor? More in my line of interest (if I may be so picky): has anybody
any idea of how to get this working with vim?

I tried googling around, but all my searches come back polluted with
mostly irrelevant archived mailing list messages with format=flowed in
their headers. Essentially, all vim would need to do would be to leave
the space at the end of a line when automatically wrapping for me (and
to leave them there when I go back and change something and 'gq' it).

In case anyone has no idea what I'm talking about, look up rfc 2646
(it's a short read).

good times,
Vineet
-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml



msg28336/pgp0.pgp
Description: PGP signature


(wish) urlview w/ context?

2002-05-01 Thread Vineet Kumar

Hello,

I tried googling for this without success.

I was wondering if anybody knows of a way to get urlview to show some
context along with the URLs it presents. For example, some newsletters
come littered with URLs, and especially when they reference mailing list
archives, they get hard to deal with. For example, something like:

 21 http://lists.debian.org/debian-devel-0204/msg02136.html
 22 http://lists.debian.org/debian-devel-0204/msg02366.html
 23 http://lists.debian.org/debian-devel-0204/msg02186.html
 24 http://lists.debian.org/debian-legal-0204/msg00072.html

Means that I have to remember which number I'm looking for before I
enter urlview, and also that I need to exit urlview and go back and look
at the message to figure out what the other links are for before I pick
the next one to follow.

I wish urlview had a mode in which it would display its entire input on
the output, with selectable URLs, instead of just the list of selectable
URLs. Better still would be another option that would work like grep's
-C (or 3 options, and follow the example of grep's -A and -B as well).
(I'm talking about GNU grep, in case the context options aren't the same
on all greps.)

I just wanted to know if anybody knows workarounds that provide this
functionality. I guess one is use gnome-terminal instead of xterm, but
I'm looking for other ideas. If the only response I get is sounds good;
let us know when the patch is ready! I might give it a shot, but more
likely I'll just switch to gnome-terminal ;)

good times,
Vineet



msg27787/pgp0.pgp
Description: PGP signature


Re: Transition from Pine to Mutt

2002-05-01 Thread Vineet Kumar

* Gour ([EMAIL PROTECTED]) [020430 09:21]:
 Recently I noticed that my present sendmail+Pine configuration has some
 problems - some emails are not reaching its destination, and my guess is
 that it's because the emails are rejected by some spam blockers since
 my Sender: header points on my localhost account and is different than
 From:  Reply-to: headers.
 
 Is it the job of Postfix or Mutt can also put Sender: header?

Your MTA adds the Sender:  header when the From  address being is
specified. The idea is that if it's not specified by the user, the MTA
will fill in the From  info with the sender. If the sender specifies
the From  info, the MTA puts a Sender:  header to let everyone know
that the From  data may be forged. The MTA should have an option of
which users should be allowed to specify their own From  data without
having to be outed by a Sender:  header. In Exim, this is the
trusted_users option; I have no idea how to do this with sendmail.

good times,
Vineet

-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml



msg27788/pgp0.pgp
Description: PGP signature


why not {break,link}-thread on maildir?

2002-04-29 Thread Vineet Kumar

Hello,

I'd never tried to use the break-thread and link-thread functions on
mutt until a couple of days ago, and then mutt told me I can't, unless
I'm using an mbox or mmdf folder type. Why won't it work with maildir?

This is 
Mutt 1.3.28i (2002-03-13)
From debian's unstable branch.

good times,
Vineet

-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml



msg27741/pgp0.pgp
Description: PGP signature


Re: setting from on compose

2002-02-12 Thread Vineet Kumar


--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Daniel Sully ([EMAIL PROTECTED]) [020212 11:04]:
 Hi - I'm not finding the functionality (or it's hiding from me) of when I
 hit 'c' for composing a message, the ability to set a From: address right
 there, just like a To: and Subject: line is set.
=20
 No, I don't want to just edit the headers afterwards, I want this to be a
 pseudo send-hook. I have a send-hook setup for when I reply to a message =
that
 comes in to a a certain address, but there doesn't seem to be an easy way=
 to
 do that when I want to compose a new email *as* that from address.

Check out reverse_name to obsolete your reply send-hook. Also, I've
found it acceptable to just use edit_headers all the time for my
schizophrenic needs.

good times,
Vineet

--=20
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume/
--=20
I disapprove of what you say, but I will defend to the death your right
to say it. --Beatrice Hall, The Friends of Voltaire, 1906

--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjxqHLoACgkQ7z3S33fUb9GMsgCgvphiWBI2LORFixRdx5Gy6K23
iXoAoIcOZiFbpvlJQejYPHwueTvL5Ky4
=7wha
-END PGP SIGNATURE-

--17pEHd4RhPHOinZp--



Re: Toggle to weed=yes for fwding only

2002-02-10 Thread Vineet Kumar


--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* William Guynes ([EMAIL PROTECTED]) [020208 19:24]:
 Has anyone else had a desire to be able to toggle weed=3Dyes for only
 certain instances of pager, reply, or forward?
=20
 I tend to not want to see all headers normally (having a full screen
 of headers just doesn't entice me to read the message).  But, I tend
 to need them when I report spam using forward.

When I forward a message from the pager and choose to include it inline
instead of as a MIME attachment, the presence of the headers in the
forwarded message is controlled by the current display of headers. I
normally view messages with weed set. If I hit ,f from the pager, I
get to forward with weeded headers. If I first hit h (bound to
display-toggle-weed) then I'll see all the headers, and when I hit ,f
all the headers show up in the message. Is this not how it works on your
mutt, too, or were you just looking for a one-key solution?

I can give more info about version and configs if it would be useful.

Vineet

--=20
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume/
--=20
Satan laughs when we kill each other. Peace is the only way.

--Q68bSM7Ycu6FN28Q
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjxm6lEACgkQ7z3S33fUb9FOMwCgp2rKfupPHo2j6WQmcfJksvaH
17wAn1T6X5S5GVzJ9Le54VIfj7DksOdn
=Wgag
-END PGP SIGNATURE-

--Q68bSM7Ycu6FN28Q--



Re: recognizing traditional PGP

2002-01-30 Thread Vineet Kumar


--zS7rBR6csb6tI2e1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Volker Moell ([EMAIL PROTECTED]) [020125 14:45]:
  % mail).  It would be so much easier for everyone if check-traditional-=
pgp
  % would become a variable (set always-check-traditional-pgp=3Dyes), so
  % that every mail will be checked automatically on demand (instead of
  % handling 50% of all mail accesses via macros and doing some terrible
  % workarounds for the other 50%).
  Hmmm...
=20
 With this I mean, you can
   - press enter in the index
   - press down, up, pgup, pgdown in the pager
   - press space at the end of a message
   - delete (in various ways) a mail
   - jump to a mail
   - ...
 to view a mail. Do you really want do set a macro for each of these (and
 surely more!) keybindings? Not really, at least not me. So a message-hook
 seems to be the only senseful place to implement a check-traditional on
 demand.  With macros it's only a nice workaround. IMHO.

Sorry, I'm jumping into the thread late, so I may end up looking like an
ignorant ass, but I'll take my chances anyway and offer you another
workaround. (I think) one issue of mutt detecting the old-style messages
is looking through the body of each message to see if it fits a certain
pattern, which is seen (understandably so) as something expensive that
mutt shouldn't be doing anyway. The workaround I propose, for you and
anyone else in your boat, is to set your pager to something (a small
perl script) that can recognize old-style pgp messages and pipe those to
gpg for processing, then display the message via a real pager (i.e. less
or some such).

That's *kinda* like a user-space message-hook, except it happens for
each message instead of only ones that match a certain pattern. You
might be able to fenagle it to working with a message-hook by setting
pager selectively or some other dirty hacks, but I'd say to try to get
it working everywhere first before optimizing it so.

I'll help you with the script if you need it; I think it should be as
simple as taking the patterns from the ubiquitous procmail example and
putting them in a 5-line perl script.

good times,
Vineet

--=20
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume/
--=20
Satan laughs when we kill each other. Peace is the only way.

--zS7rBR6csb6tI2e1
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjxYTbsACgkQ7z3S33fUb9GyEwCguccN8IXyfeVi3qFQ/xIZjmMk
fIUAn1v8DDUUr52ifSQBTPz3P6i134NC
=LPHw
-END PGP SIGNATURE-

--zS7rBR6csb6tI2e1--



Re: process substitution (was: Re: Searching big gobs of e-mail)

2001-12-19 Thread Vineet Kumar

* Gregor Zattler ([EMAIL PROTECTED]) [011218 03:44]:
 Hi Peter,
 hi mutt users,
 * Peter Poeml [EMAIL PROTECTED] [Mon 10 Dez 2001 20:04:17 GMT]:
 [...]
  As mentioned before, grepmail can jump in because mutt works on single
  mail boxes. Now I was curious and figured out the command for your real
  example:
  
  mutt -f (grepmail -huqd between 2001-09-01 and 2001-10-01 \
  ^From.*frob@(foo|bar).net mbox1 mbox2 mbox3)
 
 This seems cool but when i gave it a (much more simppler) try:
 
 mutt -f (grepmail -h cco@ *)
 
 i see mutt reading messages from /dev/fd/63, a few messages from
 grepmaiol and then: 
 
 the mutt index which first looks fine but when I hit enter to read a
 message the pager was empty...
 
 also 
 
 ae (ls)
 emacs (ls)
 jed (ls)
 
 did not work.
 
 
 Any hints?

Well, it won't help the bash-users out there, but anyone willing to give
zsh a try will benefit from this excerpt from the Process substitution
of the zshexpn manpage:

   Both  the  /dev/fd  and the named pipe implementation have
   drawbacks.  In the former case, some programmes may automatically
   close the file descriptor in question before examining the file
   on the  command line, particularly if this is necessary for
   security reasons such as when the pro­ gramme is running setuid.
   In the second case, if the programme  does  not  actually  open
   the file,  the subshell attempting to read from or write to the
   pipe will (in a typical implementa­ tion, different operating
   systems may have different behaviour) block for ever and have  to
   be killed explicitly.  In both cases, the shell actually supplies
   the information using a pipe, so that programmes that expect to
   lseek (see lseek(2)) on the file will not work.

...

   If = is used, then the file passed as an argument will be the
   name of a temporary file contain­ ing  the output of the list
   process.  This may be used instead of the  form for a program
   that expects to lseek (see lseek(2)) on the input file.

So this works for me:

mutt -f =(mboxgrep -mmaildir '^From:.*callahan@homicide\.SFPD\.gov' $MAIL)

mboxgrep even adds the wicked ^From_  lines!


Really, though, zsh effectively does the same thing as what grepm does,
with the temp file.

Vineet

-- 
Satan laughs when  #  I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it.
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906




msg21763/pgp0.pgp
Description: PGP signature


Re: razor-check

2001-12-10 Thread Vineet Kumar

* Ben White ([EMAIL PROTECTED]) [011210 07:06]:
 Hi, I am looking for ways to incorporate razor-check into my mail
 reading with mutt. (http://razor.sf.net/)
 
 I've got a few ways of doing it as far as I can see.
 
 Bind a keypress that runs razor-check with the currently selected message, so
 I can check whether a message is marked as spam or not in the razor
 catalogue.  I see it either changing the score for that message or
 flagging it in some way if it's a spam.
 
 A folder-hook or something like that that will run razor-check on each
 message when I open the mailbox.  Or a keypress that I can use to
 spamcheck the entire mailbox I have open.

I think your best bet is to check them at delivery time via your MDA
(maildrop, procmail, etc.) Have it add a header indicating its results,
and have mutt perform checks based on the presence or contents of this
header.

Just ask if you need more detailed help.

good times,
Vineet

-- 
Satan laughs when  #  I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it.
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906




msg21474/pgp0.pgp
Description: PGP signature


Re: mbox Postmark Line vs. Message Date Header?

2001-11-27 Thread Vineet Kumar

* Thomas Hurst ([EMAIL PROTECTED]) [011127 15:43]:
 * Samuel Padgett ([EMAIL PROTECTED]) wrote:
 
  So the advantage of Maildir is speed, and the disadvantage is that
  it eats inodes for breakfast?

This is my experience, yes. Another advantage is peace of mind that
you'll never again fall prey to a corrupted mailbox due to a delivery
occurring at the wrong time. (And according to Murphy, it will happen to
you, too, and probably right when she emails you her phone number.)

The other thing, which it seems is often overlooked and
underappreciated, is the ability to use nice things like grep, find,
xargs and the like on your mail the way it oughta work.

 I do tend to leave deleting/archiving mail until I absolutely can't
 stand waiting for the client to load folders any more, though, so maybe
 that mainly applies to very large mailboxes.  I've killed three MUA's
 doing that so far :)

Well, I certainly don't mean to tell you how to live your life, but
here's how I do mine:

set mbox_type=Maildir
set record=+archive/sent-mail/`date +%Y/%m-sent-mail-%Y'`
set mbox=+archive/inbox/`date '+%Y/%m-inbox-%Y'`
set move

This allows me to be lazy *and* keeps everything fast as lightning. I can
still get to my last month's worth of incoming or outgoing mail with a
quick c or c. Older stuff is there, too, all neatly sorted and
requiring no attention by me.

good times,
Vineet

-- 
Satan laughs when  #  I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it.
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906



msg20740/pgp0.pgp
Description: PGP signature


Re: Signature selection

2001-10-22 Thread Vineet Kumar

* Cliff Sarginson ([EMAIL PROTECTED]) [011021 22:41]:
 Hello,
 I asked about this problem some time ago, but I will
 dare to ask it again, since it still frustrates me,
 and I still have no answer.
 I have a few different signatures, if I am sending to
 a Dutch address I use a Dutch one, otherwise an English
 one. But for certain people (like my son) I try to use
 a less formal one. The relevant rules look as follows:
 
 send-hook . 'set signature=~/Mutt/.signature'
 send-hook simono@zonnet\.nl 'set signature=~/Mutt/.signature.simon'
 send-hook \.nl 'set signature=~/Mutt/.signature.nl'
 
 Now it is my understanding that the first hook that matches
 should be the one used. So if I send to simono, it should use
 the signature for that. However simono's address has .nl in
 it's domain part and mutt always uses this signature instead
 of the one for simono.

Well, I suppose that you're missing that simono's address also matches
., no? So, clearly, it can't be just using the first one that matches.
It would seem that it's using the last one that matches (which is why
everyone's .muttrc has the . send-hook listed _first_).

Try reordering them to this:

send-hook . 'set signature=~/Mutt/.signature'
send-hook \.nl 'set signature=~/Mutt/.signature.nl'
send-hook simono@zonnet\.nl 'set signature=~/Mutt/.signature.simon'

And see if that helps. I haven't looked at the source or even the docs;
I'm just going by deduction on this one. I Hope it works.

good times,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: neato PGP/push thing... almost

2001-10-22 Thread Vineet Kumar

* Justin R. Miller ([EMAIL PROTECTED]) [011022 12:37]:
 Thus spake Thomas Roessler ([EMAIL PROTECTED]):
 
  message-hook !~g !~G ~h ^text/plain ~b ^-BEGIN PGP push '\eP'
  
  (At least, that _could_ work.)
 
 The matching's not the problem, and I can tweak that anyway once I get
 the 'push' working.  It just seems that the 'push' invokes GPG process
 after GPG process repeatedly...  

Well, it seems the matching is the problem, then (or at least tweaking
the matching could solve the problem). What's really happening is like
this:

1. You select an old-style pgp message
2. the message-hook catches it and pushes esc-p
3. the messages is redisplayed as a pgp message
4. the message-hook catches it and pushes esc-p (this is step 2 again)
3. the messages is redisplayed as a pgp message
...

reepat steps 2 and 3 ad nausem. If you can modify the message hook so
that step 4 doesn't lead back to step 2 (i.e. mutt won't let a pgp
message get caught in the hook) everything will be all good.

In Thomas' example, the old-style message will match !~g !~G the first
time around, but once mutt sees that this is a pgp message, it won't
match again. I haven't tried it, but the reasoning is sound, and it
should work.

good times,


-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: Does $record expand?

2001-10-20 Thread Vineet Kumar

* David T-G ([EMAIL PROTECTED]) [011020 04:52]:
 P.S. -- I have to ask: Why a Yahoo address?  It's almost sacrilege ;-)

Not really; Yahoo does allow POP, so you can still use mutt with a @yahoo
mail address.

good times,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: mbox problem

2001-10-18 Thread Vineet Kumar

* Manuel Hendel ([EMAIL PROTECTED]) [011018 11:50]:
 Hallo,
 
 I'm using the maildir mailbox format since today. I'm also using
 procmail to filter my mails in different folders. Now I want that the
 read mails of some folders go in one mbox and some others in another
 mbox. I tried mbox-hook and folder-hook. But it didn't work. Has
 anybody an idea how this could work?

You just need mbox-hook. This is exactly what it's there for. From TFM:

  3.10.  Using Multiple spool mailboxes

  Usage: mbox-hook [!]pattern mailbox

  This command is used to move read messages from a specified mailbox to
  a different mailbox automatically when you quit or change folders.
  pattern is a regular expression specifying the mailbox to treat as a
  ``spool'' mailbox and mailbox specifies where mail should be saved
  when read.

  Unlike some of the other hook commands, only the first matching
  pattern is used (it is not possible to save read mail in more than a
  single mailbox).

Maybe you could show us the mbox-hook command you tried and we can help
figure out why it didn't seem to be working.

good times,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: mbox problem

2001-10-18 Thread Vineet Kumar

* Manuel Hendel ([EMAIL PROTECTED]) [011018 12:52]:
 I got the following mailboxes:
 
 set folder=~/Mail
 
 ~/Mail/mailinglists/mutt# for mutt mailinglist
 ~/Mail/mailinglists/postfix # for postfix mailinglist
 ~/Mail/maildir  # for privat mails
 
 ~/Mail/archiv/  # a folder to archive mails
 
 I need the following mbox-hooks:
 

change these

 mbox-hook mailinglists/mutt archiv/mutt
 mbox-hook mailinglists/postfix archiv/postfix
 mbox-hook maildir archiv/maildir

to these:

mbox-hook mailinglists/mutt =archiv/mutt
mbox-hook mailinglists/postfix =archiv/postfix
mbox-hook maildir =archiv/maildir

the '=' sign is expanded to $folder. otherwise the directories are
relative the current working directory, which could be anything.

good times,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: hooks

2001-09-23 Thread Vineet Kumar

* Horacio ([EMAIL PROTECTED]) [010919 04:31]:
 I have the following hooks:
 
 --
 unhook *
 
 # folder-hook .   'push   escv'
 folder-hook . 'exec   collapse-all'
 
 # Set sig for mail sent from any folder to sig ...
 folder-hook . 'set signature=~/.signature/sig'
 # ... except if folder is mail.uni then set sig to sig-uni
 folder-hook mail\.uni 'unset signature'
 folder-hook mail\.uni 'set signature=~/.signature/sig-uni'
 
 # For all mail coming from [EMAIL PROTECTED] or .org set sig to
 # sig-com
 send-hook .*@*\.(com|org)$/
 'set signature=~/.signature/sig-com'
 
 # Do not include a sig for mail to a list machine
 send-hook ^majordomo|request@ 'set signature='
 
 
 No matter how many changes I do to it I will always get
 signature sig from mailbox mail.uni, and not sig-uni.
 The hook to not include a signature for list machines does
 work though.  What am I doing wrong?

You don't need the unset signature hook. Just use this line:
folder-hook mail\.uni   'set signature=~/.signature/sig-uni'

note the quotes.

HTH,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: rot13 capability?

2001-09-19 Thread Vineet Kumar

* David Champion ([EMAIL PROTECTED]) [010919 10:38]:
 On 2001.09.19, in [EMAIL PROTECTED],
   Miguel Farah F. [EMAIL PROTECTED] wrote:
  Jura ernqvat arjf jvgu gva, vs bar cerffrf gur 'q' xrl, gur pbagrag bs
  gur negvpyr orvat ernq jvyy or ebg13-rq.
  
  V guvax zhgg pbhyq unir guvf pncnovyvgl, gbb. Jung V qb pheeragyl vf
  cvcr gur znvy V'z ernqvat gb gur ebg13 pbzznaq va zl ~/ova qverpgbel,
  ohg vg'f abg nf pbairavrag nf orvat noyr gb qb vg gur gva jnl
 
 How about this?
 
 auto_view text/rot-13
 macro index \Ca 
edit-typekill-linetext/rot-13enterdisplay-messageedit-typekill-linetext/plainenter
 Display message with ROT-13 encoding
 
 $ grep rot-13 ~/.mailcap
 text/rot-13; tr '[A-Z][a-z]' '[N-Z][A-M][n-z][a-m]' %s; copiousoutput
 
 That's the only way to get a filter to display inside the pager: set the
 content-type so that a MIME content handler applies.
 
 -- 
  -D.  [EMAIL PROTECTED]NSITUniversity of Chicago
 

You maniac! You'd better watch out what you do with that; if you use it
to decipher my signature I'll send the FBI after you for violating the
DMCA.

=p

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: rot13 capability?

2001-09-19 Thread Vineet Kumar

* David Champion ([EMAIL PROTECTED]) [010919 10:38]:
 On 2001.09.19, in [EMAIL PROTECTED],
   Miguel Farah F. [EMAIL PROTECTED] wrote:
  Jura ernqvat arjf jvgu gva, vs bar cerffrf gur 'q' xrl, gur pbagrag bs
  gur negvpyr orvat ernq jvyy or ebg13-rq.
  
  V guvax zhgg pbhyq unir guvf pncnovyvgl, gbb. Jung V qb pheeragyl vf
  cvcr gur znvy V'z ernqvat gb gur ebg13 pbzznaq va zl ~/ova qverpgbel,
  ohg vg'f abg nf pbairavrag nf orvat noyr gb qb vg gur gva jnl
 
 How about this?
 
 auto_view text/rot-13
 macro index \Ca 
edit-typekill-linetext/rot-13enterdisplay-messageedit-typekill-linetext/plainenter
 Display message with ROT-13 encoding

To use it with PGP (well, PGP/MIME, anyway) or other mime multipart
messages, try this version instead:

macro attach \Ca 
edit-typekill-linetext/x-rot13enterview-attachedit-typekill-linetext/plainenter
 Display message with ROT-13 encoding

Also, these don't work so well with the builtin pager, because the
display-message or view-attach commands return immediately in that case.
For the internal pager, you may be better off with something like these
2 macros together:

macro pager \Ca edit-typekill-linetext/x-rot13enter Display message with 
ROT-13 encoding
macro pager \CA edit-typekill-linetext/plainenter Revert message from ROT-13 
back to text/plain

Does anyone have a better idea of how to make one macro that toggles? Is
there a way to make a named macro? Then you could do something like
this:

function1() {
  push edit-typekill-linetext/x-rot13enter
  macro pager \Ca function2
}

function2() {
  push edit-typekill-linetext/plainenter
  macro pager \Ca function1
}

I guess you could effect it with push:(untested)


 macro pager \Cb 'edit-typekill-linetext/x-rot13entermacro \Ca push \CB'
 macro pager \CB 'edit-typekill-linetext/plainentermacro \Ca push \Cb'
 macro pager \Ca 'push \Cb'

but you 'lose' a couple of keys that way. I suppose you could make them
some inconvenient keybinding that you'd never use anyway, and then you'd
be all right.

all of these 'toggle' methods also break horribly if you rot13 a message
and then don't change it back before you go off and view other messages.
Well, maybe not horribly; you'll just have to hit \Ca a couple of times
until it straightens itself out.

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: New Mails Old Mails No Mails

2001-09-18 Thread Vineet Kumar

* David T-G ([EMAIL PROTECTED]) [010918 02:51]:
 ...and then Thomas Kniep said...
 % Am 17.09.2001 (17:47) schrieb David T-G:
 % Is there any why to get an overview on unread mails (either marked N or O)?
 
 Hmmm...  You might have truly meant 'why' instead of 'way', and I don't
 think there's an overview of that, but it's not a bad idea.  If you mean
 'way', then I'm not sure what you mean other than the index view showing
 them to you; if you want some sort of analysis like 23 New messages,
 41 Old messages, 17 read messages, 6 replied messages you'll have to
 write it -- but it sounds like a lovely idea ;-)

try limiting to ~O, to display only old messages. limit is by default
bound to 'l', so you'd go like this:
hit l
at the limit prompt, type ~O, and hit enter
now you see only messages marked Old.

Or maybe you're looking for this [N=%n,*=%t,old=%o,post=%p,new=%b] in
your status_format somewhere?

HTH,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: Legacy PGP Woes

2001-09-18 Thread Vineet Kumar

* Phil Gregory ([EMAIL PROTECTED]) [010918 19:48]:
 So that's it.  In order for PGP stuff to work properly, application/pgp
 must *not* be in the auto_view list.

That's good to know ... sounds like something it might have taken me a
long time to figure that out. It kind of makes sense, though, in
retrospect: if mutt uses autoview for application/pgp, it tries to
hand it to mailcap rather than handle it on its own.

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: Authenticating public keys...

2001-09-17 Thread Vineet Kumar

* Jean-Sebastien Morisset ([EMAIL PROTECTED]) [010917 13:15]:
 I'm really enjoying GnuPG, especially the auto-fetch feature for unknown
 keys (which never worked for me in PGP). As I accumulate public keys, I'd
 like to lsign the keys (--lsign-key cmdarg) to remove that little warning.
 Unfortunately, there's no good way to authenticate the key.
 
 What do you guys do? Put up with the warning? Sign the key even if you're
 not sure? Use the X-PGP-Fingerprint header as a second validation? Use
 fingerprints in signatures?

Well, your signature on a key is your certification that this key
actually belongs to this person. Don't go and sign a key unless you're
willing to make that statement; it defeats the whole purpose! For
similar reasons, an email header or a .signature provides *NO* added
information that this key is being used legitimately; if I made a bogus
key that said Jean-Sebastien Morisset I could send mail to the list with
a signature that other people would see came from YOU. What's to stop me
(as a malicious forger) from also inserting the key's fingerprint in the
mail? Therefore, seeing a fingerpring in a header or signature adds no
trust that the key being used is valid.

Worse yet, what if I was able to intercept your email via a
man-in-the-middle attack? I could strip out your signature and your
fingerprint, and insert my own. If people took it at face value yeah,
that looks like a js post; there's his signature, there's his
fingerprint and decided to trust that key, this would be bad, bad news
for you. What if someone then wanted to send an encrypted message to
you? They do so using the public key I referenced in the email I'd been
altering, and now I can see the encrypted message. Not very secure, is
it? The system is only as trustworthy as far as its keys can be trusted.

If you don't like seeing a warning that you can't trust this key, you
have a few options:

1. validate the key yourself. Find the person whose key it is and verify
it with them by asking to see their passport and checking that their
fingerprint is the same as the fingerprint on your keyring. Then sign
their key.

2. Don't verify signatures made with untrusted keys. Tell mutt not to
automatically verify signatures, and just do it manually when you get an
email from someone whose key you trust.

3. Take the warning for what it means: This is a good signature with
this key, but there is no indication that this key belongs to the person
it claims to belong to.

 
 We should have a little poll. :-)

The first option would be best for the web of trust, but personally I'm
using #3.

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: mutt exchange

2001-09-15 Thread Vineet Kumar

* Johannes Zellner ([EMAIL PROTECTED]) [010914 05:10]:
 On Wed, Sep 12, 2001 at 04:05:26PM +0530, Suresh Ramasubramanian wrote:
  Johannes Zellner mutt [12/09/01 12:04 +0200]:
   how do I use mutt with an EXCHANGE server ?
   Actually I can already READ mail by having
   set imap_user=my name
   set imap_pass=my pass
  
   but if I try to SEND mail, it tells me
   Error 127 .. Exec error.
   
  Mutt doesn't have a builtin smtp client of any kind.  See if you can compile
  Masqmail / Nullmailer on cygwin (or download Mercury from
  http://www.pmail.com) and config that to smarthost through your exchange box
  (or if you have a NAT'ted connection to the 'net, use mercury to send direct
  to MX)
  
   If someone has any EXCHANGE related tips, please share them with me!
   (Using mutt / UNIX since quite a while, my job forces me now to
   work on this OS-wannabe).
 
 hmm. I've installed ssmtp from cygwin now, configured it and
 succeed in doing:
 
 # echo fred | ssmtp some@address
 
 ssmtp is not running as daemon. Now I've configured mutt with
 
 sendmail=ssmtp
 
 but I still get the message
 
 Error sending message, child exited 127 (Exec error.).
 
 To summarize: I can send mails with ssmtp from command line
 but not from mutt.

Check the path, and ensure that if envelope_from is set that ssmtp
allows the -f envelope from address argument (I don't know one way or
another that it does or doesn't). I think the solution here is to
specify an absolute path to ssmtp, but I may be wrong.

HTH,
-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: serial mail

2001-09-12 Thread Vineet Kumar

* Matthias LOITSCH ([EMAIL PROTECTED]) [010912 13:49]:
 just another question :)
 
 i want to send a mail to many persons, but they shouldnt see that they mail is
 not sent only to them.
 with the Bcc i have to specify a To Adress... 
 
 quite the same question : can i change one word in each mail ?
 for example : hello name1
   hello name2
   ...

create a file called recipients that looks like this:

Alice:[EMAIL PROTECTED]
Bob:[EMAIL PROTECTED]
Eve:[EMAIL PROTECTED]

and your message in a file called message with __NAME__ where you want
to use the person's name.

Then do this in bash:


for recip in `cat recipients` ; do
  NAME=$(echo $recip | cut -d: -f 1)
  ADDR=$(echo $recip | cut -d: -f 2)
  cat message | sed -e s/__NAME__/$NAME/g | mail $ADDR
done

 i dont want to use it for span mails!!! :)

You'd better not!!!

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: Mail-Followup-To ...

2001-09-12 Thread Vineet Kumar

* Matthias LOITSCH ([EMAIL PROTECTED]) [010912 14:41]:
 i just did not understand the mail-follow-up function...
 and i dont see the connection with the 'subscribe ...' command.
 
 what is the difference between : 'subscribe ...' and 'lists ...' ??

Mail-Followup-To is a header that helps it so that people subscribed to
mailing lists and people not subscribed to mailing lists can get
appropriate replies sent to appropriate places.

Here's the way it works, in the form of a couple of user examples:

I'm subscribed to [EMAIL PROTECTED] I post a message there. Since
I've told mutt 'subscribe [EMAIL PROTECTED]' it knows that I'm
subscribed to that list and generates the following header:

Mail-Followup-To: [EMAIL PROTECTED]

This makes it so that people with compatible mailers can jsut hit
reply and the right thing will happen: the reply goes to the list.
Since I'm subscribed, I don't need to be CC'ed -- that would result in a
duplicate email.

Now another case: I'm not subscribed to [EMAIL PROTECTED], but I want to
ask a question there. I post a message, and since I've told mutt 'lists
[EMAIL PROTECTED]' it knows that this is a list to which I am not
subscribed. It generates the following header:

Mail-Followup-To: [EMAIL PROTECTED], [EMAIL PROTECTED]

So that when people with compatible mailers hit reply, their mailer CCs
me and I get a copy in addition to the one sent to the list.

Third case (less interesting). I send a message to my friend bob, whose
address is listed in neither the 'lists' statment nor the 'subscribe'
statement. Mutt generates no extra header; the message is sent as-is,
without a Mail-Followup-To header.

I hope these examples clear up the issue for you.


-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: limiting by number of lines

2001-09-10 Thread Vineet Kumar

* Denis Perelyubskiy ([EMAIL PROTECTED]) [010910 10:32]:

 while i dont remember (i am a procmail neophyte for the most
 part) how to base rules on # of lines, but worst come to worst
 you could either pipe into 'wc -l', or write a script if you
 want to skip headers when counting lines (which would
 perhaps be more reliable)

Here's a hint, too: a 'b' flag in a procmail recipe means feed just the
body into this pipe. See procmailrc(5) for more info.


-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: fcc

2001-09-06 Thread Vineet Kumar

* Will Yardley ([EMAIL PROTECTED]) [010905 12:27]:
 Vineet Kumar wrote:
This command specifies folders which can receive mail and which will
be checked for new messages.  By default, the main menu status bar
displays how many of these folders have new messages.
  
  You don't want mutt to let you know of new mail in sent-mail? don't
  include it in your mailboxes line.
 
 yes  but on other machines mutt doesn't do this. i like having sent-mail
 in the mailboxes list so that it's included in my default folder list.
 i was hoping there was another way to do this.  no worries though.

Gotcha. 'fraid I don't know how to make that happen. I could point out,
though, that '' is a shorthand for your sent-mail folder (or, more
precisely, for the folder named in the $record variable.)

So it mightn't show up in the list, but you can always just use 'c' to
get there quickly.

 
 -- 
 Sintax error in config file! (line 378)
 aborted!

D'oh! Totally got me -- I thought it was an automated sig-generator
pooping out. (Though I didn't think till now 378 lines for a sig
generator?! It had better make coffee, too...)

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: Getting the name of the current folder for macros

2001-09-06 Thread Vineet Kumar

* Alexander Skwar ([EMAIL PROTECTED]) [010829 15:18]:
 So sprach ?Alexander 'Digital Projects' Skwar? am 2001-08-25 um 11:30:50 +0200 :
  I'd like to assign a macro to a key, which allows me to easily store all
  the messages of a folder in another folder.
  
  I normally archive all the messages I get.  To do so for this list, I'd
  tag all the messages in the current folder (which only contains messages
  from this list), clear the old flag of all the messages and save all the
  messages in =Old/ML-MUTT.bz2.  The current folder is named ML-MUTT.
  
  What I can't seem to figure out, is how I can get the name of the
  current folder.  If I had this, I'd write in my muttrc:
  
  macro   index   \Co
  
tag-pattern.entertag-prefixclear-flagotag-prefixsave-message=Old/NAME_OF_CURRENT_FOLDER.bz2enter
  
  How can I get the name of the current folder so that I can assign it in
  a macro?
 
 Is this really impossible to do?

You could hack it by setting the value of record or mbox based on
folder-hook and then referencing that value in your macro. Be careful
that you don't need the value before you clobber it with this hack,
though (i.e. use mbox if you're not using move, or record if you're not
using copy).

It would basically look like this:

# THIS IS A DIRTY, DIRTY HACK. PROCEED WITH CAUTION
set copy=no
folder-hook mutt-user 'set record==Old/mutt-user'
macro   index   \Co 
tag-pattern.entertag-prefixclear-flagotag-prefixsave-message.bz2enter

I also don't know about how the '' might need to be quoted in the macro
statement. This is totally untested, and just off the top of my head
(and I'm no expert). As always, YMMV.


-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: fcc

2001-09-05 Thread Vineet Kumar

* Will Yardley ([EMAIL PROTECTED]) [010905 03:12]:
 my actual question is that whenever i send a message, using either
 fcc-hook or set record (currently using fcc-hook):
 
 #set record =~/mail/sent-mail
 fcc-hook $ +sent-mail
 
 i get a new mail message in sent-mail.
 
 i do have sent-mail set as a mailbox, but i have this set other places
 as well i'm pretty sure without problem (my main account is Maildir so
 that's different, I assume).
 
 any way to surpress this with 1.2.5?

Taken from the mutt manual:

  3.11.  Defining mailboxes which receive mail

  Usage: mailboxes [!]filename [ filename ... ]

  This command specifies folders which can receive mail and which will
  be checked for new messages.  By default, the main menu status bar
  displays how many of these folders have new messages.

You don't want mutt to let you know of new mail in sent-mail? don't
include it in your mailboxes line.


 -- 
 Sintax error in config file! (line 378)
 aborted!

Looks like you've got a lexical error in your syntax error, as well...

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: folder-hook push tag-pattern ...

2001-08-20 Thread Vineet Kumar

* Nate Johnston ([EMAIL PROTECTED]) [010817 13:11]:
 All,
 
 I would like to roll any message in my inbox that is older than 2
 weeks old to an archive folder.  I tried this pattern, but I got the
 message Tagging is not supported when .muttrc loads.  
 
 folder-hook INBOX   'push 
tag-pattern~d2wentertag-prefixsave=archiveenter'
 
 Am I going about this incorrectly?  Is this something that, because it
 is tag-save instead of delete, I can only use a macro for?  If I use a
 macro, can I break this into 2 parts as so:
 
 folder-hook INBOX   'push *d
 macro *d  'tag-pattern~d2wentertag-prefixsave=archiveenter'

Sorry, I don't have an answer, but a suggestion: how about trying
delete-pattern instead of tagging a pattern and then deleting tagged
messages? I have a line like this:

folder-hook mutt-user 'push D~r15d!~F\n'

which I'd imagine would still work if you used delete-pattern instead
of D.

Cheers

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: SMTP AUTH-capable MTA

2001-08-13 Thread Vineet Kumar

* Nate Johnston ([EMAIL PROTECTED]) [010813 05:34]:
 Suresh Ramasubramanian spake thus: (Sat, Aug 11, 2001 at 07:51:11AM +0530)
 
  Nate Johnston [mutt-users] 10/08/01 14:51 -0500: 
   I am running mutt, but I do not want to submit my mail to the running
   Sendmail daemon for reliability reasons.  I am looking for a utility
  
  Erm, how (un)reliable is sendmail?  Especially newer versions (current: 8.11.5)
  of sendmail?
 
 My issue is not with sendmail, per se, but with a new set of policies
 that have been implemented locally.  Redirecting all mail from the Unix
 host to a Windows NT machine to be virus and content screened is a
 decision I disagree with.  And seeing as that screening server has
 already had three significant downtimes in the past month I'd like to
 bypass it altogether.

Before you spend a lot of time and energy downloading and compiling
something of your own, make sure you check whether it will work by
attempting an outgoing connection to port 25 (of any reliable smtp
server). If the policy is to redirect all mail to a screening host, I'd
be surprised if there wasn't a firewall rule to enforce that policy by
disallowing outgoing connections to port 25.

Cheers,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: why dosen't this work?

2001-08-09 Thread Vineet Kumar

* Chris S. ([EMAIL PROTECTED]) [010809 17:06]:
 
 
 Is there something wrong with this?  
 
 folder-hook . set index_format=%2C %-20.20L %-33.33s %(%b %d %I:%M%p)
 
 folder-hook IN.Seawolf-List set index_format=%2C %Z %-20.20L %-33.33s
 folder-hook IN.Procmail set index_format=%2C %Z %-20.20L %-33.33s
 
'fraid I'm not the right person to give a complete answer, but try this
instead:


folder-hook . 'set index_format=%2C %-20.20L %-33.33s %(%b %d %I:%M%p)'
folder-hook IN.Seawolf-List 'set index_format=%2C %Z %-20.20L %-33.33s'
folder-hook IN.Procmail 'set index_format=%2C %Z %-20.20L %-33.33s'

WFM. YMMV.

Cheers,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: builtin editor

2001-08-09 Thread Vineet Kumar

* R. Leponce ([EMAIL PROTECTED]) [010808 09:49]:
 Hello all,
 
 just a simple question: I always have my $EDITOR variable set to vim, so I
 wanted to try the builtin editor of Mutt. I unset this variable (and
 also $VISUAL), and evenis vi is not mentionned in my .muttrc, vi stays the
 default editor.
 
 Is there a real builtin editor for Mutt and in this case, how can I use it
 ?
 

Nope. Mutt does one thing and does it well, the way things oughta. =p

Cheers,

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: request help with xterm titlebar stuff

2001-08-09 Thread Vineet Kumar

* Will Yadley ([EMAIL PROTECTED]) [010807 19:38]:
change this line

 print \033]0;$line\007];

to this:

print \033]0;$line\007;

? It's entirely untested, but my first impulse on looking at it was why
is there an extra right-bracket there?

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: colors with wrapped quotes

2001-08-08 Thread Vineet Kumar

* David T-G ([EMAIL PROTECTED]) [010808 09:47]:
 the question, right? :-)  If I get annoyed I just 'e'dit the message,
 'J'oin up the line(s) in vim, save it, and then read it again, but
 the same thing (probably dropping even more to the next line thanks to
 the additional indentation of two sets of quotes) will happen when the
 message turns around again.
 
 I could imagine a vim macro that would look for a line starting with
 a few (well, mebbe one is valid) indent_string chars, another line
 (maybe shorter than length X) without any, and another line with the
 same number of indent_string chars and would then go back to the upper
 line and join up the bare one...

What works really well in vim is to 'J'oin the lines, and then '{gq}'
them. Vim is smart about wrapping when all lines have the same  
indent on them, so if you join them, set textwidth to an appropriate
value, and then re-wrap them, it will be well prepared for the next
iteration.

A macro might be able to just tell which lines need to be joined by
looking for lines without the   and executing kJ, then once it was
done '1G','/^$','gqG' (to re-wrap just the body). An example this simple
would surely fail with multiple levels of indentation in a message,
though.

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba'g gernq ba zr!|tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


Re: spoolfile and procmail

2001-08-03 Thread Vineet Kumar

* Dumas Patrice ([EMAIL PROTECTED]) [010803 10:57]:
 Hi,
 Maybe you will find this question a bit stupid, but I have a conceptual
 problem.
 My setting is fetchmail-procmail-mail folders. Then I use mutt to read the
 mail folders.
 Is there a need for a spool folder in this setting ? Am I doing something not
 regular ?
 
 Sure I can live without the answer to my question but I would like to know if
 there is a standard setting which is not an embedded pop-client nor a delivery 
 in /var/spool/...
 
 Pat
 

I'm not sure whether you're asking whether your system needs a file
/var/spool/mail/user or if mutt needs a valid $spoolfile setting.
Let me just babble on a bit and maybe your question will become more
clear, and maybe I'll hit the answer.

procmail has a setting for DEFAULT, meaning where a message is delivered
if it falls through the rest of the .procmailrc. Unless you've changed
it, it's value is $ORGMAIL, which defaults to /var/spool/mail/$LOGNAME.
By the sound of your question, it seems you divert all your mail away
from there at some point in time.

Either way, mutt likes to know about $spoolfile, whose default setting
is in the environment variable $MAIL. Probably, your system sets that to
/var/spool/mail/$LOGNAME.

mutt treats $spoolfile a little differently than any other folders: it
will never be removed even if empty and save_empty is set, and it can be
addressed by the shortcut !. Apart from that, if you don't use it, it
doesn't really matter.

My guess is that you have a procmail default-ish recipe where most of
your mail goes. You might want to set the $MAIL environment variable to
that mailbox so that your shell will alert you when you get new mail,
and mutt will address that mailbox as $spoolfile. Even still, I'd say
removing /var/spool/mail/username is a Bad Idea unless the system-wide
default delivery is something else.

If I haven't answered your question, maybe you could try putting it a
little more precisely.

Vineet

 PGP signature