- m_putenv ("mhdraft", file);
- if (mp)
- m_putenv ("mhfolder", mp->foldpath);
- else
- unputenv ("mhfolder");
- if (altmsg) {
- if (mp == NULL || *altmsg == '/' || cwd == NULL)
- m_putenv ("mhaltmsg", altmsg);
- else {
- snprintf (buffer, sizeof(buffer), "%s/%s", mp->foldpath, altmsg);
- m_putenv ("mhaltmsg", buffer);
+ m_putenv("mhdraft", file);
+ if (mp)
+ m_putenv("mhfolder", mp->foldpath);
+ else
+ unputenv("mhfolder");
+ if (altmsg) {
+ if (mp == NULL || *altmsg == '/' || cwd == NULL)
+ m_putenv("mhaltmsg", altmsg);
+ else {
+ snprintf(buffer, sizeof(buffer), "%s/%s",
+ mp->foldpath, altmsg);
+ m_putenv("mhaltmsg", buffer);
+ }
+ } else {
+ unputenv("mhaltmsg");
+ }
+ if ((bp = getenv("mhaltmsg")))/* XXX */
+ m_putenv("editalt", bp);
+ snprintf(buffer, sizeof(buffer), "%d", dist);
+ m_putenv("mhdist", buffer);
+ if (nedit) {
+ unputenv("mheditor");
+ } else {
+ m_putenv("mheditor", ed ? ed : defaulteditor);