File: 90-docs-update.dpatch

package info (click to toggle)
muttprofile 1.0.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 104 kB
  • sloc: sh: 638; perl: 260; makefile: 55
file content (653 lines) | stat: -rw-r--r-- 23,939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
#! /bin/sh /usr/share/dpatch/dpatch-run
## 90-docs-update.dpatch by martin f. krafft <madduck@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad trunk~/muttprofile.html trunk/muttprofile.html
--- trunk~/muttprofile.html	2003-01-15 01:24:16.000000000 +0100
+++ trunk/muttprofile.html	2006-07-12 00:50:46.302138933 +0200
@@ -5,10 +5,6 @@
 
 <head>
 <title>Muttprofile</title>
-<link rev="made" href="mailto:martti.rahkila@iki.fi">
-<meta name="Location" content="http://www.iki.fi/martti.rahkila/mutt/muttprofile.html">
-<meta name="Author" content="Martti Rahkila">
-<meta name="Date" content="2000-04-24" scheme="yyyy-mm-dd">
 <meta name="Keywords" content="mutt, muttrc, profiles">
 <meta name="Description" content="Muttprofile is a utility to choose profiles with Mutt email client">
 <meta name=robots content="index,follow">
@@ -24,8 +20,8 @@
 <h1>Muttprofile</h1>
 </div>
 <p>
-Muttprofile is a utility to choose <a href="http://www.acoustics.hut.fi/~mara/mutt/profiles.html">profiles</a> with the 
-<a href="http://www.mutt.org">Mutt</a> email client. It is useful at least in the following
+Muttprofile is a utility to choose <a href="profiles.html">profiles</a> with the 
+<a href="http://www.acoustics.hut.fi/~mara/mutt/index.html">Mutt</a> email client. It is useful at least in the following
 cases:
 
 <ul>
@@ -41,44 +37,67 @@
 distributed under <a href="http://www.gnu.org/copyleft/gpl.html">GNU General 
 Public Licence</a> (same as Mutt itself).
 
-<h3>Note! (2003-01-11)</h3>
+<h2>Latest news</h2>
 <p>
-It seems that muttprofile is not working correctly in RedHat 8 (with Perl 5.8).
-Thanks for Marco Fioretti for informing me. The problem seems to be related
-to 'stty' and the Perl module 'Term::Complete' which is using it for changing
-terminal characteristics. I'll try to fix it, but at the moment, I don't have
-too much spare time, nor a working rh8 at my disposal...
-
+<b>(2003-11-18)</b> Version 1.0.1 has been released. It includes a couple of
+bugfixes.
+</p>
 
 <h2>Version history</h2>
 <p>
-<table>
+<table border="2">
 <tr>
-<td>1.0.0</td>
-<td>2000-05-10</td>
-<td>First public release</td>
+<td valign="top">1.0.1 (current)</td>
+<td valign="top">2000-11-20</td>
+<td valign="top">Two bugfixes, details can be found from<br>
+<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218957">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218957</a><br>
+<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218960">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218960</a><br>
+
+<p>Additional bugfix regarding a case when active profile
+exist but is a file instead of symlink.</p>
+</td>
+</tr>
+
+<tr>
+<td valign="top">1.0.0</td>
+<td valign="top">2000-05-10</td>
+<td valign="top">First public release</td>
 </tr>
+
 </table>
 
 <h2>Requirements</h2>
 <p>
 <ul>
-<li>Perl version 5.x or later
+<li><a href="http://www.mutt.org/">Mutt</a> (obviously :-)
+<li><a href="http://www.perl.com/">Perl</a> version 5.x or later
 <li>Perl module <b>Term::Complete</b>, comes with Perl5 distributions
 <li>Perl module <b>Getopt::Long</b>, comes with Perl5 distributions
 </ul>
 
+<p>Please note that the <code>Term::Complete</code> module in Perl 5.8.0
+may produce an error. This has been fixed in Perl 5.8.1.
+If you are stuck with perl 5.8.0, I have a 
+<a href="muttprofile_perl580.html">separate page</a> explaining
+the problem and how to fix it.
+</p>
+
 <p>
 Muttprofile is a somewhat Unix-oriented tool in its
 command-line operation. It also makes use of symbolic links.
 I don't know if it works under other operating systems.
