2 This is the current shortcut patch patch by Byrial Ole Jensen
3 <byrial@image.dk>, updated by Christoph Berg <cb@df7cb.de>.
5 The home page for this patch is:
7 http://home.worldonline.dk/byrial/mutt/patches/ (original version)
8 http://www.df7cb.de/projects/mutt/current_shortcut/ (.2 and above)
10 * Patch last synced with upstream:
12 - File: http://www.df7cb.de/projects/mutt/current_shortcut/current-shortcut.2
17 diff -urp ../MUTT/mutt/PATCHES mutt/PATCHES
18 --- ../MUTT/mutt/PATCHES 2002-12-09 18:44:54.000000000 +0100
19 +++ mutt/PATCHES 2004-10-02 16:30:07.000000000 +0200
21 +patch-1.5.6.cb.current_shortcut.2
22 diff -urp ../MUTT/mutt/curs_main.c mutt/curs_main.c
23 --- ../MUTT/mutt/curs_main.c 2004-04-12 23:51:07.000000000 +0200
24 +++ mutt/curs_main.c 2004-10-02 16:12:33.000000000 +0200
25 @@ -1064,6 +1064,7 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE);
26 mutt_error (_("%s is not a mailbox."), buf);
29 + mutt_str_replace (&CurrentFolder, buf);
33 diff -urp ../MUTT/mutt/doc/manual.sgml.head mutt/doc/manual.sgml.head
34 --- ../MUTT/mutt/doc/manual.sgml.head 2004-07-21 13:33:04.000000000 +0200
35 +++ mutt/doc/manual.sgml.head 2004-10-02 16:29:24.000000000 +0200
36 @@ -2216,6 +2216,7 @@ path.
37 <item>! -- refers to your <ref id="spoolfile" name="$spoolfile"> (incoming) mailbox
38 <item>> -- refers to your <ref id="mbox" name="$mbox"> file
39 <item>< -- refers to your <ref id="record" name="$record"> file
40 +<item>^ -- refers to the current mailbox
41 <item>- or !! -- refers to the file you've last visited
42 <item>˜ -- refers to your home directory
43 <item>= or + -- refers to your <ref id="folder" name="$folder"> directory
44 diff -urp ../MUTT/mutt/globals.h mutt/globals.h
45 --- ../MUTT/mutt/globals.h 2004-09-04 13:31:21.000000000 +0200
46 +++ mutt/globals.h 2004-10-02 16:03:23.000000000 +0200
47 @@ -117,6 +117,7 @@ WHERE char *Tochars;
51 +WHERE char *CurrentFolder;
52 WHERE char *LastFolder;
54 WHERE LIST *AutoViewList INITVAL(0);
55 diff -urp ../MUTT/mutt/main.c mutt/main.c
56 --- ../MUTT/mutt/main.c 2004-06-18 17:24:22.000000000 +0200
57 +++ mutt/main.c 2004-10-02 16:12:33.000000000 +0200
58 @@ -887,6 +887,7 @@ int main (int argc, char **argv)
59 strfcpy (folder, NONULL(Spoolfile), sizeof (folder));
60 mutt_expand_path (folder, sizeof (folder));
62 + mutt_str_replace (&CurrentFolder, folder);
63 mutt_str_replace (&LastFolder, folder);
66 diff -urp ../MUTT/mutt/muttlib.c mutt/muttlib.c
67 --- ../MUTT/mutt/muttlib.c 2004-09-04 13:31:22.000000000 +0200
68 +++ mutt/muttlib.c 2004-10-02 16:16:12.000000000 +0200
69 @@ -452,6 +452,13 @@ char *_mutt_expand_path (char *s, size_t
75 + strfcpy (p, NONULL(CurrentFolder), sizeof (p));