+</p>
+
 
 <h2>Download</h2>
 <p>
-<a href="http://www.acoustics.hut.fi/~mara/mutt/muttprofile">Download muttprofile!</a>
+<a href="http://www.acoustics.hut.fi/~mara/mutt/muttprofile">Download muttprofile version 1.0.1</a> (14 kB)
+</p>
 
 <p>
-Alternatively, you can go with Rikard Florin's version of <a href="http://www.ratblast.net/muttprofile/">muttprofile</a>. He has rewritten muttprofile to include a graphical user interface using the Term::ANSIScreen and Term::ReadKey modules.
+<a href="http://packages.debian.org/unstable/mail/muttprofile.html">Debian package</a><br>
+</p>
+
 
 <h2>Installation</h2>
 <p>
@@ -132,7 +151,7 @@
 
 <p>
 For convenience, you can find the corresponding man page here:
-<a href="muttprofile_man.html">Muttprofile man page</a>
+<tt>muttprofile(1)</tt>
 
 <p>
 <b>Short summary</b>:<br>
@@ -146,28 +165,32 @@
 <p>
 At the moment, muttprofile is what it is and stays that way. 
 If necessary (propably not) I'll try to keep it functional with 
-new versions of Mutt.
+new versions of Mutt and Perl.
+</p>
+
+<h2>Acknowledgments</h2>
 
 <p>
-It is possible (though very unlikely) that I add some or all of
-the following features some day:
+Martin F. Krafft maintains a <a href="http://packages.debian.org/unstable/mail/muttprofile.html">Debian package</a> of muttprofile. Ha has also helped and encouraged me a lot.
+</p>
 
-<ul>
-<li>profile creating/editing functionality (calls for complete rewrite and
-more object-oriented approach with profile prototypes etc.)
-<li>automatic installation to muttrc (requires some parsing of muttrc)
-</ul>
+<p>
+Martin Schulze found two bugs in muttprofile and provided fixes as well. 
+For details, see the
+<a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=muttprofile">
+Debian Bug Reoprt logs</a>. These fixes are now included in the 1.0.1 release.
+</p>
 
-<h2>Acknowledgments</h2>
 <p>
-Matti Airas helped me a lot with muttprofile: for example he suggested 
+Matti Airas helped me a lot when first writing muttprofile: for example he suggested 
 the idea of using symlinks and to use NAME and DESC keys in the profiles.
 He also introduced me to Mutt :-)
 
 <p>
-Rikard Florin for continuing work with muttprofile. He has rewritten
-muttprofile to include a graphical user interface. His version
-is available <a href="http://www.ratblast.net/muttprofile/">here</a>.
+Rikard Florin continued work with muttprofile. He rewrote
+muttprofile to include a graphical user interface. Unfortunately,
+his version seems to be no longer available. It used to be
+<a href="http://www.ratblast.net/muttprofile/">here</a>.
 
 <p>
 The people in the mutt-users mailing list gave me valuable help
@@ -175,12 +198,12 @@
 
 <h2>See also</h2>
 <p>
-<a href="http://www.acoustics.hut.fi/~mara/mutt/profiles.html">Information on (Sender) profiles with Mutt</a><br>
-<a href="http://www.acoustics.hut.fi/~mara/mutt/">Martti Rahkila's Mutt Resources</a>
+<a href="profiles.html">Information on (Sender) profiles with Mutt</a><br>
+<a href="http://www.acoustics.hut.fi/~mara/mutt/index.html">Martti Rahkila's Mutt Resources</a>
 
 <hr>
 URL: http://www.iki.fi/martti.rahkila/mutt/muttprofile.html<br>
-Last update: 2003-01-11<br>
+Last update: 2003-11-20<br>
 Author: Martti Rahkila <br>
 </body>
 </html>
diff -urNad trunk~/muttprofile_perl580.html trunk/muttprofile_perl580.html
--- trunk~/muttprofile_perl580.html	1970-01-01 01:00:00.000000000 +0100
+++ trunk/muttprofile_perl580.html	2006-07-12 00:50:46.298138963 +0200
@@ -0,0 +1,141 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                             "http://www.w3.org/TR/html4/loose.dtd">
+
+<html lang=en>
+
+<head>
+<title>Muttprofile and Perl 5.8.0</title>
+<meta name="Keywords" content="mutt, muttrc, profiles, perl 5.8.0">
+<meta name="Description" content="Muttprofile: problem with Perl 5.8.0 and fixing it">
+<meta name=robots content="index,follow">
+<meta http-equiv="Content-Script-Type" content="text/javascript">
+<meta http-equiv="Content-Style-Type" content="text/css">
+</head>
+
+<body bgcolor="#ffffff" text="#000000" link="#3333ff" vlink="#9999ff" alink="#ccccff">
+
+<p>
+<div align="center">
+<font face="Arial,Helvetica,sans-serif">
+<h1>Muttprofile and Perl 5.8.0</h1>
+</div>
+
+<p>
+Muttprofile was developed using Perl version 5.005 and it also runs nicely with 
+Perl 5.6.0 and Perl 5.6.1. However, I got some bug reports that muttprofile
+does not work with Perl 5.8.0. So, I investigated the problem and here's what
+I found and how to fix it. Please note that the problem is now history: muttprofile
+works fine with Perl 5.8.1!
+</p>
+
+<h3>Symptons</h3>
+
+<p>
+The symptons are that muttprofile gives a nasty looking error message (similar to the one below) 
+and messes up the terminal by loosing the line breaks.
+</p>
+
+<p>
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+/bin/stty: invalid argument `2d00:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:ff:12:f:17:16:ff:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
+                                                                         '
+                                                                          Try `/bin/stty --help' for more information.
+
+</pre>
+</td>
+</tr>
+</table>
+</p>
+
+<p>
+It turned out that the problem was related to Perl-module <b>Term::Complete</b>
+which comes with all Perl5 distributions. Muttprofile uses this module for
+taking care of the interactive selection of profiles. <b>However,
+muttprofile actually works despite the error!</b>
+</p>
+
+<h3>Solution</h3>
+
+<p>
+I managed to find the bug in Term::Complete and, luckily, it was easy to fix.
+I contacted the Perl maintainers with a fixed version and it
+was included in the Perl development tree. Fixed version is now available with
+perl 5.8.1 and later.
+</p>
+
+<h3>How can I get it to work?</h3>
+
+<p>
+You have at least three options for making muttprofile work with Perl 5.8.0:
+</p>
+
+<p>
+<b>Option 1:</b><br>
+Look for Perl 5.8.1 and install it. It includes a new version of the Term::Complete module
+which does not have the stty-problem anymore.
+</p>
+
+<p>
+<b>Option 2:</b><br>
+If you're stuck with 5.8.0 for some reason, you may use the following quick-and-dirty
+workaround:
+</p>
+
+<p>
+In your macro for calling muttprofile, add the command 'stty -raw echo' 
+after the muttprofile command. This will get the line breaks back. 
+If you want to get rid of the stty error too, redirect stderr to
+/dev/null when calling muttprofile.
+In other words use macro defition such as this:
+</p>
+
+<p>
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+macro   index   &lt;F9&gt;     "&lt;enter-command&gt;set wait_key\n!~/bin/muttprofile 2&gt; /dev/null;stty -raw echo\n:source ~/.mutt/profile.active\n&lt;enter-command&gt;unset wait_key\n" "Call muttprofile without stty error"
+</pre>
+</td>
+</tr>
+</table>
+</p>
+
+<p>
+<b>Option 3:</b><br>
+Upgrade the Term::Complete-module manually. The fixed version is available <a href="http://www.acoustics.hut.fi/~mara/mutt/Complete.pm">here</a>. Remember to make a backup of the original version, just in case.
+</p>
+
+<p>
+I have tested these solutions with Debian but I see no reason why they wouldn't work
+on RedHat 8 or other unix systems with perl 5.8.0.
+</p>
+
+<h2>Acknowledgments</h2>
+<p>
+Thanks to Marco Fioretti of the <a href="http://www.rule-project.org/en/">RULE Project</a>
+for informing me about the problem and noticing the typo on my quick'n'dirty fix :-)
+</p>
+
+<p>
+Jarkko Hietaniemi deserves credit for helping out with the fix as well as
+his huge contributions to the Perl community.
+</p>
+
+<h2>Back to <a href="muttprofile.html">muttprofile</a></h2>
+<p>
+
+<hr>
+URL: http://www.iki.fi/martti.rahkila/mutt/muttprofile_perl580.html<br>
+Last update: 2003-11-20<br>
+Author: Martti Rahkila <br>
+</body>
+</html>
+
+
+
+
+
+
+
diff -urNad trunk~/profiles.html trunk/profiles.html
--- trunk~/profiles.html	1970-01-01 01:00:00.000000000 +0100
+++ trunk/profiles.html	2006-07-12 00:50:46.298138963 +0200
@@ -0,0 +1,319 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                             "http://www.w3.org/TR/html4/loose.dtd">
+
+<html lang=en>
+
+<head>
+<title>(Sender) Profiles with Mutt</title>
+<link rev="made" href="mailto:martti.rahkila@iki.fi">
+<meta name="Location" content="http://www.iki.fi/martti.rahkila/mutt/profiles.html">
+<meta name="Author" content="Martti Rahkila">
+<meta name="Date" content="2000-05-15" scheme="yyyy-mm-dd">
+<meta name="Keywords" content="mutt, muttrc, profiles">
+<meta name="Description" content="Creating and using (sender) profiles with Mutt email client">
+<meta name=robots content="index,follow">
+<meta http-equiv="Content-Script-Type" content="text/javascript">
+<meta http-equiv="Content-Style-Type" content="text/css">
+</head>
+
+<body bgcolor="#ffffff" text="#000000" link="#3333ff" vlink="#9999ff" alink="#ccccff">
+
+<p>
+<div align="center">
+<font face="Arial,Helvetica,sans-serif">
+<h1>(Sender) Profiles with Mutt</h1>
+</div>
+<p>
+This document discusses the idea of grouping parameters into profiles and using
+them with the <a href="http://www.mutt.org">Mutt</a> email client.
+
+<h2>What is a profile?</h2>
+<p>
+The <b>profile</b> concept is a form of customizing software to meet the user's
+preferences. Simply, a profile is a group of parameters or user settings.
+
+<p>
+Even though this document focuses on sender profiles, profiles
+in general are not restricted to sending email or even the Mutt email client.
+As a matter of fact the profile concept can be applied to customizing any desired
+desired property/ies provided that the particular software includes a mechanism
+for profiles to be used.
+
+<p>
+An example of the profile concept is the Netscape WWW-browser and its "User Profiles"
+that allow several users to use the same browser software in a same computer.
+However, whereas Netscape's User Profiles are predefined, profiles with Mutt
+are not restricted in any way. In fact, a profile with Mutt is only a way to
+think of groups of parameters in muttrc, not a builtin feature or mechanism.
+Profile examples could be different color-schemes or sender profiles, described
+next.
+
+<h2>What is a sender profile?</h2>
+<p>
+A sender profile is a collection of sender-oriented parameters. A simple example would
+be the address to send replies to or perhaps the signature containing your contact information etc.
+An advanced sender profile could contain the PGP signing key to be used when sending emails,
+the filename for writing a copy of the sent message, a specialized header to be used for
+automatically filtering incoming email or even the address where the message is sent from.
+
+<p>
+So what. Are they any useful for me? you may ask.
+The sender profiles are useful for anyone who needs or wants to send email
+with different sender charateristics. If you have multiple jobs or positions like
+IT administrator, webmaster etc. the benefits are obvious. But sender profiles
+can be useful for others too: For instance, do you think it is really necessary
+to have a company signature in an email addressed to your girlfriend ;-)
+
+<h2>Creating a profile</h2>
+<p>
+First of all, you need to have Mutt working and configured properly. 
+If you are using PGP, make sure it is working as well.
+
+<p>
+Secondly, you need to define which parameters you want to include in
+your profile. Consult the Mutt <a href="http://www.mutt.org/doc/manual/">manual</a>
+if/when needed... Save these settings in a separate file and remove/
+comment out from the muttrc file. (Note! the status_format was wrapped
+for convenience. It's all one big line)
+
+<p>
+A simple <a href="http://www.acoustics.hut.fi/~mara/mutt/profile.default">example</a>:
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# Mutt sender profile: default
+
+# Signature file
+set signature='~/.signature' 
+
+# Customized headers
+unmy_hdr *                      # remove all extra headers first.
+
+my_hdr From: Your Name &lt;your.name@some.domain&gt;
+my_hdr Reply-To: Your Name &lt;your.name@some.domain&gt;
+
+# Include the profile name in the status line
+set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? 
+Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-default-%>-(%P)---"
+</pre>
+</td>
+</tr>
+</table>
+
+<p>
+<a href="http://www.acoustics.hut.fi/~mara/mutt/profile.personal">Another profile</a> to be used together with the previous one:
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# Mutt sender profile: personal
+
+# Signature file
+set signature='~/.signature-personal' 
+
+# Customized headers
+unmy_hdr *                      # remove all extra headers first.
+
+my_hdr From: Your Name &lt;your.name@some.other.domain&gt;
+my_hdr Reply-To: Your Name &lt;your.name@some.other.domain&gt;
+
+# Include the profile name in the status line
+set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? 
+Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-personal-%>-(%P)---"
+</pre>
+</td>
+</tr>
+</table>
+
+<p>
+A more <a href="http://www.acoustics.hut.fi/~mara/mutt/profile.complex">complex example</a>:
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# Mutt sender profile: default
+# From, Reply-To, Fcc, Pgp sign-key, attribution, signature etc.
+#
+# The following definitions are used by muttprofile
+# NAME: name for your profile
+# DESC: description for you profile, optional
+
+set locale=""                   # system default locale ("C")
+set signature='~/.signature'    # signature file
+set indent_string="> "          # Quoting mails with this string.
+set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
+set post_indent_string=""       # Footer (after quotes, before signature).
+set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? 
+Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-default-%>-(%P)---"
+
+# Pretty Good Privacy (PGP):
+set pgp_sign_as="0x00000000"    # UserID/KeyID for signing
+
+# Customized headers
+unmy_hdr *                      # remove all extra headers first.
+
+my_hdr From: Your Name &lt;your.name@some.domain&gt;
+my_hdr Reply-To: Your Name &lt;your.name@some.domain&gt;
+#my_hdr Bcc: username@domain.com
+#my_hdr Organization: org
+
+set nopgp_autoencrypt           # Default (no enc)
+set nopgp_autosign              # Default (sign)
+
+fcc-hook . "=sent"              # the file to copy sent messages
+</pre>
+</td>
+</tr>
+</table>
+
+<h3>Important!</h3>
+<p>
+All sender profiles should contain the same parameters or commands, even if their
+values would be the same! This is to avoid problems when switching between
+profiles. If you load a profile, and after that, another one with only partially
+same parameters, the values for the parameters that were not included in the new
+profile, would not be affected. For instance in the examples above, the unmy_hdr
+command is given to ensure customized headers are reseted for the new profile.
+BTW: the same can be true for send-hooks as well.
+
+<p>
+Once you are ready, save the profiles in separate files. The filename doesn't
+matter, but a logical place would be under the mutt directory (~/.mutt).
+
+<h2>Using profiles</h2>
+<p>
+In order to use your new profiles, you need to load one right before you
+start a new message. This can be done easily with some Mutt macros.
+
+<h3>Macros</h3>
+<p>
+The macro definitions go to your muttrc file. First you need to load
+a default profile.
+
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# default
+source ~/.mutt/profile.default
+
+# macros to invoke a profile
+macro   index   &lt;F10&gt;    ":source ~/.mutt/profile.default\n" "Load default profile"
+macro   index   &lt;F11&gt;    ":source ~/.mutt/profile.personal\n" "Load profile: personal"
+</pre>
+</td>
+</tr>
+</table>
+
+<p>
+These settings will allow you to load the default profile by pressing &lt;F10&gt;-key
+and personal profile with &lt;F11&gt;. If you set the status_format parameter in the
+profile, you can get the name of the active profile in the status line.
+
+<p>
+You can also make macros like this:
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+macro   index   &lt;F10&gt;    ":source ~/.mutt/profile.default\nm" "New message with default profile"
+macro   index   &lt;F11&gt;    ":source ~/.mutt/profile.default\n^fm" "New message with default profile (forget-passphrase)"
+</pre>
+</td>
+</tr>
+</table>
+
+<p>
+These settings allow you to load a profile, (forget PGP passphrase) and start a new message all in one key.
+
+<h3>Using muttprofile</h3>
+<p>
+Muttprofile is a small utility to help choosing the profile. Once set up,
+you can assing only one macro to call muttprofile, load the chosen profile
+and start a new message.
+
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# default
+source ~/.mutt/profile.default
+
+# macro to invoke muttprofile, load the chosen profile and start a new message
+macro	index	&lt;F10&gt;	"!muttprofile\n:source ~/.mutt/profile.active\nm" "New message with profile"
+</pre>
+</td>
+</tr>
+</table>
+
+Please see the <a href="muttprofile.html">muttprofile</a> page for more examples, details
+of operation and download.
+
+<h3>Profiles and send-hooks</h3>
+<p>
+Send-hooks are one of the very powerful features of Mutt. With send-hooks
+you can make settings that will be applied when a message is sent to
+certain address/es.
+
+<p>
+Sender profiles can also be used with send-hooks. Adding something like this
+in your muttrc makes sure the profile "personal" is loaded every time
+you are sending a message to your girlfriend.
+
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+send-hook (my.girlfriend@some.domain)$ \
+        "source ~/.mutt/profile.personal\n"
+</pre>
+</td>
+</tr>
+</table>
+
+<p>
+This is very handy with mailing lists:
+<table bgcolor="#ccccff">
+<tr>
+<td><pre>
+# mutt-users mailing list
+send-hook (mutt-users)$ \
+        "source ~/.mutt/profile.mutt\n"
+</pre>
+</td>
+</tr>
+</table>
+
+<h3>PGP passphrase</h3>
+<p>
+Mutt has a feature that it remembers the passphrase for the PGP signing
+key for a certain period of time (pgp_timeout) after it has been used once. If you load
+another profile with another signing key, you will get a "bad passphrase"
+error when trying to send a message. In order to avoid that, you need
+to "forget" the passphrase before sending a message. The easiest way to
+do this is by first pressing "^f" (defaul keybinding for the mutt command
+forget-passphrase) and then trying again.
+
+<p>
+At least when writing this, there is no (easy) way to automatically determine
+when it would be necessary to forget the passphrase. However, I have noticed
+that in practice this is not such a big problem. Pressing "^f" and trying
+again works really fine. Note also that automatic passphrase forgetting is
+not necessarily a blessing: if you frequently switch between profiles,
+you might not want to type passphrase every time you send a signed message.
+
+<h2>Notes</h2>
+<p>
+The settings described in this document, have been tested only with 
+Mutt versions 1.0i, 1.1.11i and 1.2i on Linux 2.2.x (RedHat 6.x).
+
+<h2>Acknowledgments</h2>
+<p>
+The people in the mutt-users mailing list gave me valuable help
+with the profiles and mutt configuration.
+
+Special thanks to Charles Curley and Matti Airas for encouragement.
+
+<p>
+<a href="http://www.acoustics.hut.fi/~mara/mutt/index.html">Martti Rahkila's Mutt Resources</a>
+
+<hr>
+URL: http://www.iki.fi/martti.rahkila/mutt/profiles.html<br>
+Last update: 2000-05-15<br>
+Author: Martti Rahkila <br>
+</body>
+</html>